---
title: "OpenAI-compatible text-to-video (Sora shape; x402 or API-key paid)"
method: POST
path: "/v1/agent/videos"
---

# OpenAI-compatible text-to-video (Sora shape; x402 or API-key paid)

`POST /v1/agent/videos`

## Request

- Base URL: `https://livepairai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://livepairai.com/v1/agent/videos`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - none

OpenAI Videos API shape — returns a job object immediately; poll GET /v1/agent/videos/{id} for status, fetch the mp4 at GET /v1/agent/videos/{id}/content (302 to the media URL). `model` accepts LivePair video model ids (mode t2v in the catalog); `size` maps to aspect ratio + resolution tier (1280x720→16:9/720p, 720x1280→9:16/720p, 1792 edges→1080p); `seconds` maps to the model's duration ladder. The payment settles at submit — a provider-side failure discovered later refunds the API-key rail via the sweep (x402 settlement cannot un-settle).

## Request body

- object
  - `prompt` string, required
  - `model` string: LivePair video model id — omit for the catalog default
  - `size` '1280x720' | '720x1280' | '1792x1024' | '1024x1792'
  - `seconds` string
  - `resolution` string
  - `aspectRatio` string
  - `audio` boolean
  - `payer` string

## Response `200`

Sora-shaped video job — {id, object:'video', status, model, size, seconds, created_at}

## Other responses

- `402`: Payment Required — PAYMENT-REQUIRED header carries accepts[] requirements (USDC on Base eip155:8453)

---

[API](https://skmtc.dev/livepairai/apis/private-ai-media-generation-api.md) · [All operations](https://skmtc.dev/livepairai/apis/private-ai-media-generation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livepairai/apis/private-ai-media-generation-api/revisions/84e74cdf1dbd?raw)
