Generating
Generate a font icon
Produces a font — a bitmap glyph you can type into chat, signs and books. Omit width for a square glyph.
/packs/{pack}/iconsPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
Body
promptstringrequiredWhat the glyph shows.
heightintegerrequired1–256Glyph height in pixels.
widthinteger1–256Glyph width. Square if omitted.
namestringYour label.
charstringPin it to a specific character instead of an assigned codepoint.
referenceIdstringA reference image already uploaded in the Studio. There is no API endpoint to upload one yet.
referenceStrengthnumber0.05–0.95How closely to follow the reference. Clamped to this range rather than rejected.
Response · 202
Accepted. The work runs asynchronously — poll job until it leaves generating.
idstringrequiredThe asset's name within the pack.
kindstringrequiredWhich store the generated asset lands in.
Options: texture, model, font, sound
statusstringrequiredAlways generating — nothing is finished when this returns.
packstringrequiredThe pack it was written into.
jobstringrequiredPoll this at GET /jobs/{job} until it leaves generating.
Error codes
Branch on error.code, never on the message.
invalid_request400Something in the body or query is wrong. message says what.
invalid_api_key401The key isn't one of ours, or it has been revoked.
missing_api_key401No Authorization: Bearer header was sent.
insufficient_credits402Not enough AI Credits to run this. Nothing was started or charged.
asset_limit_reached403The pack is at its asset limit.
forbidden403Valid key, but not permitted to do this in this pack.
plan_required403The key is valid, but its account is on Starter. The API needs a paid plan.
not_found404No such pack, asset or job.