# StableStudio Sora 2 Video Generation

> StableStudio Sora 2 Video Generation is a paid API for AI agents from StableStudio at stablestudio.dev, paid per call via MPP or x402, $10/call, status unknown (last checked 2026-10-12, last successful call 2026-08-12).

Generates a short AI video (4–12 seconds) from a text prompt using OpenAI's Sora 2 model, returning a job ID for async retrieval

## Facts

- Endpoint: POST https://stablestudio.dev/api/generate/sora-2/generate?utm_source=zero.xyz
- Price: $10/call
- Payment: MPP, x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-08-12
- Success rate: 93% of calls made through Zero
- Rating: 3.8 / 5 from 2 reviews
- Activations on Zero: 17
- Provider: StableStudio
- Docs: https://stablestudio.dev
- Website: https://stablestudio.dev
- Tags: image, video, generation, nano-banana, gpt-image, grok, flux, sora, veo, seedance, wan, ai, media, x402
- Canonical page: https://www.zero.xyz/c/stablestudio-generate-c694355a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m26L3JucPecwKJ4sNraD6

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-generate-c694355a -d '<json body>'
```

Example prompt: Generate a 8-second landscape video of a golden retriever running along a sunny beach at sunset, using Sora 2.

## When to prefer this

Choose this endpoint when you specifically want OpenAI Sora 2 video quality and characteristics (not Sora 2 Pro, Veo, Seedance, or Flux). Use it for 4–12 second clips in landscape (1280x720) or portrait (720x1280) format from a text prompt or reference image, via StableStudio's pay-per-generation API.

## Known failure modes

- Invalid or missing prompt returns a 400 validation error
- Unsupported size or seconds enum value returns a 400 error
- Invalid URI format for input_reference returns a 400 error
- Insufficient funds or payment failure returns a 402 error
- Sora 2 model unavailable returns a 503 or 500 error
- Job creation succeeds but downstream rendering may fail, requiring job status polling to detect

## How this service works

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

## Output

Returns a JSON object with a jobId string, status set to 'pending', success true, and a type field — the agent must poll a separate job-status endpoint using the jobId to retrieve the final video once processing completes.

## Example request

```json
{
 "size": "1280x720",
 "prompt": "A serene landscape with rolling green hills and a clear blue sky, with white clouds drifting slowly across the horizon",
 "seconds": "8",
 "autoCrop": true
}
```

## 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-generate-c694355a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablestudio.dev](https://www.zero.xyz/host/stablestudio.dev/llms.txt)
