Call it
curl https://api.peume.com/v1/call/gpt-image-2-5-fast \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "your prompt",
"size": "your size",
"quality": "low"
}
}'const res = await fetch("https://api.peume.com/v1/call/gpt-image-2-5-fast", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"prompt": "your prompt",
"size": "your size",
"quality": "low"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/gpt-image-2-5-fast",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"prompt": "your prompt",
"size": "your size",
"quality": "low"
}
},
)
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: gpt-image-2-5-fast.
Parameters
promptRequiredstringThe image to create — content, style, composition — or the editing instruction when input images are provided. Up to 32,000 characters.
sizeRequiredstringOutput resolution "WIDTHxHEIGHT" (REQUIRED — it sets the price). Any size whose edges are multiples of 16, aspect ratio 1:3 to 3:1, no edge above 3840px, total pixels 655,360 to 8,294,400. E.g. 1024x1024, 1536x1024, 2048x2048, 3840x2160.
qualityRequiredstringRendering quality (REQUIRED — it sets the price): low, medium, high, xhigh, max. Higher tiers render more detail and cost more tokens.
low · medium · high · xhigh · max
backgroundstringBackground of the image: "transparent", "opaque", or "auto" (default — the model decides).
transparent · opaque · auto
