BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Images

Fetch a cached image

Returns the raw bytes of a generated image. The image-cached events and data[].url values in generation responses point here; the token itself is the access credential (no API key needed) and expires after 1 hour, after which the endpoint returns 404.

GET/api/v1/images/proxy/:token

Path parameters

tokenrequired
string

The image token issued in the generation response. Only UUID v4 is accepted; anything else returns 404.

UUID v4

Deep guide →

GET /api/v1/images/proxy/:token
curl -o result.png \
  https://bazaarlink.ai/api/v1/images/proxy/9f1c2d3e-4a5b-4c6d-8e7f-0a1b2c3d4e5f
Response examples

Success. Returns the raw image bytes (not JSON) with the image's MIME as Content-Type (SVG is neutralized to application/octet-stream to prevent same-origin script execution) and a 1-hour immutable cache header.

HTTP/1.1 200 OK
Content-Type: image/png
Content-Length: 428381
Cache-Control: public, max-age=3600, immutable
X-Content-Type-Options: nosniff
Content-Security-Policy: sandbox

<binary image bytes>
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Fetch a cached image — BazaarLink API