{"uid":"cap_i35nJ3sdpqpq45NTk3e73","slug":"stablestudio-sora-2-video-generation-c94a2e0e","name":"StableStudio Sora-2 Video Generation","description":"Pay-per-generation AI image and video creation. No subscriptions ever.","url":"https://stablestudio.io/api/generate/sora-2/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"enum":["720x1280","1280x720"],"type":"string","default":"1280x720","description":"Video resolution (portrait or landscape)"},"prompt":{"type":"string","minLength":1,"description":"A detailed description of the video you want to generate"},"seconds":{"enum":["4","8","12"],"type":"string","default":"4","description":"Duration of the video in seconds"},"autoCrop":{"type":"boolean","default":true,"description":"Automatically crop reference image to match aspect ratio"},"input_reference":{"type":"string","format":"uri","description":"Optional reference image URL for image-to-video generation"}}},"responseSchema":{"type":"json","example":{"type":"sora-2-video","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_GycXGJSnV4wSjntPIvPme","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 video using the Sora-2 model from a text prompt, returning a job ID for async retrieval","exampleAgentPrompt":"Use StableStudio to generate a Sora-2 video of a golden retriever running through a sunlit meadow at 1 MP resolution in 16:9 aspect ratio, with prompt upsampling turned on.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a jobId (e.g. 'cmpbmzaee000j04jrzx4f43tw'), a status of 'pending', the generation type ('sora-2-video'), and a success boolean. The agent must poll or retrieve the job result separately using the jobId.","failureModes":["Invalid or empty prompt returns validation error","Unsupported resolution or aspect ratio enum value causes 400 error","Payment of $10 USDC not provided or declined results in 402 Payment Required","Safety tolerance out of range (below 1 or above 5) causes schema validation failure","Output quality outside 0-100 range causes error","Job submission succeeds but video generation fails asynchronously — status will reflect failure on poll"],"whenToPreferThis":"Choose this endpoint when you need to generate a video using OpenAI's Sora-2 model on a pay-per-use basis without a subscription. Prefer this over subscription-based video generation services when cost needs to be per-generation. Use this when you need fine-grained control over resolution (up to 4 MP), aspect ratio, output format, seed reproducibility, and safety tolerance for a single video generation job.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T17:53:28.184Z","isFirstParty":false}