reapi_image-gen_gpt-image-2-5 $0.5125 per call

OpenAI: GPT Image 2.5 (Flare / Sunburst). Generate or edit images with GPT Image 2.5. Flare is the fast default; Sunburst is the precise editor. The -official models are OpenAI's own metered channel, priced by quality and size; the flat-rate channel had no upstream capacity when listed. (reAPI · Image generation) Async task: answers 202 with a job id; poll GET /v1/jobs/<id>. Price depends on the options ($0.005 to $0.5125); refunded if the task fails. Prepaid credits only.

For AI agents: call reapi_image-gen_gpt-image-2-5
POST https://toll402.dev/v1/p/reapi.image-gen.gpt-image-2-5
{
 "model": "gpt-image-2.5-flare-official",
 "prompt": "A clean editorial illustration of a paper airplane.",
 "size": "1024x1024",
 "quality": "low",
 "n": 1
}
Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server: npx -y toll402-mcp · remote https://toll402.dev/mcp.

Input schema

{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "enum": [
    "gpt-image-2.5-flare-official",
    "gpt-image-2.5-sunburst-official",
    "gpt-image-2.5-flare",
    "gpt-image-2.5-sunburst"
   ],
   "examples": [
    "gpt-image-2.5-flare-official"
   ]
  },
  "prompt": {
   "type": "string",
   "description": "Up to 32,000 characters.",
   "examples": [
    "A clean editorial illustration of a paper airplane."
   ]
  },
  "size": {
   "type": "string",
   "description": "Other custom sizes exist upstream but are not listed: the price table covers these three.",
   "default": "1024x1024",
   "enum": [
    "1024x1024",
    "1024x1536",
    "1536x1024"
   ],
   "examples": [
    "1024x1024"
   ]
  },
  "quality": {
   "type": "string",
   "description": "Quality is the biggest cost lever on the official channel; xhigh/max are not listed.",
   "default": "low",
   "enum": [
    "low",
    "medium",
    "high"
   ],
   "examples": [
    "low"
   ]
  },
  "n": {
   "type": "integer",
   "default": 1,
   "examples": [
    1
   ]
  },
  "image_urls": {
   "type": "array",
   "description": "Up 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 unb"
  },
  "mask_url": {
   "type": "string",
   "description": "Masked inpainting; requires image_urls."
  },
  "background": {
   "type": "string",
   "default": "auto",
   "enum": [
    "auto",
    "opaque",
    "transparent"
   ]
  }
 },
 "additionalProperties": true,
 "required": [
  "model",
  "prompt"
 ]
}

MCP

{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}

All tools · OpenAPI