Lily AI Veo3 API Documentation

Welcome to the official documentation for the Lily AI Veo3 Image-to-Video (I2V) API. This guide will help you understand how to integrate and use our powerful AI-driven video generation service.

1. Introduction

The Lily AI Veo3 API allows you to transform static image prompts into dynamic video sequences. By providing a descriptive image prompt and an optional video prompt, our AI generates high-quality video content.

Note: This API acts as a gateway to multiple backend Lily AI Veo3 servers, automatically load-balancing your requests for optimal performance and reliability.

2. Authentication

All requests to the Lily AI Veo3 API must be authenticated using a unique API token. You can generate and manage your API tokens from your user dashboard under the "API Tokens" section.

How to obtain your API Token:

  1. Register for an account (if you haven't already).
  2. Log in to your dashboard.
  3. Navigate to the API Tokens page.
  4. Generate a new token. Make sure to copy the full token value immediately, as it will only be shown once for security reasons.

Providing the Token:

Your API token must be included in the Authorization header of every request.

Authorization: YOUR_API_TOKEN_HERE
Security Warning: Keep your API token secure and never expose it in client-side code or public repositories. Treat it like a password.

3. API Endpoint

The primary endpoint for interacting with the Lily AI Veo3 API is:

POST https://google-api.lailaautobot.one/api.php

4. Request Format

Requests must be sent as POST requests with a Content-Type: application/json header. The request body should be a JSON object containing the following parameters:

Request Headers:

Header Required Type Description
Content-Type Yes String Must be application/json.
Authorization Yes String Your unique API token (e.g., 2f1390fd65...).

Request Body Parameters:

Parameter Required Type Description
prompt_image Yes String A descriptive text prompt for the initial image generation. Max 200 characters.
prompt_video Yes String A descriptive text prompt for the video sequence based on the image. Max 200 characters.
max_time No Integer Optional timeout in seconds for the request. Default is 600 seconds (10 minutes).

Example Request (using curl)

curl -X POST "https://google-api.lailaautobot.one/api.php" \
     -H "Content-Type: application/json" \
     -H "Authorization: YOUR_API_TOKEN_HERE" \
     -d '{
           "prompt_image": "A majestic eagle soaring over mountains",
           "prompt_video": "The eagle dives gracefully towards a river, catching a fish"
         }' \
     --max-time 600
Note for Windows Users: When using curl in Windows Command Prompt (CMD), you need to escape internal double quotes within the JSON payload with a backslash (\") and wrap the entire -d argument in double quotes. For PowerShell, single quotes around the JSON body usually work fine. See usage examples below.

Windows CMD Example:

curl -X POST "https://google-api.lailaautobot.one/api.php" ^
     -H "Content-Type: application/json" ^
     -H "Authorization: YOUR_API_TOKEN_HERE" ^
     -d "{\"prompt_image\": \"A majestic eagle soaring over mountains\", \"prompt_video\": \"The eagle dives gracefully towards a river, catching a fish\"}" ^
     --max-time 600

Windows PowerShell Example:

curl -Method POST "https://google-api.lailaautobot.one/api.php" `
     -Headers @{"Content-Type" = "application/json"; "Authorization" = "YOUR_API_TOKEN_HERE"} `
     -Body '{"prompt_image": "A majestic eagle soaring over mountains", "prompt_video": "The eagle dives gracefully towards a river, catching a fish"}' `
     -TimeoutSec 600

5. Response Format

All successful responses will be returned as a JSON object.

Success Response (HTTP Status: 200 OK)

Parameter Type Description
status String Indicates the success of the operation. Typically SUCCESS_I2V for image-to-video.
video_url String The URL where the generated video can be accessed. This URL will be hosted on our service.

Example Success Response

{
  "status": "SUCCESS_I2V",
  "video_url": "https://google-api.lailaautobot.one/Video/lily-i2v-veo30-27224.mp4"
}
Note: The `video_url` will point to one of the backend Landscape servers from which the video was generated.

6. Error Handling

In case of an error, the API will return a JSON object with an error status and a descriptive message. The HTTP status code will indicate the type of error.

Error Response Format:

Parameter Type Description
status String Always ERROR for error responses.
message String A human-readable message describing the error.
backend_raw_response (Optional) String If the backend API returned an invalid response, this field might contain the raw, unparseable response for debugging.

Common Error Codes:

HTTP Status Code Status Message Example Description
400 Bad Request ERROR Invalid JSON request body. The request body could not be parsed as valid JSON.
400 Bad Request ERROR Missing 'prompt_image' or 'prompt_video' in request. One or more required parameters are missing from the request body.
401 Unauthorized ERROR Authorization token missing. The Authorization header was not provided.
401 Unauthorized ERROR Invalid API token. The provided API token is not recognized or does not exist.
401 Unauthorized ERROR API token has expired. The provided API token has passed its expiration date.
500 Internal Server Error ERROR An unknown error occurred. A generic server-side error.
500 Internal Server Error ERROR Backend API returned an invalid or empty response. The backend server responded, but its response was not valid JSON or was empty.
502 Bad Gateway ERROR Failed to connect to backend API: [...] The API gateway could not connect to the internal Lily AI Veo3 server.
504 Gateway Timeout ERROR Failed to connect to backend API: Operation timed out. The backend server did not respond within the allocated time (e.g., 600 seconds).

Example Error Response

{
  "status": "ERROR",
  "message": "Authorization token missing."
}

7. Rate Limits

Information on rate limits will be provided here. Currently, no explicit rate limits are enforced, but excessive requests may lead to temporary blocking or throttling to ensure service stability. Please use the API responsibly.

Upcoming Features: Dedicated rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset) will be implemented in future updates.

8. Support

If you encounter any issues or have questions that are not covered in this documentation, please reach out to our support team at support@lailaautobot.one. Please include your User ID, the API token you are using, and detailed steps to reproduce any issues.