{"uid":"cap_g1y2s6s50QTtsoXepwovZ","slug":"openai-chatgpt-image-latest-via-mm-family-x402-71cc3c5f","name":"OpenAI ChatGPT Image Latest (via mm.family x402)","description":"chatgpt-image-latest: OpenAI ChatGPT Image Latest image generation, paid per call in USDC. OpenAI list $32 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/chatgpt-image-latest/images/generations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer"},"size":{"type":"string"},"model":{"enum":["chatgpt-image-latest"],"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.006295","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.006295/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006295","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006295","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VAnwD2CIoDXCG5Ns7ZChG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006295","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 chatgpt-image-latest model, billed per call in USDC via the x402 payment protocol, returning base64-encoded PNG/JPEG/WebP output.","exampleAgentPrompt":"Generate a high-quality 1024x1024 PNG image of a sunlit Japanese tea garden with cherry blossoms and a koi pond, using chatgpt-image-latest, and give me the base64 result.","exampleUseCases":[{"title":"Product mockup image generation","prompt":"Create a medium-quality 1024x1024 JPEG image of a sleek black wireless headphone sitting on a marble desk with soft studio lighting — I need it as base64 so I can embed it in our product page."},{"title":"Children's book illustration","prompt":"Generate a high-quality PNG image of a friendly cartoon dragon reading a book under a rainbow, sized 1024x1024, using the latest ChatGPT image model — return it as base64."},{"title":"Social media graphic creation","prompt":"Make a low-quality 1024x1024 WebP image of a vibrant tropical beach at sunset with palm trees for a social post — I just need a quick draft so low quality is fine, return the base64."}],"resultDescription":"Returns a JSON object containing a data array with one or more base64-encoded images (b64_json), alongside metadata including the image size, quality level, output format, creation timestamp, and token usage breakdown (input tokens, output tokens, total tokens).","failureModes":["Prompt refused by moderation (content policy violation) — returns error response","'auto' quality value rejected — must specify 'low', 'medium', or 'high' explicitly","Missing or invalid USDC payment via x402 — returns 402 Payment Required","Invalid output_format value — must be 'png', 'jpeg', or 'webp'","Model field must be set to 'chatgpt-image-latest' exactly — other values rejected","Overly long or malformed prompt may cause generation failure or truncation"],"whenToPreferThis":"Choose this endpoint when you need OpenAI's latest chatgpt-image-latest model specifically, want per-call USDC micropayment billing via x402 (no subscription required), and need base64-encoded image output directly in the response. Prefer it over alternatives when you want fine-grained quality control (low/medium/high) and format selection (PNG/JPEG/WebP) with transparent token-based pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:40.746Z","isFirstParty":false,"canonicalSlug":"openai-chatgpt-image-latest-via-mm-family-x402-71cc3c5f"}