AIAPIAIAPI API

Pixverse v6 reference-to-video

Model ID pixverse/v6/reference-to-video

Overview

PixVerse · reference-to-video

Important: Reference images are named image1, image2, etc. for @image1 prompt tags. Optional extra.image_options is an array aligned with images; each object may contain type (subject/background) and ref_name (at most 30 UTF-8 bytes). Reference request bodies must not exceed 20 MB.

Endpoint

POST /v1/video/generations

Authentication

Authorization: Bearer <AIAPIAIAPI_API_KEY>

Request Body

ParameterTypeRequiredNullableDefaultConstraintsDescription
modelstringYesNo-values: pixverse/v6/reference-to-videoModel ID used to route the request.
promptstringYesNo--Text prompt describing the desired output.
imagesarrayYesNo-min_items: 1; max_count: 7; accepts: Public URL, Base64Reference images; each item accepts an HTTPS URL or Base64 data URL.
audio_enablebooleanNoNo`true`-Whether to generate audio together with the video.
durationintegerNoNo`5`range: 1-15Generated video duration in seconds.
resolutionstringNoNo`720p`values: 360p, 540p, 720p, 1080pOutput video resolution.
aspect_ratiostringNoNo`16:9`values: 16:9, 9:16, 1:1, 4:3, 3:4, 2:3, 3:2, 21:9Output video aspect ratio.
seedintegerNoNo--Random seed; use -1 for a random result.

model

Type: string · Required: Yes · Nullable: No

Model ID used to route the request.

prompt

Type: string · Required: Yes · Nullable: No

Text prompt describing the desired output.

images

Type: array · Required: Yes · Nullable: No

Reference images; each item accepts an HTTPS URL or Base64 data URL.

audio_enable

Type: boolean · Required: No · Nullable: No

Whether to generate audio together with the video.

duration

Type: integer · Required: No · Nullable: No

Generated video duration in seconds.

resolution

Type: string · Required: No · Nullable: No

Output video resolution.

aspect_ratio

Type: string · Required: No · Nullable: No

Output video aspect ratio.

seed

Type: integer · Required: No · Nullable: No

Random seed; use -1 for a random result.

Request Example

curl --request POST \
  --url https://aiapiaiapi.com/v1/video/generations \
  --header 'Authorization: Bearer $AIAPIAIAPI_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
      "model": "pixverse/v6/reference-to-video",
      "prompt": "A cinematic camera movement through a forest",
      "images": ["https://example.com/reference.jpg"],
      "duration": 5,
      "resolution": "720p"
    }'

JSON

{
  "model": "pixverse/v6/reference-to-video",
  "prompt": "A cinematic camera movement through a forest",
  "images": ["https://example.com/reference.jpg"],
  "duration": 5,
  "resolution": "720p"
}

Response

{
  "id": "vid_01K2ABC123",
  "object": "video.generation",
  "model": "pixverse/v6/reference-to-video",
  "status": "queued",
  "progress": null,
  "outputs": [],
  "created_at": 1786960800,
  "started_at": null,
  "completed_at": null,
  "error": null
}

Task Status

Use the id from the create response as task_id:

GET /v1/video/generations/{task_id}

{
  "id": "vid_01K2ABC123",
  "object": "video.generation",
  "model": "pixverse/v6/reference-to-video",
  "status": "completed",
  "progress": 100,
  "outputs": [
    { "type": "video", "url": "https://cdn.example.com/videos/vid_01K2ABC123.mp4" }
  ],
  "created_at": 1786960800,
  "started_at": 1786960805,
  "completed_at": 1786960900,
  "error": null
}

Error Responses

Validation errors return HTTP 400 with a stable error code.

{
  "error": {
    "type": "invalid_request_error",
    "code": "unsupported_value",
    "message": "The parameter value is not supported by this model.",
    "param": "duration"
  }
}

Documentation Index

Fetch the complete documentation index at:

https://aiapiaiapi.com/llms.txt

Use this file to discover all available API documentation.