{"uid":"cap_pGI7345Jb3NHFY8gXguCz","slug":"openai-gpt-image-1-image-generation-x402-86f97fdb","name":"OpenAI gpt-image-1 Image Generation (x402)","description":"gpt-image-1: OpenAI GPT Image 1 image generation, paid per call in USDC. OpenAI list $40 per 1M image tokens (1024x1024: low 272, medium 1056, high 4160 tokens), text in $5 per 1M, plus $0.0005 (Base) or $0.0005 (Solana) per call. Send size and quality (auto is refused); omitted means 1024x1024 medium. Returns b64_json. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-image-1/images/generations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer"},"size":{"type":"string"},"model":{"enum":["gpt-image-1"],"type":"string"},"prompt":{"type":"string"},"quality":{"enum":["low","medium","high"],"type":"string"},"background":{"type":"string"},"moderation":{"enum":["auto"],"type":"string"},"output_format":{"enum":["png","jpeg","webp"],"type":"string"}}},"responseSchema":{"type":"json","example":{"data":[{"b64_json":"<base64 png>"}],"size":"1024x1024","usage":{"input_tokens":12,"total_tokens":208,"output_tokens":196},"created":1,"quality":"low","output_format":"png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005973","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005973/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005973","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005973","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ykobxJ8Zn5wFspuqEA724","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005973","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images from text prompts using OpenAI's gpt-image-1 model, paid per call in USDC via x402 protocol, returning base64-encoded PNG/JPEG/WebP images.","exampleAgentPrompt":"Generate a high-quality 1024x1024 image of a serene Japanese zen garden at sunrise with cherry blossom trees, and give it back to me as a PNG.","exampleUseCases":[{"title":"AI product photo for e-commerce","prompt":"Create a high-quality image of a sleek stainless steel water bottle on a white background with soft shadows — 1024x1024, PNG format, high quality."},{"title":"Marketing banner illustration","prompt":"Generate a medium-quality image of a vibrant city skyline at night with neon lights reflecting on wet streets — make it 1024x1024 and return it as a JPEG."},{"title":"Children's book character artwork","prompt":"Using gpt-image-1, generate a low-quality draft image of a friendly cartoon dragon wearing a wizard hat sitting in a magical forest, 1024x1024 PNG, so I can review the concept before commissioning the final version."}],"resultDescription":"Returns a JSON object containing an array of generated images encoded as base64 strings (b64_json), along with metadata including image size, quality setting, output format, creation timestamp, and token usage breakdown (input tokens, output tokens, total tokens).","failureModes":["Prompt refused by content moderation — returns error if prompt violates OpenAI content policy","'auto' quality value rejected — must explicitly specify low, medium, or high","Missing size parameter may default to 1024x1024 medium but behavior may be undefined","Insufficient USDC balance or x402 payment failure results in 402 Payment Required","Invalid output_format enum value returns validation error","Rate limiting if too many concurrent requests are made"],"whenToPreferThis":"Choose this endpoint when you need OpenAI's gpt-image-1 model specifically via a pay-per-call USDC micropayment (x402) flow without managing an OpenAI API key subscription. Ideal for agents that need on-demand image generation billed in crypto, or for applications that want to call OpenAI image generation programmatically without monthly billing commitments. Prefer the gpt-image-1-mini sibling for lower-cost drafts, or gpt-image-1.5/2/2.5 siblings for higher capability. Use this over generic OpenAI endpoints when you need transparent per-call USDC pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:28.986Z","isFirstParty":false,"canonicalSlug":"openai-gpt-image-1-image-generation-x402-86f97fdb"}