Call it
curl https://api.peume.com/v1/call/openai-gpt-image-2-5-flare-sunburst-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "gpt-image-2.5-flare-official",
"prompt": "A clean editorial illustration of a paper airplane.",
"size": "1024x1024",
"quality": "low",
"n": 1,
"background": "auto"
}
}'const res = await fetch("https://api.peume.com/v1/call/openai-gpt-image-2-5-flare-sunburst-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "gpt-image-2.5-flare-official",
"prompt": "A clean editorial illustration of a paper airplane.",
"size": "1024x1024",
"quality": "low",
"n": 1,
"background": "auto"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/openai-gpt-image-2-5-flare-sunburst-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "gpt-image-2.5-flare-official",
"prompt": "A clean editorial illustration of a paper airplane.",
"size": "1024x1024",
"quality": "low",
"n": 1,
"background": "auto"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: openai-gpt-image-2-5-flare-sunburst-2.
Parameters
modelRequiredstringgpt-image-2.5-flare-official · gpt-image-2.5-sunburst-official · gpt-image-2.5-flare · gpt-image-2.5-sunburst · gpt-image-2.6-flare-official · gpt-image-2.6-sunburst-official
Example: gpt-image-2.5-flare-official
promptRequiredstringUp to 32,000 characters.
Example: A clean editorial illustration of a paper airplane.
sizestringauto, a listed size, or a custom WIDTHxHEIGHT within limits: edges divisible by 16, max edge 3840, ratio 1:3 to 3:1.
Example: 1024x1024
qualitystringQuality is the biggest cost on the official channel; xhigh/max are not listed.
low · medium · high
Example: low
nintegerExample: 1
image_urlsarrayUp to 16 public image URLs to edit. Each URL must answer a plain GET with the raw image bytes and an image/* content-type (signed cloud-storage or CDN links work; file-page hosts such as tmpfiles.org return HTML, and the task then fails unbilled with the vendor's generic upstream error). ` host <file>` prints a URL that satisfies this.
mask_urlstringMasked inpainting; requires image_urls.
backgroundstringauto · opaque · transparent
Example: auto
Other ways to do it
Same job, other sources, cheapest first.
