### Pollo AI API Quick Start Guide Source: https://context7_llms A quick start guide for using the Pollo AI API. This guide helps users get started efficiently, including instructions on obtaining API keys and initial setup. ```APIDOC Quick Start: URL: https://docs.pollo.ai/quick-start.md Description: Guide to quickly start using Pollo AI's API, including obtaining API keys and initial setup. ``` -------------------------------- ### Video Generation Workflow Source: https://docs.pollo.ai/quick-start This section outlines the process for generating video using the Pollo AI API, including initiating a video generation task, checking its status, and downloading the final output. Videos are stored for two weeks. ```APIDOC API Endpoint: Video Generation 1. Initiate Video Generation: - **Action**: Send a request to the video generation endpoint. - **Success Response**: Returns a success status and a `task_id`. 2. Get Video Generation Status: - **Endpoint**: Use a status endpoint, providing the `task_id`. - **Parameters**: `task_id` (string) - **Possible Statuses**: - `processing`: The video is still being generated. - `succeed`: The video generation is complete. 3. Poll Video Generation Status: - **Action**: Continuously poll the status endpoint until the status changes to 'succeed'. - **Download**: Once 'succeed' is returned, download the video using the provided URL. - **Note**: Videos are stored for two weeks. Download promptly. ``` -------------------------------- ### Configure HTTP Request Header Source: https://docs.pollo.ai/quick-start To authenticate your requests to the Pollo AI API, you must include your API key in the HTTP request header. This is done using the 'X-API-KEY' parameter. ```APIDOC HTTP Request Header: X-API-KEY: Description: - X-API-KEY: Enter the app key created on the Pollo AI platform. ``` -------------------------------- ### Install Pollo MCP CLI Source: https://docs.pollo.ai/mcp Installs the Pollo MCP server globally using npm. This command-line tool is required to run the Pollo AI MCP server. ```bash npm install -g pollo-mcp ``` -------------------------------- ### Kling 1.0 API Overview Source: https://docs.pollo.ai/m/kling-ai/kling-v1-0 This section provides an overview of the Kling 1.0 API, which is designed for text and image to video generation. It highlights the model's capabilities, including moderate prompt adherence and quality, and guides users on how to integrate it for video creation. ```APIDOC # Kling 1.0 API Documentation > Kling 1.0 is the original Kling AI model for text and image to video generation, featuring moderate prompt adherence and quality. Learn how to integrate it for effortless video creation. ``` -------------------------------- ### Luma Ray 1.6 API Overview Source: https://docs.pollo.ai/m/luma/luma-ray-1-6 This section provides an overview of the Luma Ray 1.6 API, an earlier version of Luma AI's video generation model. It focuses on efficient video generation with realistic and detailed animations. Specific endpoints, parameters, request/response formats, and usage examples are detailed below. ```APIDOC Luma Ray 1.6 API Luma Ray 1.6 is an earlier version video generation model of Luma AI, focusing on efficient video generation with realistic and detailed animations. This API allows developers to integrate Luma Ray 1.6's video generation capabilities into their applications. Key Features: - Efficient video generation - Realistic and detailed animations Integration typically involves sending requests to specific API endpoints with appropriate parameters defining the desired video output, such as prompts, resolution, frame rate, and duration. Responses will contain the generated video or a status indicating the generation process. (Note: Specific API endpoints, parameters, request/response schemas, and examples are not provided in the input text and would typically follow this overview.) ``` -------------------------------- ### Get Task Status API Endpoint Source: https://docs.pollo.ai/task/get-task-status Retrieves the status of a specific generation task identified by its taskId. The response includes details about the task's progress, any generated media, or error messages if the task failed. Generated media is stored for up to 14 days. ```APIDOC GET /generation/{taskId}/status **Description:** Retrieves the status of a generation task. **Server:** https://pollo.ai/api/platform **Authentication:** API Key (x-api-key header) **Parameters:** - **Path Parameters:** - `taskId` (string, required): The unique identifier for the generation task. **Responses:** - **200 OK:** - **Content:** `application/json` - **Schema:** ```json { "taskId": "string", "generations": [ { "id": "string", "createdDate": "string (date-time, nullable)", "updatedDate": "string (date-time, nullable)", "status": "string (enum: waiting, succeed, failed, processing)", "failMsg": "string (nullable)", "url": "string (nullable)", "mediaType": "string (enum: image, video, text, audio)" } ] } ``` - **Example:** ```json { "taskId": "", "generations": [ { "id": "", "createdDate": "2023-11-07T05:31:56Z", "updatedDate": "2023-11-07T05:31:56Z", "status": "waiting", "failMsg": "", "url": "", "mediaType": "image" } ] } ``` - **Description:** Successful response containing task status and generation details. - **default (Error):** - **Content:** `application/json` - **Schema:** ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` - **Example:** ```json { "message": "", "code": "", "issues": [ { "message": "" } ] } ``` - **Description:** Error response indicating failure with a message, code, and potential issues. **Limitations:** - Generated videos and images are stored for a maximum of 14 days. ``` -------------------------------- ### LLM API Response Structures Source: https://docs.pollo.ai/m/google/veo2 Defines the schemas for successful and error responses from the LLM API. Includes details on required properties, data types, and example values for clarity. ```APIDOC APIDOC: components: schemas: SuccessResponse: type: object properties: taskId: type: string status: type: string requiredProperties: - taskId - status additionalProperties: false examples: example: value: taskId: status: waiting description: Successful response ErrorResponse: type: object properties: message: allOf: - type: string code: allOf: - type: string issues: allOf: - type: array items: type: object properties: message: type: string required: - message additionalProperties: false requiredProperties: - message - code additionalProperties: false examples: example: value: message: code: issues: - message: description: Error response deprecated: false type: path ``` -------------------------------- ### POST /generation/minimax/video-01 API Endpoint Source: https://docs.pollo.ai/m/hailuo/video-01 This API endpoint facilitates video generation using Minimax's Hailuo 01 model. It supports generating videos from either an image and prompt, or just a text prompt. Authentication is handled via an API key. The response includes a task ID and status, or an error object. ```APIDOC paths: /generation/minimax/video-01: post: summary: Generate video from text or image operationId: generateVideo servers: - url: https://pollo.ai/api/platform security: - ApiKeyAuth: type: apiKey in: header name: x-api-key description: API key to authorize requests parameters: - name: input in: body required: true schema: oneOf: - title: Image To Video type: object properties: image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. prompt: type: string maxLength: 2000 description: The prompt for the generation. required: - image additionalProperties: false - title: Text To Video type: object properties: prompt: type: string minLength: 1 maxLength: 2000 description: The prompt for the generation. required: - prompt additionalProperties: false - name: webhookUrl in: body required: false schema: type: string requestBody: required: true content: application/json: schema: type: object properties: input: oneOf: - $ref: '#/components/schemas/ImageToVideoInput' - $ref: '#/components/schemas/TextToVideoInput' webhookUrl: type: string required: - input additionalProperties: false examples: ImageToVideoExample: value: input: image: "https://example.com/image.jpg" prompt: "A futuristic cityscape at sunset" webhookUrl: "https://example.com/webhook" TextToVideoExample: value: input: prompt: "A cat playing a piano" webhookUrl: "https://example.com/webhook" responses: '200': description: Successful response content: application/json: schema: type: object properties: taskId: type: string status: type: string enum: - waiting - succeed - failed - processing requiredProperties: - taskId - status additionalProperties: false examples: SuccessExample: value: taskId: "task_12345" status: "waiting" default: description: Error response content: application/json: schema: type: object properties: message: type: string code: type: string issues: type: array items: type: object properties: message: type: string required: - message additionalProperties: false requiredProperties: - message - code additionalProperties: false examples: ErrorExample: value: message: "Invalid input provided" code: "INVALID_REQUEST" issues: - message: "Image URL is not valid." components: schemas: ImageToVideoInput: type: object properties: image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. prompt: type: string maxLength: 2000 description: The prompt for the generation. required: - image additionalProperties: false TextToVideoInput: type: object properties: prompt: type: string minLength: 1 maxLength: 2000 description: The prompt for the generation. required: - prompt additionalProperties: false ``` -------------------------------- ### OpenAPI POST /generation/wanx/wanx-v2-1 Source: https://docs.pollo.ai/m/wanx/wanx-v2-1 This entry details the POST request for the /generation/wanx/wanx-v2-1 endpoint, which handles video generation tasks. It specifies the server URL, authentication method (API Key), request body structure for both image-to-video and text-to-video inputs, and the expected response format including task ID and status. ```APIDOC POST /generation/wanx/wanx-v2-1 Server: https://pollo.ai/api/platform Authentication: ApiKeyAuth (x-api-key header) Request Body: Content-Type: application/json Schema: type: object properties: input: oneOf: - title: Image To Video type: object properties: image: type: string description: "Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1." prompt: type: string minLength: 1 maxLength: 800 description: "The prompt of the generation" mode: type: string enum: [fast, pro] default: fast description: "The generation mode." length: type: number enum: [5] default: 5 description: "The length of the generation." seed: type: number maximum: 2147483647 description: "The seed of the generation." required: [image, prompt] additionalProperties: false - title: Text To Video type: object properties: prompt: type: string minLength: 1 maxLength: 800 description: "The prompt of the generation" mode: type: string enum: [fast, pro] default: fast description: "The generation mode." length: type: number enum: [5] default: 5 description: "The length of the generation." aspectRatio: type: string enum: ['16:9', '9:16', '4:3', '3:4', '1:1'] default: '16:9' description: "The aspect ratio of the generation." seed: type: number maximum: 2147483647 description: "The seed of the generation." required: [prompt] additionalProperties: false webhookUrl: type: string required: [input] additionalProperties: false Request Example: image: "" prompt: "" mode: "fast" length: 5 seed: 123 webhookUrl: "" Responses: '200': Content-Type: application/json Schema: type: object properties: taskId: type: string status: type: string enum: [waiting, succeed, failed, processing] requiredProperties: [taskId, status] additionalProperties: false Example: taskId: "" status: "waiting" default: Content-Type: application/json # Schema for default response is not specified in the provided OpenAPI definition. ``` -------------------------------- ### API Response Structures Source: https://docs.pollo.ai/m/pollo/pollo-v1-6 Defines the expected JSON structures for API responses, covering both successful operations and error conditions. Includes details on required fields, data types, and example payloads. ```APIDOC API Response Schemas: Successful Response: Type: object Properties: taskId: { type: string } status: { type: string, enum: ["waiting", "succeed", "failed", "processing"] } Required Properties: - taskId - status Additional Properties: false Examples: example: value: taskId: "a1b2c3d4-e5f6-7890-1234-567890abcdef" status: "waiting" Error Response: Type: object Properties: message: { type: string } code: { type: string } issues: type: array items: type: object properties: message: { type: string } required: - message additionalProperties: false Required Properties: - message - code Additional Properties: false Examples: example: value: message: "An internal error occurred." code: "INTERNAL_ERROR" issues: - message: "Failed to process request due to invalid input." ``` -------------------------------- ### Hailuo Live2D Generation API Endpoint Source: https://docs.pollo.ai/m/hailuo/video-01-live2d This section details the POST /generation/minimax/video-01-live2d endpoint for the Hailuo Live2D API. It outlines the request parameters, including prompt and image URL, and the expected response structure for task status. It also specifies security requirements using an API key. ```APIDOC POST /generation/minimax/video-01-live2d paths: path: /generation/minimax/video-01-live2d method: post servers: - url: https://pollo.ai/api/platform request: security: - title: ApiKeyAuth parameters: query: {} header: x-api-key: type: apiKey description: API key to authorize requests cookie: {} parameters: path: {} query: {} header: {} cookie: {} body: application/json: schemaArray: - type: object properties: input: allOf: - type: object properties: prompt: type: string maxLength: 2000 description: The prompt of the generation image: type: string description: |- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. required: - image additionalProperties: false webhookUrl: allOf: - type: string required: true requiredProperties: - input additionalProperties: false examples: example: value: input: prompt: image: webhookUrl: response: '200': application/json: schemaArray: - type: object properties: taskId: allOf: - type: string status: allOf: - type: string enum: - waiting - succeed - failed - processing requiredProperties: - taskId - status additionalProperties: false examples: example: value: taskId: status: waiting description: Successful response default: application/json: schemaArray: - type: object properties: message: allOf: - type: string code: allOf: - type: string issues: allOf: - type: array items: type: object properties: message: type: string required: - message additionalProperties: false requiredProperties: - message - code additionalProperties: false examples: example: value: message: code: issues: - message: description: Error response deprecated: false type: path components: schemas: {} ``` -------------------------------- ### API Response Structures Source: https://docs.pollo.ai/m/pika/pika-v2-1 Defines the expected JSON structures for API responses, covering both successful operations and error conditions. Includes details on required fields, data types, and example payloads. ```APIDOC API Response Schemas: Successful Response: Type: object Properties: taskId: { type: string } status: { type: string, enum: ["waiting", "succeed", "failed", "processing"] } Required Properties: - taskId - status Additional Properties: false Examples: example: value: taskId: "a1b2c3d4-e5f6-7890-1234-567890abcdef" status: "waiting" Error Response: Type: object Properties: message: { type: string } code: { type: string } issues: type: array items: type: object properties: message: { type: string } required: - message additionalProperties: false Required Properties: - message - code Additional Properties: false Examples: example: value: message: "An internal error occurred." code: "INTERNAL_ERROR" issues: - message: "Failed to process request due to invalid input." ``` -------------------------------- ### Pollo 1.5 Model Overview Source: https://docs.pollo.ai/m/pollo/pollo-v1-5 This section provides an overview of the Pollo 1.5 model, highlighting its advanced capabilities for generating high-resolution, creative, and cinematic videos. It serves as an introduction for developers looking to integrate the model for text and image-based video creation. ```APIDOC Pollo 1.5 Model: Description: Advanced and versatile model for generating high-resolution, creative, and cinematic videos. Input Types: Text, Image Output Types: Video Key Features: Efficiency, High-resolution output, Creative video generation. Integration Guide: Available for developers to learn how to integrate the model. ``` -------------------------------- ### Hunyuan API Overview Source: https://docs.pollo.ai/m/hunyuan/hunyuan This section provides an overview of the Hunyuan API, Tencent's advanced video model. It highlights the model's specialization in natural motion and realistic video and image synthesis, guiding users on integration procedures. ```APIDOC Hunyuan API Overview: Description: Tencent's 13-billion-parameter video model specializing in natural motion and realistic video and image synthesis. Integration: Guidance available for integrating the Hunyuan model into applications. Capabilities: Natural motion, realistic video synthesis, realistic image synthesis. ``` -------------------------------- ### Configure Pollo AI MCP Server in Cursor Source: https://docs.pollo.ai/mcp Configuration snippet for integrating the Pollo AI MCP server with the Cursor IDE. This JSON object specifies the command to run the server and its environment variables, including API key and base URL. ```json { "mcpServers": { "pollo.ai": { "command": "npx", "args": [ "-y", "mcp-server-pollo" ], "env": { "POLLO_AI_BASE_URL": "https://pollo.ai", "POLLO_AI_API_KEY": "", "POLLO_AI_HOME_DIR": "", "POLLO_AI_VIDEO_MODEL_IMG": "", "POLLO_AI_VIDEO_MODEL_TEXT": "" } } } } ``` -------------------------------- ### Get Credit Balance - Pollo AI API Source: https://docs.pollo.ai/credits/balance Retrieves the user's current credit balance from the Pollo AI API. This endpoint returns the available and total credits. It requires no specific parameters for the request itself, but authentication is implied for API access. ```APIDOC GET /credit/balance servers: - url: https://pollo.ai/api/platform request: security: [] parameters: path: {} query: {} header: {} cookie: {} body: {} response: '200': application/json: schemaArray: - type: object properties: availableCredits: allOf: - type: number totalCredits: allOf: - type: number requiredProperties: - availableCredits - totalCredits additionalProperties: false examples: example: value: availableCredits: 123 totalCredits: 123 description: Successful response default: application/json: schemaArray: - type: object properties: message: allOf: - type: string code: allOf: - type: string issues: allOf: - type: array items: type: object properties: message: type: string required: - message additionalProperties: false requiredProperties: - message - code additionalProperties: false examples: example: value: message: code: issues: - message: description: Error response deprecated: false type: path ``` -------------------------------- ### OpenAPI: POST /generation/vidu/vidu-q1 Generation Endpoint Source: https://docs.pollo.ai/m/vidu/vidu-q1 Documentation for the Pollo AI platform's /generation/vidu/vidu-q1 POST endpoint. This API allows for video generation from text or images, supporting various parameters like prompt, image URLs, aspect ratio, and resolution. It requires API key authentication and specifies server URLs. ```APIDOC POST /generation/vidu/vidu-q1 paths: path: /generation/vidu/vidu-q1 method: post servers: - url: https://pollo.ai/api/platform request: security: - title: ApiKeyAuth parameters: query: {} header: x-api-key: type: apiKey description: API key to authorize requests cookie: {} parameters: path: {} query: {} header: {} cookie: {} body: application/json: schemaArray: - type: object properties: input: allOf: - anyOf: - type: object properties: prompt: type: string maxLength: 2500 description: The prompt of the generation image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. imageTail: type: string description: The image tail of the generation movementAmplitude: type: string enum: - auto - small - medium - large default: auto length: type: number enum: - 5 default: 5 description: The length of the generation resolution: type: string enum: - 1080p default: 1080p description: The resolution of the generation seed: type: number description: The seed of the generation required: - image additionalProperties: false title: Image To Video - type: object properties: prompt: type: string minLength: 1 maxLength: 2500 description: The prompt of the generation style: type: string enum: - general - anime default: general aspectRatio: type: string enum: - '16:9' - '9:16' - '1:1' default: '16:9' description: The aspect ratio of the generation movementAmplitude: type: string enum: - auto - small - medium - large default: auto length: type: number enum: - 5 default: 5 description: The length of the generation resolution: type: string enum: - 1080p default: 1080p description: The resolution of the generation seed: type: number description: The seed of the generation required: - prompt additionalProperties: false title: Text To Video webhookUrl: allOf: - type: string required: true requiredProperties: - input additionalProperties: false examples: example: value: input: prompt: image: ``` -------------------------------- ### OpenAPI POST /generation/kling-ai/kling-v1 Source: https://docs.pollo.ai/m/kling-ai/kling-v1-0 This OpenAPI specification details the POST request for the /generation/kling-ai/kling-v1 endpoint. It includes server URL, API key authentication, and a complex request body schema supporting both image-to-video and text-to-video generation with various parameters like prompt, image, aspect ratio, length, and strength. ```APIDOC POST /generation/kling-ai/kling-v1 paths: path: /generation/kling-ai/kling-v1 method: post servers: - url: https://pollo.ai/api/platform request: security: - title: ApiKeyAuth parameters: query: {} header: x-api-key: type: apiKey description: API key to authorize requests cookie: {} parameters: {} body: application/json: schemaArray: - type: object properties: input: allOf: - anyOf: - type: object properties: image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. prompt: type: string maxLength: 2500 description: The prompt of the generation imageTail: type: string description: The image tail of the generation negativePrompt: type: string maxLength: 2500 description: The negative prompt of the generation length: type: number enum: - 5 - 10 default: 5 description: The length of the generation strength: type: number minimum: 0 maximum: 100 default: 50 description: The prompt strength of the generation mode: type: string enum: - std - pro default: std required: - image additionalProperties: false title: Image To Video - type: object properties: prompt: type: string minLength: 1 maxLength: 2500 description: The prompt of the generation aspectRatio: type: string enum: - '16:9' - '9:16' - '1:1' default: '16:9' description: The aspect ratio of the generation negativePrompt: type: string maxLength: 2500 description: The negative prompt of the generation length: type: number enum: - 5 - 10 default: 5 description: The length of the generation strength: type: number minimum: 0 maximum: 100 default: 50 description: The prompt strength of the generation mode: anyOf: - type: string enum: - std - type: string enum: - pro default: std cameraControl: anyOf: - type: object properties: type: type: string enum: - simple config: type: object properties: subType: type: string ``` -------------------------------- ### POST /generation/kling-ai/kling-v2-1-master - Generation Endpoint Source: https://docs.pollo.ai/m/kling-ai/kling-v2-1-master This endpoint facilitates content generation using Kling AI models (kling-v2-1-master) on the Pollo AI platform. It accepts either image-based or text-based prompts for video generation, requiring an API key for authentication. The response includes a taskId and status for tracking the generation job. ```YAML paths: path: /generation/kling-ai/kling-v2-1-master method: post servers: - url: https://pollo.ai/api/platform request: security: - title: ApiKeyAuth parameters: query: {} header: x-api-key: type: apiKey description: API key to authorize requests cookie: {} parameters: {} body: application/json: schemaArray: - type: object properties: input: allOf: - anyOf: - type: object properties: image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. prompt: type: string maxLength: 2500 description: The prompt of the generation negativePrompt: type: string maxLength: 2500 description: The negative prompt of the generation strength: type: number minimum: 0 maximum: 100 default: 50 description: The prompt strength of the generation length: type: number enum: - 5 - 10 default: 5 description: The length of the generation required: - image additionalProperties: false title: Image To Video - type: object properties: prompt: type: string minLength: 1 maxLength: 2500 description: The prompt of the generation aspectRatio: type: string enum: - '16:9' - '9:16' - '1:1' default: '16:9' description: The aspect ratio of the generation negativePrompt: type: string maxLength: 2500 description: The negative prompt of the generation strength: type: number minimum: 0 maximum: 100 default: 50 description: The prompt strength of the generation length: type: number enum: - 5 - 10 default: 5 description: The length of the generation required: - prompt additionalProperties: false title: Text To Video webhookUrl: allOf: - type: string required: true requiredProperties: - input additionalProperties: false examples: example: value: input: image: prompt: negativePrompt: strength: 50 length: 5 webhookUrl: response: '200': application/json: schemaArray: - type: object properties: taskId: allOf: - type: string status: allOf: - type: string enum: - waiting - succeed - failed - processing requiredProperties: - taskId - status additionalProperties: false examples: example: value: taskId: ``` -------------------------------- ### Wanx 2.1 API Documentation Source: https://context7_llms Wanx 2.1 is Alibaba Cloud’s flagship multimodal video foundation model. It excels at generating cinematic videos with realistic physics, complex motion handling, and bilingual text effects. Learn how to integrate it. ```APIDOC Wanx 2.1 API Documentation: URL: https://docs.pollo.ai/m/wanx/wanx-v2-1.md Description: Alibaba Cloud's multimodal video foundation model excelling at cinematic videos with realistic physics, complex motion, and bilingual text effects. ``` -------------------------------- ### OpenAPI POST /generation/google/veo3-fast Source: https://docs.pollo.ai/m/google/veo3-fast This entry documents the POST request to the /generation/google/veo3-fast endpoint on the Pollo AI platform. It covers the API structure, authentication requirements (API Key), request body schemas for both image-to-video and text-to-video generation, including parameters like image URL, prompt, negative prompt, length, aspect ratio, resolution, seed, and webhook URL. The API supports specific image formats and aspect ratios, with defined constraints on prompt length. ```APIDOC POST /generation/google/veo3-fast servers: - url: https://pollo.ai/api/platform request: security: - title: ApiKeyAuth parameters: header: x-api-key: type: apiKey description: API key to authorize requests parameters: path: {} query: {} header: {} cookie: {} body: application/json: schemaArray: - type: object properties: input: allOf: - anyOf: - type: object properties: image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. prompt: type: string minLength: 1 maxLength: 2000 description: The prompt of the generation negativePrompt: type: string maxLength: 2000 description: The negative prompt of the generation length: type: number enum: - 8 default: 8 description: The length of the generation aspectRatio: type: string enum: - '16:9' default: '16:9' description: The aspect ratio of the generation resolution: type: string enum: - 720p - 1080p default: 720p description: The resolution of the generation seed: type: number maximum: 2147483647 description: The seed of the generation generateAudio: type: boolean default: true required: - image additionalProperties: false title: Image To Video - type: object properties: prompt: type: string minLength: 1 maxLength: 2000 description: The prompt of the generation negativePrompt: type: string maxLength: 2000 description: The negative prompt of the generation length: type: number enum: - 8 default: 8 description: The length of the generation aspectRatio: type: string enum: - '16:9' default: '16:9' description: The aspect ratio of the generation resolution: type: string enum: - 720p - 1080p default: 720p description: The resolution of the generation seed: type: number maximum: 2147483647 description: The seed of the generation generateAudio: type: boolean default: true required: - prompt additionalProperties: false title: Text To Video webhookUrl: allOf: - type: string required: true requiredProperties: - input additionalProperties: false examples: example: value: input: ``` ```YAML paths: /generation/google/veo3-fast: post: servers: - url: https://pollo.ai/api/platform requestBody: content: application/json: schema: oneOf: - $ref: '#/components/schemas/ImageToVideo' - $ref: '#/components/schemas/TextToVideo' examples: image_to_video_example: value: input: image: "https://example.com/image.jpg" prompt: "A futuristic city skyline" aspectRatio: "16:9" resolution: "1080p" text_to_video_example: value: input: prompt: "A serene forest scene with a gentle stream" aspectRatio: "16:9" resolution: "720p" responses: '200': description: Successful generation content: application/json: schema: type: object properties: result: type: string description: URL to the generated video webhookUrl: type: string description: The webhook URL provided in the request '400': description: Bad Request '401': description: Unauthorized '500': description: Internal Server Error components: schemas: ImageToVideo: type: object properties: image: type: string description: >- Only image URLs are accepted; base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1. prompt: type: string minLength: 1 maxLength: 2000 description: The prompt of the generation negativePrompt: type: string maxLength: 2000 description: The negative prompt of the generation length: type: number enum: [8] default: 8 description: The length of the generation aspectRatio: type: string enum: ['16:9'] default: '16:9' description: The aspect ratio of the generation resolution: type: string enum: ['720p', '1080p'] default: '720p' description: The resolution of the generation seed: type: number maximum: 2147483647 description: The seed of the generation generateAudio: type: boolean default: true description: Whether to generate audio for the video required: - image additionalProperties: false TextToVideo: type: object properties: prompt: type: string minLength: 1 maxLength: 2000 description: The prompt of the generation negativePrompt: type: string maxLength: 2000 description: The negative prompt of the generation length: type: number enum: [8] default: 8 description: The length of the generation aspectRatio: type: string enum: ['16:9'] default: '16:9' description: The aspect ratio of the generation resolution: type: string enum: ['720p', '1080p'] default: '720p' description: The resolution of the generation seed: type: number maximum: 2147483647 description: The seed of the generation generateAudio: type: boolean default: true description: Whether to generate audio for the video required: - prompt additionalProperties: false securitySchemes: ApiKeyAuth: type: apiKey in: header name: x-api-key ```