API reference · Public
One image model's sample picture
GET/api/images/sampleNo key
The one picture an image model made, once, from the stated sample prompt, kept as a small WebP. Cached for a year when asked with v, the first sixteen hex digits of the picture's SHA-256 (the address /images and planet pages use), for five minutes without it. A model with no sample is a 404, never a placeholder.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (query)required | string | An image model id, as /images lists it. |
| v (query) | string | The picture's version: the first sixteen hex digits of its SHA-256. |
Answer 200
The picture.
The answer's fields are not named in the document.
Errors
- 404This model has no sample picture.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.