Clone > Create Avatar by Image
Create Avatar by Image
Create a reusable avatar asset from an uploaded image file.
Examples
curl -X POST https://api.medux.io/api/app/v1/clone/avatar/by_image \
-H 'Authorization: Bearer $MEDUX_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"file_id":"FILE_ID","title":"Demo title"}'Media Samples
Approved examples for understanding request inputs, response shape, and official example output.
Official avatar clone from image
This example uses avatar-image-clone-standard.
Sample request
Clone a reusable avatar from a portrait image.
Sample response
Official example output for preview only. It is not a user Media Result.
Example output
Auth Requirements
Authentication is required via Authorization header.
Preconditions
Requires a valid image file_id.
Use a clear portrait-style image for best results.
Request
Body
application/jsonAuthorizationstringrequiredBearer token or API key.
Location: HEADER
file_idstringrequiredNo description provided.
Location: BODY
titlestringoptionalNo description provided.
Location: BODY
Response
Response
application/jsoncodeint32optionalApplication response code.
| Code | Meaning |
|---|---|
0 | OK |
12 | Invalid input |
1401 | Insufficient credits |
1402 | Asset category does not match this operation |
1404 | Provider returned an error |
1405 | Provider request timed out |
13 | Authentication is required |
16 | Rate limit exceeded |
99 | Server error |
Available options: 0 12 1410 1409 1401 1406 1402 1404 1405 13 16 99
Location: RESPONSE
data.assetobjectoptionalNo description provided.
Location: RESPONSE
data.paid_plan_requiredobjectoptionalNo description provided.
Location: RESPONSE
data.taskobjectoptionalNo description provided.
Location: RESPONSE
messagestringoptionalNo description provided.
Available options: ok invalid input invalid model paid plan required insufficient credits asset limit reached asset category mismatch provider error provider timeout unauthenticated rate limit server error
Location: RESPONSE
MCP Tool
This endpoint is also available through the Medux-hosted remote MCP service.
Avatar / Clone by Image
Clone a reusable avatar from a portrait image file.
Invocation Example
Clone a reusable avatar from the uploaded portrait image {file_id}. Title it Official avatar image clone sample.
On this page