Documentation Index
Fetch the complete documentation index at: https://docs.akool.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Request Headers
| Parameter | Value | Description |
|---|---|---|
| x-api-key | API Key | Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded. |
| Authorization | Bearer {token} | Your API Key used for request authorization.Get Token |
Body Attributes
| Parameter | Type | Required | Description |
|---|---|---|---|
| image_url | String | true | Image URL to be animated |
| prompt | String | true | Prompt text describing how to animate the image |
| negative_prompt | String | true | Prompt text describing what to avoid in the animation |
| extend_prompt | Boolean | false | Whether to use algorithm default extended prompts |
| resolution | String | true | Resolution options: 720p, 1080p, 4k |
| audio_url | String | false | Audio URL, required when audio_type = 2 |
| audio_type | Integer | true | Audio type: 1 = AI generate, 2 = user custom upload, 3 = none (no audio) |
| video_length | Integer | true | Video duration in seconds, options: 5, 10 (10s only available for pro and above subscriptions) |
| is_premium_model | Boolean | false | Whether to use premium video model for faster generation (pro and above subscriptions only) |
| effect_code | String | false | Effect code: if specified, prompt content will be ignored.Get Effect Code |
| webhookurl | String | false | Callback URL for POST requests |
Response Attributes
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Interface returns business status code (1000:success) |
| msg | String | Interface returns status information |
| data | Object | Response data object |
| - create_time | Long | Creation timestamp |
| - uid | Integer | User ID |
| - team_id | String | Team ID |
| - status | Integer | Task status: 1=queueing, 2=processing, 3=completed, 4=failed |
| - webhookUrl | String | Callback URL |
| - resolution | String | Video resolution |
| - file_name | String | Output file name |
| - effect_name | String | Effect name |
| - _id | String | Document ID |
| - image_url | String | Input image URL |
| - prompt | String | Animation prompt |
| - negative_prompt | String | Negative prompt |
| - extend_prompt | Boolean | Whether extended prompts were used |
| - audio_type | Integer | Audio type used |
| - audio_url | String | Audio URL used |
| - deduction_credit | Integer | Credits deducted |
| - effect_code | String | Effect code used |
Example
Request Body
Request
Response
Important Notes
- Image Quality: Use high-resolution images for better animation results
- Prompt: Use descriptive prompts to guide the animation style and motion
- Negative Prompt: Specify what to avoid (e.g., “blurry, distorted”) for cleaner results
- Effects: If
effect_codeis specified, thepromptcontent will be ignored. Browse effects with Get Available Effects - Resolution: Choose from 720p, 1080p, or 4k - higher resolution costs more credits
- Video Length: 10-second videos are only available for pro and above subscriptions
- Premium Model: Use
is_premium_modelfor faster generation (pro and above subscriptions only) - Resource Expiration: Generated videos are valid for 7 days, save them promptly
- Webhook: Use
webhookUrlto receive notifications when video generation is complete - Save the
_idfrom the response to check video status using the Get Image to Video Results API