Get Cached Image
GET
/api/v1/images/:key
Requires Authentication
Learn how to retrieve cached images using our API endpoint.
Request
key
REQUIRED
The unique key of the cached image, returned from the generate image endpoint.
Response
200 OK
Successful ResponseResponse Headers:
Content-Type
string
image/png or image/jpeg depending on the image format
Content-Length
number
Size of the image in bytes
X-Generation-Time
number
Time taken to process the request in milliseconds
Cache-Control
string
public, max-age=31536000 (1 year)
400 Bad Request
Invalid Parameters401 Unauthorized
Invalid or Missing API Key404 Not Found
Image Not Found or Expired429 Too Many Requests
Rate Limit ExceededRelated Resources
LANGUAGE
AUTHENTICATIONAPI KEY
Header
X-API-Key: your_api_key_here
REQUEST
RESPONSE
LANGUAGE
AUTHENTICATIONAPI KEY
Header
X-API-Key: your_api_key_here