Catalog
Answers 302 to a resized copy at the given width, falling back to the original when none exists yet, cached for an hour.
Same redirect as GET /v1/public/media/{id}, at one of the widths Sorai generates for responsive images. A width outside that set is rejected outright; a media asset that predates derivative generation, or is already narrower than the requested width, redirects to the original instead of erroring.
publishableKeyX-Sorai-Key<token>A store's publishable key, spk_….
id*stringuuidwidth*integerOne of the widths Sorai generates derivatives at.
40080012001600key?stringThe publishable key, when it cannot be sent as X-Sorai-Key.
Redirect to the object's URL. Cache-Control: public, max-age=3600.
curl -X GET 'https://api.sorai.ai/v1/public/media/497f6eca-6276-4993-bfeb-53cbbbba6f08/400'