text-to-video

Create video from text - Veo 3.1 Fast

Generate a video from text prompt using Google Veo 3.1 Fast model. Faster generation at a lower cost.

post/v1/ai/text-to-video/veo-3-1-fast

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/text-to-video/veo-3-1-fast
  • Auth: API key in header x-magnific-api-key

Request body

webhook_urlstring uri

Webhook URL to notify when the task is completed

promptstring required

Text prompt describing the video to generate

negative_promptstring

Text describing what to avoid in the generated video

duration4 | 6 | 8

Duration of the generated video in seconds.

resolution'720p' | '1080p' | '4k'

Resolution of the generated video.

aspect_ratio'16:9' | '9:16'

Aspect ratio of the generated video. 16:9 for landscape, 9:16 for portrait.

generate_audioboolean

Whether to generate audio for the video

seedinteger

Random seed for reproducibility

Example request

{
  "prompt": "A serene mountain landscape at sunset with clouds moving slowly",
  "negative_prompt": "blurry, low quality, distorted"
}

Response

OK - The task exists and the status is returned

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.