PeumeAPI

AI generation

GPT Image 2.5 Fast Edit

Reference-image editing with gpt-image-2.5-flare.

From $0.045 per 1,000 tokens

Call it

curl https://api.peume.com/v1/call/gpt-image-2-5-fast-edit \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "size": "your size",
    "quality": "low",
    "images": []
  }
}'

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-edit.

Parameters

promptRequiredstring

The image to create — content, style, composition — or the editing instruction when input images are provided. Up to 32,000 characters.

sizeRequiredstring

Output 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.

qualityRequiredstring

Rendering 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

backgroundstring

Background of the image: "transparent", "opaque", or "auto" (default — the model decides).

transparent · opaque · auto

imagesRequiredarray

1-16 input images to edit or use as references. Order defines the reference order; a mask applies to the first image. Each input image bills its input tokens.

maskstring

Public https:// URL of a mask image: same size and format as the first input image, with an alpha channel whose transparent areas mark what to edit. Guidance only — the model may not follow its shape exactly.

markupstring

Public https:// URL of a markup layer: a transparent PNG the size of the first input image with circles, arrows or notes drawn where the edit should happen; the prompt says what to change there. Cannot be combined with `mask`.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.