{"uid":"cap_LS8uJxT26TYgVuOvgBAxF","slug":"stablestudio-grok-image-generation-e0f7c05b","name":"StableStudio Grok Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/grok/generate","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":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_7dyzdW_SYdLxqGUxjBdvv","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 an AI image via Grok model from a text prompt, returning a job ID for async retrieval","exampleAgentPrompt":"Generate a photorealistic image of a neon-lit Tokyo street at night, 16:9 aspect ratio, 2 MP resolution, in PNG format — use StableStudio's Grok model and enhance the prompt automatically.","exampleUseCases":[{"title":"Create custom product mockup images","prompt":"I need you to generate a few product images for my online store — can you create a photorealistic mockup of a sleek silver water bottle on a minimalist white desk, 1:1 aspect ratio, high resolution? Use StableStudio so I only pay for what I generate."},{"title":"Generate social media content batches","prompt":"Make me three different AI illustrations for my Instagram posts this week — start with a cozy coffee shop interior, then a sunset beach scene, and finally a modern home office setup. Use landscape format, good quality, and keep it cohesive in style."},{"title":"Produce concept art for design reviews","prompt":"I'm pitching a sci-fi product design next week and need some concept renders fast. Generate me a sleek futuristic robot assistant in a minimalist home environment, portrait orientation, highest quality you can do — and make sure it's reproducible in case I need variations with the same seed."}],"resultDescription":"A JSON object containing a job ID, generation status ('pending'), job type ('grok-generate'), and a success flag. The agent must poll a separate endpoint using the job ID to retrieve the final image URL once generation completes.","failureModes":["Invalid or empty prompt returns a 400 validation error","Unsupported resolution or aspect_ratio enum value returns a 400 error","Payment failure (insufficient USDC balance) returns a 402 Payment Required","Safety tolerance exceeded — prompt blocked by content filter, returns a 4xx error with reason","Job creation succeeds but generation fails asynchronously — status polling reveals error state","Seed value out of safe integer range returns a 400 validation error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use AI image generation without a subscription, specifically using the Grok model. Prefer it over Stable Diffusion or DALL-E endpoints when xAI's Grok visual quality is desired, or when you need flexible resolution up to 4 MP and multiple aspect ratios. Ideal for agentic workflows where the user pays per image rather than committing to a monthly plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:12.399Z","isFirstParty":false}