Avatar

Convert image to product avatar

Changed on

Create a product avatar from generated image with motion and voice

post/v2/product_avatar/add_motion

Request

  • Base URL
    https://api.jogg.ai
  • URL
    https://api.jogg.ai/v2/product_avatar/add_motion
  • Auth
    API key in header x-api-key

Request body

generation_idstring required

Generation ID from product avatar image generation

modelinteger

Model selection (0-2)

namestring required

Product avatar name

voice_idstring required

Voice ID to associate

descriptionstring required

Motion description

aspect_ratio'portrait' | 'landscape' | 'square'

Aspect ratio

Example request

{
  "generation_id": "gen_123",
  "name": "Product Presenter",
  "voice_id": "en-US-ChristopherNeural",
  "description": "Professional presentation motion",
  "aspect_ratio": "portrait"
}

Response

Success

codeinteger 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
msgstring required

Response message

Example response

{
  "msg": "Success",
  "data": {
    "avatar_id": 123,
    "motion_id": "motion_456",
    "name": "Product Presenter"
  }
}

Changes