{"uid":"cap__Eg0TDH_EE6kqww5ghRsq","slug":"stablestudio-generate-29c9ca75","name":"StableStudio Grok Image Generate","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.dev/api/generate/grok/generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":8000,"minLength":1,"description":"A detailed description of the image you want to generate"},"aspect_ratio":{"enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3","2:1","1:2","19.5:9","9:19.5","20:9","9:20"],"type":"string","default":"16:9","description":"Aspect ratio of the output image"}}},"responseSchema":{"type":"json","example":{"type":"grok-generate","jobId":"cmpbmzaee000j04jrzx4f43tw","status":"pending","pollUrl":"https://stablestudio.dev/api/jobs/cmpbmzaee000j04jrzx4f43tw","success":true}},"example":{"request":{"prompt":"A serene mountain landscape with a crystal clear lake reflecting snow-capped peaks at golden hour","aspect_ratio":"16:9"},"response":{"type":"grok-generate","jobId":"cmq4oofp2000304jvjmb4sx0l","status":"pending","success":true}},"exampleRequest":{"prompt":"A serene mountain landscape with a crystal clear lake reflecting snow-capped peaks at golden hour","aspect_ratio":"16:9"},"tags":["image","video","generation","nano-banana","gpt-image","grok","flux","sora","veo","seedance","wan","ai","media","x402"],"displayCostAmount":"10","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.75","successRate":"1.00","reviews":1,"stars":"4.0","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$10/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"10","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"10","per":"call","confidence":"exact"},{"kind":"static","protocol":"x402","network":"base","amountUsd":"10","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lI0wZ-Tt-OjEFUtQhtPiV","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_DeFQUAEnVvxJ3m6GloutH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"10","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"StableStudio","brandSlug":"stablestudio","brandBaseUrl":"https://stablestudio.dev","brandDocsUrl":"https://stablestudio.dev","whatItDoes":"Generates an image from a text prompt using Grok Image, returning a job ID for async retrieval","exampleAgentPrompt":"Generate an image of a serene mountain landscape with a crystal clear lake reflecting snow-capped peaks at golden hour using Grok Image, in 16:9 widescreen format.","exampleUseCases":[{"title":"Create product mockup images for e-commerce","prompt":"I need you to generate a product photo of a sleek wireless headphone in matte black against a minimalist white background using Grok Image, make it look professional and ready for a product listing."},{"title":"Design custom artwork for social media","prompt":"Can you create a vibrant abstract digital art piece with geometric shapes and neon colors using Grok Image? I want it in widescreen format so I can use it as a LinkedIn banner."},{"title":"Generate concept art for creative projects","prompt":"Please use Grok Image to generate a futuristic cyberpunk city scene with neon signs and flying vehicles, make it moody and atmospheric with a cinematic feel."}],"resultDescription":"Returns a JSON object with success=true, a jobId string to poll for the completed image, a status of 'pending', and a type field indicating 'grok-generate'. The agent must use the jobId to retrieve the final image via a separate job-status endpoint.","failureModes":["Invalid or empty prompt returns a 400 validation error","Unsupported aspect_ratio value returns a 400 error","Payment not provided or insufficient USDC triggers a 402 Payment Required response","Service unavailable or Grok API downstream failure returns 500","Job never completes if polling endpoint is not called after receiving jobId"],"whenToPreferThis":"Choose this endpoint when you specifically want images generated by xAI's Grok Image model rather than other providers like GPT Image, Flux, or Nano Banana. Prefer Grok Image for its distinct visual style and when the user explicitly requests Grok. Use StableStudio's other endpoints if a different model or editing capability is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":6,"lastUsedAt":"2026-07-17T22:52:18.036Z","lastSuccessfullyRanAt":"2026-07-17T22:52:18.036Z","lastHealthCheckAt":"2026-10-11T14:31:36.092Z","isFirstParty":false,"canonicalSlug":"stablestudio-generate-29c9ca75"}