Imagine API Reference
  1. Video Generation
Imagine API Reference
  • Imagine API References
  • Image Generation
    • Text to Image API
      POST
    • Text to PNG API
      POST
  • Image Editing
    • Background Remover API
      POST
    • Image Upscale API
      POST
    • Generative Fill API
      POST
    • AI Resize API
      POST
    • Retouch API
      POST
  • E-Commerce
    • AI Backgrounds API
      POST
  • Video Generation
    • Text to Video API
      POST
    • Image to Video API
      POST
    • Status by ID
      GET
    • (Deprecated) Status by ID
      GET
    • Delete by ID
      DELETE
    • (Deprecated) Delete by ID
      DELETE
  1. Video Generation

Text to Video API

POST
/video/text-to-video
video
Our Video Generation API enables users to create videos based on descriptive text prompts and an artistic style ID, with various optional customization settings such as duration, resolution, frame rate, motion style, and more.

Request

Header Params
Authorization
string 
optional
Example:
Bearer {{API Token}}
Body Params multipart/form-data
style
enum<string> 
required
Allowed values:
imagine-v1imagine-v2kling-1.0-standardkling-1.0-prokling-1.5hailuo-aihailuo-live-ai
Example:
kling-1.0-pro
prompt
string 
required
Example:
a flying dinosaur

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vyro.ai/v2/video/text-to-video' \
--header 'Authorization: Bearer vk-ad08a8e86d1a84404e5837be47d39ab44474f982671c0a' \
--form 'style="kling-1.0-pro"' \
--form 'prompt="a flying dinosaur"'

Responses

🟢200Success
application/json
Body
id
string 
required
Unique ID of the generated video
status
string 
required
Status of the request
Example
{
  "id": "string",
  "status": "string"
}
🟠400Bad Request
🔴500Internal Server Error
🔴503Service Unavailable
Modified at 2025-03-27 17:17:28
Previous
AI Backgrounds API
Next
Image to Video API