PeumeAPI

AI generation

OpenAI: GPT Image 2

Generate images with GPT Image 2 (medium quality only) through OpenAI-shaped async route.

$0.254 per lookup, only when foundUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/openai-gpt-image-2 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "model": "gpt-image-2",
    "prompt": "A clean editorial illustration of a paper airplane.",
    "size": "1024x1024",
    "quality": "medium",
    "n": 1
  }
}'

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.

Parameters

modelRequiredstring

gpt-image-2

Example: gpt-image-2

promptRequiredstring

Example: A clean editorial illustration of a paper airplane.

sizestring

1024x1024 · 1024x1536 · 1536x1024

Example: 1024x1024

qualitystring

medium

Example: medium

ninteger

Example: 1

Other ways to do it

Same job, other sources, cheapest first.

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.