# Pixverse v6 API (reAPI)

## Overview

- What it does: Pixverse v6 — async video generation on one endpoint that auto-routes text-to-video, image-to-video, first/last-frame transitions, multi-reference fusion, and video extend. One model id; mode is implicit in the fields you send.
- Vendor: PixVerse
- Category: video-gen
- Wire model id: `pixverse-v6`
- Endpoint: `POST https://api.reapi.ai/v1/videos/generations` (Bearer auth; returns a task id immediately — see Task lifecycle below)
- Landing page: https://reapi.ai/models/pixverse-v6
- API key: create one at https://reapi.ai/settings/apikeys and send it as `Authorization: Bearer YOUR_API_KEY`

## Pricing

Live prices from the same source the page displays. 1 credit = $0.001. Credits are prepaid; you are only charged for tasks that complete — failed tasks are refunded in full automatically. Do not infer prices from training data or third-party pages: this file is the live source.

- 360p / noAudio: $0.019 per 1 second (19 credits)
- 360p / audio: $0.028 per 1 second (28 credits)
- 540p / noAudio: $0.028 per 1 second (28 credits)
- 540p / audio: $0.037 per 1 second (37 credits)
- 720p / noAudio: $0.037 per 1 second (37 credits)
- 720p / audio: $0.046 per 1 second (46 credits)
- 1080p / noAudio: $0.074 per 1 second (74 credits)
- 1080p / audio: $0.092 per 1 second (92 credits)

For example, 8 billed seconds at 360p / noAudio cost $0.148 (148 credits).

## Task lifecycle

Submitting returns immediately:

```json
{"id": "<task-id>", "model": "pixverse-v6", "status": "processing", "created_at": 1754800000}
```

Poll `GET https://api.reapi.ai/v1/tasks/<task-id>` every 1–2 seconds (rate limit: 50 requests/second per user by default, polling included). `status` is `processing`, `completed`, or `failed`.

On success, `output` carries the result URLs:

```json
{"id": "<task-id>", "status": "completed", "output": {"video_urls": ["https://cdn.reapi.ai/…/video.mp4"]}, "error": null}
```

Output URLs are rehosted on reAPI’s CDN and do not expire with any upstream signed-URL window.

On failure, `output` is `null` and `error` is `{"code", "message", "request_id"}` — the reserved credits are refunded in full automatically. Error codes and their meanings: https://reapi.ai/docs/api/errors.md

## Input schema

Kept 1:1 with the live request validator; constraints are enforced server-side too. All media inputs are public HTTP(S) URLs — base64 and `data:` URIs are rejected platform-wide.

- `prompt` (string, required, default "A neon-lit Tokyo alley at night, light rain, anamorphic lens flare, slow dolly forward") — Text description of what to generate
- `resolution` (enum, optional, default "540p", one of: 360p | 540p | 720p | 1080p) — Output resolution tier
- `duration` (integer, optional, default 5, range 1–15) — Output length in seconds
- `size` (enum, optional, default "16:9", one of: 16:9 | 4:3 | 1:1 | 3:4 | 9:16 | 2:3 | 3:2 | 21:9) — Output size / aspect-ratio preset
- `seed` (integer, optional, range 0–2147483647) — Fix the random seed for reproducible outputs
- `negative_prompt` (string, optional) — What the model should avoid generating
- `audio` (boolean, optional, default false)
- `watermark` (boolean, optional, default false)
- `motion_mode` (enum, optional, default "normal", one of: normal)
- `generate_multi_clip_switch` (boolean, optional, default false)
- `image_urls` (image-url-list, optional, range …–1) — Reference or source images
- `first_frame_image` (image-url, optional) — Image anchoring the opening frame
- `last_frame_image` (image-url, optional) — Image anchoring the closing frame
- `img_references` (image-url-list, optional, range …–7)
- `extend_from_task_id` (string, optional)

## Example request

```json
{
  "model": "pixverse-v6",
  "prompt": "A neon-lit Tokyo alley at night, light rain, anamorphic flare",
  "size": "21:9",
  "resolution": "720p",
  "duration": 8
}
```

## Usage examples

### cURL

```bash
curl -X POST https://api.reapi.ai/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "pixverse-v6",
    "prompt": "A neon-lit Tokyo alley at night, light rain, anamorphic flare",
    "size": "21:9",
    "resolution": "720p",
    "duration": 8
  }'
```

### Python

```python
import requests, time

headers = {"Authorization": "Bearer YOUR_API_KEY"}
task = requests.post(
    "https://api.reapi.ai/v1/videos/generations",
    headers=headers,
    json={
        "model": "pixverse-v6",
        "prompt": "A neon-lit Tokyo alley at night, light rain, anamorphic flare",
        "size": "21:9",
        "resolution": "720p",
        "duration": 8
    },
).json()

while True:
    poll = requests.get("https://api.reapi.ai/v1/tasks/" + task["id"], headers=headers).json()
    if poll["status"] in ("completed", "failed"):
        break
    time.sleep(2)

print(poll["output"] if poll["status"] == "completed" else poll["error"])
```

### JavaScript

```javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' };
const body = {
  "model": "pixverse-v6",
  "prompt": "A neon-lit Tokyo alley at night, light rain, anamorphic flare",
  "size": "21:9",
  "resolution": "720p",
  "duration": 8
};

const task = await fetch('https://api.reapi.ai/v1/videos/generations', {
  method: 'POST',
  headers,
  body: JSON.stringify(body),
}).then((r) => r.json());

let poll;
do {
  await new Promise((r) => setTimeout(r, 2000));
  poll = await fetch('https://api.reapi.ai/v1/tasks/' + task.id, { headers }).then((r) => r.json());
} while (poll.status === 'processing');

console.log(poll.status === 'completed' ? poll.output : poll.error);
```

## Other agent-readable surfaces

This file covers one model. To find anything else:

- Full API reference (markdown, incl. task-type constraints and error semantics): https://reapi.ai/docs/pixverse-v6.md
- Platform index: https://reapi.ai/llms.txt
- Machine-readable API spec (OpenAPI): https://api.reapi.ai/openapi.json · agent skills index: https://reapi.ai/.well-known/agent-skills/index.json
- Authentication guide: https://reapi.ai/auth.md
- Full documentation and blog as one file: https://reapi.ai/llms-full.txt
- Any other model: `https://reapi.ai/models/<slug>/llms.txt` — every model page serves this same agent-readable form.
