- invents a fresh client id (sent as
x-anon-id), because the free grant pays for one image per id; - submits the prompt to
POST /api/ai/generate; - polls
GET /api/ai/anon-queryuntil a CDN URL comes back, and returns it.
Start with the quickstart, check the limits, or pick a ready client.