Skip to main content
GET
/
v2
/
photo_avatar
/
photo
Check Photo Generation Status
curl --request GET \
  --url https://api.jogg.ai/v2/photo_avatar/photo \
  --header 'x-api-key: <api-key>'
{
  "code": 0,
  "msg": "Success",
  "data": {
    "photo_id": "photo_123",
    "status": "success",
    "image_url_list": [
      "https://example.com/image1.jpg",
      "https://example.com/image2.jpg"
    ],
    "image_key_list": [
      "key1",
      "key2"
    ],
    "msg": null
  }
}
Check the status of photo avatar generation task by photo ID.

Example Usage

curl --request GET \
  --url 'https://api.jogg.ai/v2/photo_avatar/photo?photo_id=photo_123' \
  --header 'x-api-key: YOUR_API_KEY'

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your key from the JoggAI dashboard.

Query Parameters

photo_id
string
required

Photo ID from the generation task

Example:

"photo_123"

Response

200 - application/json

Success

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
Example:

0

msg
string
required

Response message

Example:

"Success"

data
object