Skip to main content
DeepInfra hosts text-to-video models that generate short video clips from a text description. Browse all text-to-video models.

Endpoint

Example

Response

video_url carries the whole clip inline as a data: URI — it is not an HTTP link, so decode the base64 payload to write the file. output_length is the clip duration in seconds, which is what these models are billed on.

Tips for good prompts

  • Be descriptive about the scene, lighting, and motion
  • Specify the camera movement if relevant (e.g. “slow pan”, “aerial shot”, “close-up”)
  • Keep prompts focused — overly complex prompts can produce inconsistent results
  • Use the negative prompt parameter (if supported) to exclude unwanted elements

Async inference

Video generation is compute-intensive and may take longer than text inference. Consider using webhooks to receive the result asynchronously rather than polling.

Available models

Browse all text-to-video models.