Skip to main content
POST
AI Talking Avatar (Video)

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be ai-talking-avatar-video.

Available options:
ai-talking-avatar-video
video_url
string<uri>
required

Video of the person who should speak (up to 300MB). Required. Keep one person in frame, with the face clearly visible for most of the clip.

audio_url
string<uri>
required

Speech audio to lip-sync to (up to 50MB). Required.

prompt
string
default:person talking

Optional description of the desired performance, e.g. a man speaking calmly to the camera.

resolution
enum<string>
default:540p

Output resolution. 720p costs 1.5 times as much per second as 540p.

Available options:
540p,
720p
video_mode
enum<string>
default:normal

What to do when the video and the audio have different lengths. normal: the output is as long as the shorter of the two. loop: the output follows the audio, and a shorter video is played forward and backward until it covers the audio.

Available options:
normal,
loop
duration
integer

Optional. Output length in whole seconds (3-60). Only the first duration seconds are used, and you are billed for duration seconds. Must not exceed the output length set by video_mode. Omit it to use the full length.

Required range: 3 <= x <= 60
Example:

15

custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required