- AI Avatar API
- Get Tokens
- TTS and Voice Clone
- Generate Avatar Videos
- Generate AI Avatar VideosPOST
- List of Result VideosPOST
- List of Result VideosGET
- List One or All AvatarsPOST
- List One or All AvatarsGET
- Obtain the Status of One Avatar Video TaskPOST
- Obtain the List of Personalized Lip-Sync ModelsGET
- Delete or Cancel a VideoDELETE
- Auto Language DetectPOST
- Auto Swith to Public Computing PoolPOST
- Create Avatars and Train Lip-sync Models
- Background Matting and Replacement
- Face Swap
- AI Dubbing
- Image to Video
- Caption Removal
- Streaming Avatar
- Miscellaneous
- Text to Image
- AI Outfit and Product Holding
- AI Image singing
Start Text-to-Image
Global Server
https://video.a2e.ai
Global Server
https://video.a2e.ai
POST
/api/v1/userText2image/start
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
name
stringÂ
required
prompt
stringÂ
required
req_key
enum<string>Â
required
Allowed values:
high_aes_general_v21_Lhigh_aes
width
integerÂ
required
height
integerÂ
required
Example
{
"name": "Test Name",
"prompt": "Generate an image of a sunset",
"req_key": "high_aes_general_v21_L",
"width": 1024,
"height": 768
}
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/userText2image/start' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Test Name",
"prompt": "Generate an image of a sunset",
"req_key": "high_aes_general_v21_L",
"width": 1024,
"height": 768
}'
Responses
🟢200Success
application/json
Body
code
integerÂ
required
data
objectÂ
required
trace_id
stringÂ
required
Example
{
"code": 0,
"data": {
"name": "Test Name",
"image_urls": [
"https://prod-tos.avatar2everyone.com/adam2eve/beta/reUpload/b2fb5131-c400-4a89-9ca4-61b9f0bccf59.image"
],
"current_status": "completed",
"failed_code": "",
"failed_message": "",
"_id": "6791ef3ccd837ce76eb01b75",
"prompt": "Generate an image of a sunset",
"req_key": "high_aes_general_v21_L",
"width": 1024,
"height": 768,
"user_id": "665da3d7bcf6ab778bad0f6a",
"coins": 20,
"createdAt": "2025-01-23T07:26:52.420Z",
"updatedAt": "2025-01-23T07:26:52.420Z"
},
"trace_id": "78a3cae7-f1e9-49f2-954c-a844dc5cfdd3"
}
Modified at 2025-07-07 08:41:21