{"uid":"cap_esIW9BLe_TmdSExr6LCKL","slug":"stablestudio-gpt-image-2-generate-9912f57a","name":"StableStudio GPT-Image-2 Generate","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/gpt-image-2/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"enum":["1024x1024","1536x1024","1024x1536","auto"],"type":"string","description":"Image dimensions (square, landscape, portrait, or auto)"},"prompt":{"type":"string","minLength":1,"description":"A detailed description of the image you want to generate"},"quality":{"enum":["low","medium","high"],"type":"string","default":"high","description":"Output quality level (affects cost and detail)"},"background":{"enum":["opaque","auto"],"type":"string","default":"auto","description":"Background fill behavior for generated image output"},"moderation":{"enum":["low","auto"],"type":"string","default":"low","description":"Content moderation strictness"},"output_format":{"enum":["png","jpeg","webp"],"type":"string","default":"png","description":"Output image format"},"output_compression":{"type":"number","default":0,"maximum":100,"minimum":0,"description":"Compression level (0-100, higher = smaller file)"}}},"responseSchema":{"type":"json","example":{"type":"gpt-image-2-generate","jobId":"cmpbmzaee000j04jrzx4f43tw","status":"pending","pollUrl":"https://stablestudio.dev/api/jobs/cmpbmzaee000j04jrzx4f43tw","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"10","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":"$10/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xS1FcbLmu8HjKFJwRQzrm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI images using the GPT-Image-2 model via a pay-per-generation endpoint, returning a job ID for async retrieval.","exampleAgentPrompt":"Generate an image of a futuristic cityscape at sunset with neon lights reflecting on wet streets, photorealistic style — using StableStudio's pay-per-generation GPT-Image-2 model.","exampleUseCases":[{"title":"E-commerce product photo generation","prompt":"Create a professional product photo of a minimalist white ceramic mug with steam rising from it, shot against a warm neutral background — I need this for my online store listing and want to pay just for what I use."},{"title":"Social media content creation","prompt":"Generate a vibrant illustration of a cozy home office setup with plants, warm lighting, and a person working at a desk, in an illustrated art style — perfect for my wellness brand's Instagram feed without any subscription overhead."},{"title":"On-demand illustration for reports","prompt":"Make an AI image showing a data analyst reviewing colorful charts and graphs at a modern desk, in a clean corporate illustration style — I need it right now for my quarterly business presentation and only want to pay for this one image."}],"resultDescription":"Returns a JSON object with the generation type ('gpt-image-2-generate'), a unique jobId for polling the result, a status field (initially 'pending'), and a success boolean indicating the job was accepted.","failureModes":["Insufficient USDC balance causes payment failure and rejected request","Invalid or missing prompt returns error","Model unavailable or overloaded returns service error","Malformed request body causes 400 error","Job created but image generation fails asynchronously — status will reflect failure on polling"],"whenToPreferThis":"Choose this endpoint when you need GPT-Image-2 quality images without committing to a subscription, especially for sporadic or agent-driven image generation workflows where pay-per-call economics are preferable. Ideal for autonomous agents that generate images on demand and need crypto-native (USDC) payment via x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:22.236Z","isFirstParty":false}