FastSVD Text to Video API

FastSVDtext-to-videoAIvideo generationcreative toolsoptimized

FastSVD Text to Video API balances performance and visuals to deliver efficient video creation from text inputs.

Table of content

API Documentation

FastSVD - Text to Video

FastSVD Text to Video is designed to generate videos from text prompts quickly and efficiently, delivering high-quality outputs in a short amount of time.

Endpoint

The endpoint for Text to Video API is

POST https://api.vyro.ai/v2/video/text-to-video

Headers

You need to pass the following headers along with the request.

NameTypeRequired/OptionalDescriptionExample
AuthorizationstringRequiredPass your API token as a Bearer token in the Authorization header.Bearer {{API_TOKEN}}

Request Body Parameters

Below are the parameters for multipart/form-data that allow for a high degree of customization when generating videos.

NameTypeRequiredDescriptionExample
promptstringRequiredThe main text description of the video. Use descriptive and detailed language for best results."A futuristic cityscape at night with neon lights"
styleenumRequiredSpecifies the style of the generated video. In this case, it'd be fast-svd"fast-svd"
aspect_ratioenumOptionalDefines the width-to-height ratio of the video. Supported values include "1:1", "16:9", "9:16"."1:1"

Example API Call

Here’s a sample curl request that uses the parameters above:

curl --location --request POST 'https://api.vyro.ai/v2/video/text-to-video' \ --header 'Authorization: Bearer {{API_TOKEN}}' \ --form 'prompt="A futuristic cityscape at night with neon lights"' \ --form 'style="fast-svd"' \ --form 'aspect_ratio="1:1"'

Response

Upon a successful request, the API returns this response:

{ "id": "<video-id>", "status": "processing" }

Status API

The Status API allows users to check the progress and current state of their video generation requests. By providing a unique video ID, users can retrieve real-time updates on whether the video is still processing, completed, or encountered an error.

Status Endpoint

The endpoint for Status API is

POST https://api.vyro.ai/v2/assets/{id}/status

Status Headers

You need to pass the following headers along with the request.

NameTypeRequired/OptionalDescriptionExample
AuthorizationstringRequiredPass your API token as a Bearer token in the Authorization header.Bearer {{API_TOKEN}}

Example Status API Call

Here’s a sample curl request that uses the parameters above:

curl --location --request GET 'https://api.vyro.ai/v2/assets/{id}/status' \ --header 'Authorization: Bearer {{API_TOKEN}}'

Status Response

Upon a successful request, the API returns this JSON:

{ "status": "success", "video": { "uuid": "<video-id>", "created_at": "2025-03-04T07:09:25.048523Z", "status": "finished", "url": { "generation": "<video-url>", "thumbnail": "<thumbnail-url>" } } }

Error Handling

This section provides an in-depth explanation of errors encountered while interacting with Imagine’s system. Errors are categorized to help you pinpoint issues and apply effective solutions.

Error Schema

In case of any error, the API will return a response in the following JSON format:

{ "status": "error", "code": "<error-code>", "error": "<error-name>", "message": "<detailed-error-description>" }

This structure ensures consistency in error handling and provides clear information for debugging and resolution.

Errors in the Imagine system are grouped into four main categories:

  • Authorization Errors
  • Validation Errors
  • Service Errors
  • General Errors

Each category is explored in detail below.

Authorization Errors

Authorization errors relate to user authentication and access privileges. Common errors include:

CodeStatusMessageDescription
1000BadRequest (400)The bearer token is missing from the header.Ensure you provide a valid bearer token.
1001Unauthorized (401)The bearer token passed is invalid.Verify your token and try again.
1002NotAcceptable (406)The bearer token has expired.Refresh your token or obtain a new one.
1003BadRequest (400)Error validating the captcha.Check the captcha input.
1004BadRequest (400)The captcha is required.Provide a captcha value.
1005Unauthorized (401)Application could not be validated.Verify application credentials.
1006Unauthorized (401)Device validation failed.Check device settings and permissions.
1007Unauthorized (401)Account could not be validated.Ensure account credentials are correct.

Validation Errors

Validation errors occur when submitted data does not meet criteria. Example:

CodeStatusMessageDescription
1100BadRequest (400)The request is invalid.May involve missing, incorrect, or non-existent style IDs.
1101PaymentRequired (402)Not enough tokens.Purchase a subscription or top-up tokens.

Service Errors

Service errors can arise due to server or connectivity issues:

CodeStatusMessageDescription
1200ServiceUnavailable (503)Service not available.Linked to SVI or reverse proxy failures.
1201ServiceUnavailable (503)Unable to connect to Redis.Check Redis service status.
1202TooManyRequests (429)Excessive requests.Consider rate-limiting strategies.
1203ServiceUnavailable (503)Database connection failed.Occurs during database querying issues.
1204GatewayTimeout (504)Request timed out.Retry the request.
1205InternalServiceError (500)Unexpected service response.May arise during response unmarshaling.
1206NotImplemented (503)Unsupported service.Service is unavailable.

General Errors

General errors are broad error categories covering multiple issues:

CodeStatusMessageDescription
1300InternalServerError (500)Internal server error.Causes vary. Inspect response details for clues.

If you face Service Error or General Errors, please reach out to Imagine Support as soon as possible.

Frequently asked questions

Have Questions? Let's Talk! 👋

We're here to help you make the most out of our APIs. Whether you need a custom plan, an enterprise solution, or just want to chat, we're all ears!

Contact Sales Team
Was this page helpful?