PeumeAPI

AI generation

GPT Image 2.6 Fast

Text to PNG, GIF, or SVG with gpt-image-2.6-flare.

From $0.045 per 1,000 tokens

Call it

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

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-6-fast.

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

complexitystring

How much the model plans before rendering: "high" (default) helps dense text and complex layouts; "low" suits focused edits like a background swap. Same price at every level.

low · medium · high

output_formatstring

File format: "png" (default), "gif" (an animated loop — describe the motion and the loop in the prompt), or "svg" (editable vector paths, for logos and icons).

png · gif · svg

frame_countinteger

GIF only: frames in the loop, 2-16 (default 9). `size` is each frame; the frames tile one sheet (2-8 frames: 4x2, 9: 3x3, 10-12: 4x3, 13-16: 4x4) that must meet the size rules and is billed as one image, e.g. 9 frames of 512x512 bill a 1536x1536 image.

frame_duration_msinteger

GIF only: milliseconds per frame, 20-2000 (default 200), rounded to 10 ms. Does not change the price.

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.