Submit Task

Submit an asynchronous Photo Avatar task. Returns a taskId; poll the Query Task endpoint for the result.

Script source (scriptMode):

  • text: text-to-speech, requires ttsText and voiceId; voiceModel and voiceSettings are optional.
  • audio: use an uploaded audio file, requires audioFileId.

Credits: billing type photo_avatar4, charged by generated video duration (seconds, rounded up); avatar4=0.1/s, avatar4Fast=0.06/s, avatar2=0.4/s; 50% off when offPeak=true and mode=avatar4/avatar4Fast. Settled on success, fully refunded on failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

Avatar template ID (public or custom). Provide either avatarId or templateImageFileId to specify the avatar

string

fileId of an uploaded model image (obtained from the upload endpoint). Alternative to avatarId

string
enum

Generation mode: avatar2 / avatar4 / avatar4Fast

Allowed:
string
enum

Script source: text for text-to-speech (requires ttsText, voiceId); audio to use an uploaded audio file (requires audioFileId)

Allowed:
string

Voiceover script. Required when scriptMode=text

string

Voice ID. Required when scriptMode=text

string
enum

Voice model (effective only when scriptMode=text, optional, case-insensitive). If omitted, the backend default voice model is used; if provided, generation uses the selected model.

  • elevenlabs-v2.5: ElevenLabs V2.5
  • elevenlabs-v3: ElevenLabs V3
  • minimax-v2.5: MINIMAX V2.5
Allowed:
voiceSettings
object

Advanced voice settings (effective only when scriptMode=text and voiceModel is provided, optional).

string

Audio file fileId (obtained from the upload endpoint). Required when scriptMode=audio

string

Caption ID (optional)

string

Motion/expression prompt (optional), max length 600

string

Whether to save as a custom avatar (optional), true/false

boolean

Whether this is an off-peak task (optional), effective only when mode=avatar4/avatar4Fast. true means off-peak: 50% credits, fallback timeout 24 hours

string

Associated Board ID (optional). When provided, the system creates a corresponding boardTask in aigc-backend; the response may return boardId and boardTaskIds

string

Callback URL invoked when the task completes (optional). When set, the response returns a noticeUuid

Headers
string
required
Defaults to <your-topview-uid>

User ID

string
required
Defaults to Bearer <your-api-key>

API key, format: Bearer {apiKey}

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json