{"uid":"cap_TlB7b5gETm7WvGetWdd5p","slug":"stablestudio-grok-edit-image-generation-71ac7329","name":"StableStudio Grok Edit Image Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/grok/edit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"images":{"type":"array","items":{"type":"string","format":"uri","description":"Image URL"},"minItems":1,"description":"Array of image URLs to edit"},"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-edit","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_oXA8V26-0tDT5ARqe-wPD","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 using the Grok model with configurable resolution, aspect ratio, format, and safety settings, returning a job ID for async retrieval.","exampleAgentPrompt":"Generate an image of a futuristic cityscape at night with neon lights reflecting on wet streets — make it 4MP resolution, 16:9 aspect ratio, PNG format at quality 95, with safety tolerance 2.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing a job ID (e.g. 'cmpbmzaee000j04jrzx4f43tw'), the generation type ('grok-edit'), a status field ('pending'), and a success boolean. The agent must use the job ID to poll or retrieve the final generated image once processing completes.","failureModes":["Missing required 'prompt' field returns validation error","Prompt exceeding 10,000 characters rejected","Invalid resolution enum value (not '0.5 MP', '1 MP', '2 MP', '4 MP') causes error","Invalid aspect ratio value causes schema validation failure","Safety tolerance outside 1-5 range rejected","Payment of $10 USDC not provided or fails — request not processed","Output quality outside 0-100 range rejected"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use Grok-powered AI image generation with no subscription commitment, especially when you want fine-grained control over resolution (up to 4MP), aspect ratio, format (webp/jpg/png), and content safety tolerance. Prefer this over other image generators when the user specifically wants Grok's image model or wants to avoid monthly subscription costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T20:49:43.851Z","isFirstParty":false}