- AI Avatar API
- Get Tokens
- TTS and Voice Clone
- Generate Avatar Videos
- Create Avatars and Train Lip-sync Models
- Background Matting and Replacement
- Face Swap
- AI Dubbing
- Image to Video
- Caption Removal
- Streaming Avatar
- Miscellaneous
Let the Avatar Speak Directly
Developing
Global Server
Global Server
POST
/api/v1/streaming-avatar/speak
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
channel
stringÂ
required
text
stringÂ
required
Example
{
"channel": "f84fd",
"text": "speak something"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://video.a2e.ai/api/v1/streaming-avatar/speak' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel": "f84fd",
"text": "speak something"
}'
Responses
🟢200Success
application/json
Body
code
integerÂ
required
data
objectÂ
required
trace_id
stringÂ
required
Example
{
"code": 0,
"data": {},
"trace_id": "306b2b82-ab37-449c-82af-1bd68c264572"
}
🟠400Bad Request
Modified at 2024-12-27 10:38:10