
AI Avatar Maker
API Overview
Generate selfies with different styles
API Console
Log in to explore more features! Click to Log In
API Reference (2)
| API Description | API Endpoint | Request Method | Stability | Parameter Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Generate Avatar (JSON Parameter Example) | POST | Stable | View Details | |||||||||||||||||||||||||||||||||||||
Document Details Price:Optimize the interface cost of tokens+avatars generated by prompts( Request Parameters application/json Note: The priority of user-defined prompts is higher than the preset styles. If the custom_prompt parameter is not empty, the style parameter will be ignored Preset Style List (Please enter the corresponding id when passing parameters to the API):
Request Parameters Header ParametersAuthorizationstringRequired Example Value: Bearer {{YOUR_API_KEY}}Request Body application/jsonimagestringRequired Supports image links that are publicly accessible or base64 images starting with data:image styleintegerOptional For the detailed list, please refer to the API documentation person_typeenum<string>Required Enum Value: femalemalekidcustom_promptstringOptional If the user-defined prompt field has a value, the style parameter will be ignored. numintegerOptional Values outside the supported range will be treated as 1 widthintegerOptional Values outside the supported range will be treated as 1024 heightintegerOptional Values outside the supported range will be treated as 1024 modelstringOptional | ||||||||||||||||||||||||||||||||||||||||
Avatar Generation (form-data parameter example) | POST | Stable | View Details | |||||||||||||||||||||||||||||||||||||
Document Details Price:Optimize the interface cost of tokens+avatars generated by prompts( Request Parameters application/json Note: The priority of user-defined prompts is higher than the preset styles. If the custom_prompt parameter is not empty, the style parameter will be ignored Preset Style List (Please enter the corresponding id when passing parameters to the API):
Request Parameters Header ParametersAuthorizationstringRequired Example Value: Bearer {{YOUR_API_KEY}}Request Body multipart/form-dataimagestringRequired stylestringOptional Preset avatar style ID. For the detailed list, please refer to the API documentation. Example Value: 1person_typeenum<string>Required Character type Enum Value: femalemalekidcustom_promptstringOptional User-defined style prompt. If this field has a value, the style parameter will be ignored. numintegerOptional Number of avatars to generate. Values outside the supported range will be treated as 1 Example Value: 1widthintegerOptional Avatar width. Values outside the supported range will be treated as 1024 Example Value: 1024heightintegerOptional Avatar height. Values outside the supported range will be treated as 1024 Example Value: 768modelstringOptional Language model used to optimize the avatar description prompt | ||||||||||||||||||||||||||||||||||||||||
API Pricing
| Model | Description | 302.AI Price |
|---|
Generate Avatar | JSON Parameter Example |
|
Generate Avatar | form-data parameter example |
|