For AI agents: the documentation index is at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
HTTP API
POST /api/v1/icons is the whole generate contract. GET /api/v1/models describes the served model.
The zone is https://blode.co/iconsmith. Every path below is under that prefix.
Draw
POST /api/v1/icons
Body: { model?, prompt?, concept?, images?, cut?, n?, stream? }, at least one of prompt, concept or images.
promptis free text (500 characters)conceptis an explicit slug; otherwise it derives from the promptimagesis up to four{ mime, base64 }PNG, JPEG or WebP entries (base64 only)cutdefaults to the house cut (24px, stroke 2, radius 3, outlined);cut.styleisblode(default),openai,cursor,x,linearorraycast, that product's construction drawn in the Blode familynis 1 or 2 (default 1; 2 candidates cost twice as much)- unknown fields are refused with
paramnaming them - any
modelother thaniconsmith-1ismodel_not_found stream: trueanswerstext/event-stream
Request headers:
Authorization: Bearer ism_test_…(sandbox) orBearer ism_live_…(prepaid credits)Idempotency-Key: <uuid>(optional; retries with the same key return the cached response)
Response: { id, object: "icon.draw", created, model, revision, concept, prompt, images, cut, data, usage, credits?, took_ms }. Image bytes are never echoed. usage is null when the provider has not reported token counts; it does not mean the draw was free. Items in data have a source: "drawn" or "existing" field; existing icons cost nothing.
Streaming response: text/event-stream with events:
draw(once):{ free: boolean, id: string, price_cents: number | null }— price_cents is null when no flat price appliespreview(per attempt):{ attempt: number, index: number, sound: boolean, svg: string }status,candidate,result,error: as before
A draw that can be resumed also carries an X-Draw-ID header and an id: line on every event; resume from the last id you saw.
Every response carries . Errors are .
Published with Edda