Skip to main content
POST
Generate Photo

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
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
image_url
string

Response

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