POST
/
photo_avatar
/
new_look
/
generate
curl --request POST \
  --url https://api.jogg.ai/v1/photo_avatar/new_look/generate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "age": "Adult",
  "appearance": "<string>",
  "aspect_ratio": 0,
  "avatar_style": "Professional",
  "background": "<string>",
  "ethnicity": "European",
  "gender": "Female",
  "image_url": "<string>",
  "model": "classic"
}'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "photo_id": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
Request parameter
age
enum<string>
required
Available options:
Teenager,
Young adult,
Adult,
Elderly
Example:

"Adult"

aspect_ratio
enum<integer>
required

Photo aspect ratio:

  • 0 - Portrait [9:16]
  • 1 - Landscape [16:9]
Available options:
0,
1
avatar_style
enum<string>
required
Available options:
Professional,
Social
gender
enum<string>
required
Available options:
Female,
Male
image_url
string
required
model
enum<string>
required
Available options:
classic,
modern
appearance
string
background
string
ethnicity
enum<string>
Available options:
European,
African,
South Asian,
East Asian,
Middle Eastern,
South American,
North American

Response

200
application/json
OK
code
integer
required

Business status code:

  • 0 - Success

  • 10104 - Record not found

  • 10105 - Invalid API key

  • 18020 - Insufficient credit

  • 18025 - No permission to call APIs.

  • 40000 - Parameter error

  • 50000 - System error

msg
string
required

Response message

data
object