Skip to content
superstyle

Get Image

Retrieve metadata for a single generated image by its ID. Returns a 404 if the image does not exist or belongs to a different user.

GET /images/:id
ParameterTypeRequiredDescription
idstringYesThe image ID (e.g. "img_a1b2c3...") returned from /try_on_outfit or /style_me

No request body. Authentication via X-API-Key header.

Terminal window
curl https://mcll3bnfubyazfg6wekv3xc6fi0dgpyk.lambda-url.us-east-1.on.aws/images/img_a1b2c3d4e5f6a1b2c3d4e5f6 \
-H "X-API-Key: YOUR_API_KEY"
FieldTypeDescription
image_idstringUnique image identifier
image_urlstringDirect URL to the image
mime_typestringImage MIME type (e.g. "image/jpeg")
categorystringImage category ("try-on", "style-me")
endpointstringEndpoint that generated this image
created_atstringISO 8601 creation timestamp
persistentbooleanWhether the image is stored permanently
{
"image_id": "img_a1b2c3d4e5f6a1b2c3d4e5f6",
"image_url": "https://superstyle-user-images.s3.us-east-1.amazonaws.com/usr_123/try-on/20260228T153000Z_a1b2c3.jpg",
"mime_type": "image/jpeg",
"category": "try-on",
"endpoint": "/try_on_outfit",
"created_at": "2026-02-28T15:30:00.000Z",
"persistent": true
}
{
"error": "Image not found"
}

Returned with status 404 when the image ID does not exist or belongs to a different user.

  • This endpoint is free and unlimited — it does not count toward rate limits
  • Image ownership is enforced — you can only retrieve images generated by your own API keys
  • Non-persistent images may be deleted after 24 hours, in which case the image_url will no longer resolve