# PixVerse V6 API

> PixVerse's latest video model — stylized, high-motion text- and image-to-video.

- **Provider**: PixVerse
- **Model id**: `pixverse-v6`
- **Modality**: video
- **Price**: 2.32–8.35 credits /sec

## Overview

PixVerse V6 is called in two steps: create a generation task, then poll the task until the result is ready.

## Authentication

All requests require a Bearer Token in the request header:

```
Authorization: Bearer YOUR_API_KEY
```

## Create Task

`POST https://you.bot/api/v1/generate`

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| modelId | string | Yes | Model id: `pixverse-v6` |
| input | object | Yes | Input parameters object (see below) |
| callbackUrl | string | No | https URL to receive a signed webhook on completion |

### input object parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| prompt | string | Yes | Text value (default: A neon koi fish drifts through a rain-soaked Tokyo alley at night, reflections rippling across the wet pavement.) |
| quality | string | No | Options: 360p | 540p | 720p | 1080p (default: 720p) |
| duration | number | No | Range 1-15 (default: 5) |
| aspect_ratio | string | No | Options: 16:9 | 4:3 | 1:1 | 3:4 | 9:16 | 21:9 (default: 16:9) |
| generate_audio_switch | boolean | No | True/false (default: false) |
| seed | number | No | Text value |
| generate_multi_clip_switch | boolean | No | True/false (default: false) |

### Request example

```json
{
  "modelId": "pixverse-v6",
  "input": {
    "prompt": "A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.",
    "quality": "720p",
    "duration": "5",
    "aspect_ratio": "16:9",
    "generate_audio_switch": false,
    "seed": "1",
    "generate_multi_clip_switch": false
  }
}
```

### Response example

```json
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 24
}
```

## Query Task

`GET https://you.bot/api/v1/task/{taskId}?model=pixverse-v6`

When `state` is `success`, the output is in `resultUrls`: `{ "state": "success", "resultUrls": [ ... ] }`. (Text models return inline in the create response.)

## Error Codes

| Code | Description |
|------|-------------|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed, check API Key |
| 402 | Insufficient account balance |
| 422 | Parameter validation failed |
| 429 | Request rate limit exceeded |
| 500 | Internal server error |
