ingestVisionImages, so an image reports pending until it finishes. Poll every 30 to 60 seconds until each ID reaches completed, failed or not_found.Status is pending, completed, failed or not_found; only completed carries Image.not_found, never an error.Retry-After seconds.curl --location 'https://api.ygo.ai/v2/project/content/vision/getImages' \
--header 'X-Project-ID: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ImageIDs": [
"0192fb20-1aa2-7def-9abc-1122334455aa",
"0192fb21-2bb3-7def-9abc-2233445566bb",
"0192fb22-3cc4-7def-9abc-3344556677cc",
"0192fb99-9ff9-7def-9abc-999999999999"
]
}'{
"Data": {
"Images": [
{
"ImageID": "0192fb20-1aa2-7def-9abc-1122334455aa",
"Status": "pending"
},
{
"ImageID": "0192fb21-2bb3-7def-9abc-2233445566bb",
"Status": "completed",
"RoomRef": "DBL-SEA",
"Image": {
"ID": "0192fb21-2bb3-7def-9abc-2233445566bb",
"URL": "https://images.example-client.com/1234567/room-dbl-sea-1.jpg",
"Source": "photo",
"Category": "room",
"Features": [
"sea_view",
"balcony",
"double_bed"
],
"Mood": [
"bright",
"calm"
],
"Tags": [
"sea_view"
],
"AppealScore": 82,
"QualityScore": 77,
"Width": 1600,
"Height": 1067,
"Format": "jpeg",
"FileSize": 412000,
"DominantColor": "#2E6F95",
"BlurHash": "LEHV6nWB2yk8pyo0adR*",
"Descriptions": {
"en-US": "Double room with a balcony overlooking the sea.",
"de-DE": "Doppelzimmer mit Balkon und Meerblick."
},
"Compliance": {
"AIGenerated": true
},
"FeatureDetections": [
{
"Label": "sea_view",
"Confidence": 0.94
},
{
"Label": "balcony",
"Confidence": 0.88
}
]
}
},
{
"ImageID": "0192fb22-3cc4-7def-9abc-3344556677cc",
"Status": "failed",
"RoomRef": "SUITE-1"
},
{
"ImageID": "0192fb99-9ff9-7def-9abc-999999999999",
"Status": "not_found"
}
]
}
}