Generating
Regenerate an asset
Runs a block's, item sprite's, icon's, model's or sound's generation again, as its page's Regenerate button does, or Retry after a failed one. It uses the prompt the asset was made with unless you send a new one, which then becomes its prompt. Charged as that generation is.
Regenerating something that came out fine keeps what it replaces as a version, so POST /packs/{pack}/assets/{kind}/{name}/versions/{version}/restore can bring it back. Other types are regenerated with their generate endpoint, or changed with Edit with AI.
/packs/{pack}/assets/{kind}/{name}/regeneratePath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
kindstringrequiredThe asset's kind from the listing.
Options: texture, model, font, sound
namestringrequiredThe asset's name from the listing.
Body
promptstringA new prompt. The stored one by default.
takeCountinteger1–10For a sound: how many takes to make.
Response · 202
Accepted. The work runs asynchronously — poll job until it leaves generating.
idstringrequiredThe asset's id within the pack.
typestringrequiredWhat is generating. For an item, item or item3d.
Options: model, vehicle, mob, block, block_face, model_texture, item, item_model, item3d, armor, armor3d, gui, hud, dialog, icon, rank_tag, sound
kindstringrequiredThe file format it is stored as.
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.
wrong_key_kind401An MCP key sent to the REST API, or an API key sent to the MCP server. Each only opens its own.
insufficient_credits402Not enough AI Credits to run this. Nothing was started or charged.
account_suspended403The account is suspended, so its keys open nothing. message says until when, if the suspension has an end date.
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's plan does not include the API.
not_found404No such pack, asset or job.
already_running409An AI edit or generation of that asset is still running. Wait for its job, then send the edit again.