POST
/
photo_avatar
/
add_motion
curl --request POST \
  --url https://api.jogg.ai/v1/photo_avatar/add_motion \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "description": "<string>",
  "image_url": "<string>",
  "model": "1.0",
  "name": "<string>",
  "photo_id": "<string>",
  "voice_id": "<string>"
}'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "avatar_id": 123,
    "motion_id": "<string>",
    "name": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
Request parameter
image_url
string
required
model
enum<string>
required
Available options:
1.0,
2.0,
2.0-Pro
name
string
required
photo_id
string
required
voice_id
string
required
description
string

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