Experience our talking photo technology in action by exploring our interactive demo on GitHub: AKool Talking Photo Demo.
API Endpoints
Talking Photo Operations
- Create By Talking Photo - Create animated video from photo and audio
- Get Video Info Result - Retrieve talking photo video results by ID
Getting Started
Basic Workflow
-
Create Talking Photo Video:
- Prepare your talking photo image URL
- Prepare your audio URL
- Optionally provide prompt
- Call the Create By Talking Photo API with your resources
-
Check Results:
- Use the Get Video Info Result API to check the status of your video
- Download the result URL when the status is “Success” (video_status = 3)
Response Code Description
Please note that if the value of the response code is not equal to 1000, the request
has failed or encountered an error.
| Code | Description |
|---|---|
| 1000 | Success |
| 1003 | Parameter error or Parameter cannot be empty |
| 1008 | The content you get does not exist |
| 1009 | You do not have permission to operate |
| 1015 | Create video error, please try again later |
| 1101 | Invalid authorization or The request token has expired |
| 1102 | Authorization cannot be empty |
| 1200 | The account has been banned |
| 1201 | Create audio error, please try again later |
Talking Photo Status Codes
When checking results, thevideo_status field indicates the current state:
| Status | Description |
|---|---|
| 1 | In Queue - Your request is waiting to be processed |
| 2 | Processing - Talking photo video is currently being generated |
| 3 | Success - Video completed, result URL is available |
| 4 | Failed - Video generation failed, please check your input resources |
Best Practices
Image Requirements
- Quality: Use high-resolution images for better results
- Face Visibility: Ensure faces are clearly visible and not obscured
- Lighting: Well-lit images produce better talking photo results
- Angle: Frontal or slight angle faces work best
Audio Requirements
- Quality: Use clear, high-quality audio files
- Format: Standard audio formats (MP3 recommended)
- Duration: Audio duration determines video length
API Usage Tips
- Webhook: Use the
webhookUrlparameter to receive notifications when processing is complete - Prompt: Use the
promptparameter to control hand gestures for more natural-looking videos - Resolution: Choose appropriate resolution (720 or 1080) based on your needs - higher resolution may take longer to process
- Result Cleanup: Save generated videos promptly as they expire after 7 days
Common Use Cases
Basic Talking Photo Video
Create a simple talking photo video from an image and audio:Talking Photo with Prompt
Use theprompt parameter to control hand gestures for professional presentations: