# StableStudio Sora-2 Video Generation

> StableStudio Sora-2 Video Generation is a paid API for AI agents from stablestudio.io, paid per call via x402, $10/call, status unknown (last checked 2026-09-14).

Generates an AI video using the Sora-2 model from a text prompt, returning a job ID for async retrieval

## Facts

- Endpoint: POST https://stablestudio.io/api/generate/sora-2/generate
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablestudio-sora-2-video-generation-c94a2e0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i35nJ3sdpqpq45NTk3e73

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stablestudio-sora-2-video-generation-c94a2e0e -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-generation AI image and video creation. No subscriptions ever.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "sora-2-video",
  "jobId": "cmpbmzaee000j04jrzx4f43tw",
  "status": "pending",
  "pollUrl": "https://stablestudio.dev/api/jobs/cmpbmzaee000j04jrzx4f43tw",
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablestudio-sora-2-video-generation-c94a2e0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablestudio.io](https://www.zero.xyz/host/stablestudio.io/llms.txt)
