Runs m1 for real, signed in as you. Same request as the API: copy it from the reference below.
Scripts sign in with an API key, or with your email and password. Every account gets 15 generations a day, shared across keys, the Studio and the playground.
One endpoint makes sprites: POST /api/generate, which returns a PNG. Sign in with an API key (below), or put "email" + "password" in the body instead.
| FIELD | TYPE | WHAT IT DOES |
|---|---|---|
prompt | text, 1-300 | What to draw. Creatures, items, plants, buildings and tiles work best. |
creativity | 0-1, default 0.5 | 0 sticks closest to the prompt, 1 is loosest. |
seed | whole number, optional | Same seed + prompt + creativity = the same sprite. Leave out for a random one. |
scale | 1-16, default 1 | Upscales the 64×64 result with crisp pixels. |
Authorization: Bearer MOSAIC_... or api_token | header / text | Sign in with an API key (make them on the keys page)... |
email (or username) + password | text | ...or with your account, instead of a key. |
| RESPONSE | ||
|---|---|---|
200 | image/png | Header X-Seed is the seed it used (send it back to get the same sprite); X-Quota-Remaining is how many you have left today. |
401 | json | The key is wrong or revoked, or the email/password don't match. |
422 | json | A field is missing or out of range. |
429 | json | All of today's generations used (15 a day) (refills at 00:00 UTC), or 10 failed sign-ins from one address in 5 minutes. |