{"uid":"cap_73r-7G7nAU0alHgNCfsG_","slug":"stablestudio-grok-video-generation-21f3d3a0","name":"StableStudio Grok Video Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/grok-video/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"string","format":"uri","description":"Optional reference image URL for image-to-video generation"},"prompt":{"type":"string","maxLength":8000,"minLength":1,"description":"A detailed description of the video you want to generate"},"duration":{"enum":["3","6","9","12","15"],"type":"string","default":"6","description":"Duration of the video in seconds"},"resolution":{"enum":["480p","720p"],"type":"string","default":"720p","description":"Video resolution"},"aspect_ratio":{"enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"type":"string","default":"16:9","description":"Aspect ratio of the output video"}}},"responseSchema":{"type":"json","example":{"type":"grok-video-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_eSr13FvVVXWz4kS7kd_dc","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":"Submits a pay-per-generation AI video creation job using a text prompt, returning a job ID for async retrieval","exampleAgentPrompt":"Generate a video of a golden retriever running through a sunlit field of wildflowers at sunset — use 16:9 aspect ratio, 2 MP resolution, and enhance the prompt for more creative results.","exampleUseCases":null,"resultDescription":"A JSON object containing the job ID (e.g. 'cmpbmzaee000j04jrzx4f43tw'), status ('pending'), generation type ('grok-video-generate'), and a success boolean. The agent must poll or check a separate endpoint using the jobId to retrieve the completed video.","failureModes":["Invalid or empty prompt returns validation error","Unsupported resolution or aspect ratio enum value causes 400 error","Insufficient payment or payment failure (x402 protocol) blocks job submission","Safety tolerance exceeded for content policy — job rejected","Job submission succeeds but downstream generation fails, requiring status polling to detect"],"whenToPreferThis":"Choose this endpoint when the user wants to generate a video from a text prompt on a pay-per-call basis without a subscription, specifically using the Grok video model. Prefer over image endpoints when video output is explicitly required. Best suited for async workflows where the caller can handle a jobId and poll for completion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:58.190Z","isFirstParty":false}