Upscale Photo Avatar
POST
https://api.konpro.ai/v1/photo_avatar/upscaleEnhance the resolution and visual quality of an existing photo avatar that includes motion. This operation returns the ID of the newly upscaled avatar.
Request History
Log in to see full request history
| TIME | STATUS | USER AGENT |
|---|---|---|
| Make a request to see history. | ||
0 Requests This Month
cURL Request
shell
curl --request POST \
--url https://api.konpro.ai/v1/photo_avatar/upscale \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{
"id": "avatarWithMotion123"
}'Request Body Parameters
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier of the avatar to be upscaled (must have motion) (required) |
Response
Response Structure
Returns the ID of the upscaled photo avatar on success. Error information if the upscale process fails or if the avatar does not meet requirements.
Sample Successful Response
json
{
"upscaled_avatar_id": "upscaledAvatar456",
"original_id": "avatarWithMotion123",
"status": "completed",
"upscale_factor": "2x",
"resolution": "2048x2048",
"message": "Avatar successfully upscaled",
"created_at": "2024-01-15T13:00:00Z"
}Notes
- Requires API authentication.
- The avatar must have motion enabled to be eligible for upscaling.
- Upscaling enhances resolution and visual quality.
- Creates a new avatar ID for the upscaled version.
- Process may take several minutes to complete.
- Original avatar remains unchanged.
- Refer to Error Responses for error information.
Example Usage
Shell
curl --request POST \
--url https://api.konpro.ai/v1/photo_avatar/upscale \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{
"id": "avatarWithMotion123"
}'LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Success
400 - Bad Request
LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Success
400 - Bad Request