text-to-video

PixVerse V5 - Create video from text

Generate a video from a text prompt using the PixVerse-V5 text-to-video model. Control aspect ratio, resolution, duration and visual style directly from the request body.

post/v1/ai/text-to-video/pixverse-v5

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/text-to-video/pixverse-v5
  • Auth: API key in header x-magnific-api-key

Request body

promptstring required

Text prompt describing the video to generate

aspect_ratio'widescreen_16_9' | 'classic_4_3' | 'square_1_1' | 'traditional_3_4' | 'social_story_9_16'

The aspect ratio of the generated video

resolution'360p' | '540p' | '720p' | '1080p'

The resolution of the generated video

duration5 | 8

The duration of the generated video in seconds. 8s videos cost double. 1080p videos are limited to 5 seconds.

negative_promptstring

Negative prompt to be used for the generation

style'anime' | '3d_animation' | 'clay' | 'cyberpunk' | 'comic'

The style of the generated video

seedinteger

The same seed and the same prompt given to the same version of the model will output the same video every time

webhook_urlstring uri

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

Example request

{
  "style": "anime",
  "webhook_url": "https://www.example.com/webhook"
}

Response

OK

Example response

{
  "data": {
    "generated": [
      "https://openapi-generator.tech",
      "https://openapi-generator.tech"
    ],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.