{"uid":"cap_sjYaNOvMuAg9q0zh4xXXg","slug":"image-withzero-xyz-openai-gpt-5-image-generation-ea5db7fb","name":"OpenAI GPT-5 Image Generation","description":"Generate images from a text prompt with OpenAI GPT-5 Image — strongest instruction following and legible in-image text. Returns hosted image URLs.","url":"https://image.withzero.xyz/api/v1/images/gpt-5-image","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","example":{"count":1,"prompt":"A watercolor painting of a lighthouse at sunrise"},"required":["prompt","count"],"properties":{"count":{"type":"integer","default":1,"maximum":4,"minimum":1,"description":"How many images to generate (1–4)."},"prompt":{"type":"string","maxLength":4000,"minLength":1,"description":"Text description of the image to generate."}},"additionalProperties":false},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["images","model","price_usdc"],"properties":{"model":{"type":"string","description":"The model that produced the images."},"images":{"type":"array","items":{"type":"object","required":["url","mimeType","sizeBytes"],"properties":{"url":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"number"}},"additionalProperties":false},"description":"The generated images, as hosted URLs."},"price_usdc":{"type":"string","description":"The amount charged for this request, in USDC."}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.21","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.21/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.21","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.21","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fNxfJ1X23rsNHQzViwm67","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.21","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"image.gpt-5-image:1"}],"brandName":"image.withzero.xyz","brandSlug":"image-withzero-xyz-mpp","brandBaseUrl":"https://image.withzero.xyz","brandDocsUrl":null,"whatItDoes":"Generates 1–4 images from a text prompt using OpenAI GPT-5 Image, returning hosted image URLs with best-in-class instruction following and legible in-image text.","exampleAgentPrompt":"Can you generate 2 images of a cozy coffee shop interior with warm lighting, with the shop name 'Morning Bloom' written in elegant script on the wall chalkboard — I need the text to be clearly readable?","exampleUseCases":null,"resultDescription":"Returns an array of 1–4 hosted image objects, each with a URL, MIME type, and file size in bytes, along with the model name used and the USDC amount charged for the request.","failureModes":["Prompt too long (over 4000 characters) — validation error returned","Count outside 1–4 range — schema validation failure","Prompt violates content policy — rejection with error message","Image hosting service unavailable — internal server error","Model temporarily unavailable — upstream provider error"],"whenToPreferThis":"Choose this endpoint when you need the highest quality instruction-following in image generation — especially when the output must include legible, readable text within the image (e.g. signs, labels, banners). It is the best choice over Gemini or Grok-based alternatives when precise prompt adherence and in-image typography matter most.","instructions":null,"reviewSummary":"GPT-5 Image generation delivers strong instruction-following and best-in-class legible in-image text, with 1024x1024 PNG output hosted on GCS and typically available immediately. Generation takes roughly 54–64 seconds per image and quality is consistently rated near-perfect across prompt types. Reliability is mildly inconsistent — occasional 402 payment-verification flakes and at least one 60-second timeout have been reported — and a parameter type mismatch in the example (count as string vs. number) can break automated agents on first call.","reviewSummaryHighlights":["Best-in-class legible in-image text, including multi-layer text rendering exactly as prompted","High accuracy across diverse prompt types (travel hero images, illustrations, gallery assets)","Hosted GCS URLs load immediately with no additional serving setup required"],"reviewSummaryConcerns":["Intermittent 402 payment-verification errors requiring retries on otherwise valid requests","Generation takes ~54–64 seconds, with potential 60-second timeout failures under free-tier caps","Official example shows 'count' as a string, causing HTTP 400 errors for copy-paste or automated agents"],"reviewSummaryGeneratedAt":"2026-07-18T00:16:45.173Z","activationCount":3,"lastUsedAt":"2026-07-29T00:21:21.494Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:43.957Z","isFirstParty":true}