API reference
Every public endpoint, its fields, answers and errors, drawn from the API's own description.
Introduction
#Base URL
Every route is under one address, the same as this site's:
https://assetmonkey.ai/v1Requests and answers are JSON. The whole API is also described as OpenAPI 3.1 at /v1/openapi.json, for tools that read it; this page is drawn from it.
#Authentication
Send an API key with every request that is not public, in Authorization: Bearer <key> or X-API-Key: <key>. Create keys under API keys once signed in; a key is shown once, starts with am_, and spends your account's credits. A key reads your account and usage but cannot change the account or manage keys: that needs the website.
export AM_KEY="am_..."
curl -s "https://assetmonkey.ai/v1/account" -H "Authorization: Bearer $AM_KEY"
The types, prices, skeletons and community models are public: no key needed. Every account has a limit of requests a minute; over it, 429 rate_limited says how long to wait.
#Jobs and polling
Every generation is a job. POST /v1/generations/<type> checks the body, reserves the credits and answers 202 with the job, queued, at once; the work happens after. Read the job with GET /v1/jobs/<id> every few seconds until its status is succeeded, failed or cancelled. A model takes a minute or more: it is made game-ready after it is generated (post_processing).
A succeeded job lists its files in outputs, each with a download_url that needs no key and expires; read the job again for fresh links. A file a job made can be given to the next job by its file_id: a picture to a model, a character to its animations. A failed job's credits come back.
# 1. A picture drawn for 3D (5 credits).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-image" \
-H "Authorization: Bearer $AM_KEY" -H "Content-Type: application/json" \
-d '{"prompt": "A wooden treasure chest with iron bands", "for_3d": "object"}'
# 2. Read the job until "succeeded"; outputs[0].file_id is the picture.
curl -s "https://assetmonkey.ai/v1/jobs/<job id>" -H "Authorization: Bearer $AM_KEY"
# 3. The model from that picture.
curl -s -X POST "https://assetmonkey.ai/v1/generations/image-to-3d" \
-H "Authorization: Bearer $AM_KEY" -H "Content-Type: application/json" \
-d '{"image_file_id": "<file id>"}'#Retrying safely
Send an Idempotency-Key header with a generation, any string you choose for that request. If the answer is lost and you send it again, the same key and body answer 200 with the job already made and charge nothing more. The same key with another body is 409 idempotency_key_reused.
#Your own files
A picture or a model that is already online needs no upload: pass its https link as image_url or model_url. A file on your computer goes in two steps: POST /v1/files answers a file id and a URL, and you send the file's bytes to that URL within 15 minutes; then pass the id as image_file_id or model_file_id.
curl -s -X POST "https://assetmonkey.ai/v1/files" \
-H "Authorization: Bearer $AM_KEY" -H "Content-Type: application/json" \
-d '{"content_type": "image/png", "filename": "chest.png"}'
curl -X PUT -H "Content-Type: image/png" -H "If-None-Match: *" --data-binary @chest.png "<upload.url>"
#Paging
Lists answer a page at a time, newest first, with next_cursor: pass it as after for the next page, until it is null. limit sets the page's size.
#Errors
Every error has one shape. Branch on code, which does not change; message is a sentence for a person, and details carries more for some codes. Each endpoint below lists the codes it can answer.
{
"error": {
"code": "insufficient_credits",
"message": "This needs 20 credits and you have 5.",
"details": {
"required": 20,
"available": 5
}
}
}These can come from any request of their kind, so the endpoints only name them:
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | No API key was sent, or the key is invalid or revoked. |
| 429 | rate_limited | Too many requests a minute for this account. Wait details.retry_after_seconds (also the Retry-After header). |
| 415 | unsupported_media_type | The body must be JSON, sent with "Content-Type: application/json". |
| 400 | invalid_json | The body is not valid JSON. |
| 400 | invalid_request | A field is missing, of the wrong type or out of range; details.issues lists each with its path. |
| 400 | invalid_cursor | after is not a cursor this list gave. |
#Why a job fails
A job that fails ends with status failed and an error: one of these codes, and a message saying what happened. Its credits are returned.
| Code | What happened |
|---|---|
content_refused | The words, picture or model break the content rules. The message names the rule. |
refused | The request was declined while it was read. |
not_animatable | No skeleton fits this character (or the model lies down). Make it as a static object instead; brief.not_animatable says why. |
not_a_surface | The words describe no flat, tileable surface. The message says why. |
model_refused | The model could not be made game-ready. The message says why. |
invalid_image | The picture could not be used. |
unsupported_settings | These settings are not available for this generation. |
url_fetch_failed | A <name>_url could not be downloaded when the job started. |
url_not_allowed | A <name>_url led to an address that is not public. |
file_empty | An input file is empty. |
file_too_large | An input file is larger than this generation takes. |
file_type_not_accepted | An input file is of a kind this generation does not take. |
file_type_mismatch | An input file's bytes are not the type it was declared as. |
file_invalid | An input file is broken. |
file_not_found | An input file was deleted before the job started. |
file_not_uploaded | An input file was never sent to its upload URL. |
invalid_result | The result could not be used. |
generation_failed | The generation could not be completed. |
generation_unavailable | The generator is not available now. Try again later. |
repair_failed | The model could not be made game-ready. |
repair_unavailable | Making the model game-ready is not available now. Try again later. |
animate_failed | The animations could not be put into the model. |
provider_error | The generation could not be completed. |
timeout | The job did not finish in time. |
job_ended | The job ended before it was generated. |
internal_error | Something went wrong on our side. |
#Types and prices
What can be made, what it costs, and the plans. Public.
#List the generation types
GET/v1/generationsPublic
Every type with its input's JSON Schema, its outputs and its cost. Public: read it before you have a key.
Response 200
The types.
| Field | Type | About it |
|---|---|---|
generation_typesrequired | GenerationType[] |
curl -s "https://assetmonkey.ai/v1/generations"#Quote a job's cost
POST/v1/generations/{type}/costPublicMCP estimate_cost
What a job of this type with this body would cost, for a type priced by its input (speech by its text's length, a sound effect by its length, a material by its largest size). Nothing is made or reserved. Public.
Parameters
| Name | In | About it |
|---|---|---|
typerequired | path | A generation type's id. |
Request body
Any fields of the job's body.
Response 200
The cost in credits.
| Field | Type | About it |
|---|---|---|
cost_creditsrequired | integer | What a job with this body would cost. |
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
And 400 invalid_json, 400 invalid_request, 415 unsupported_media_type (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-speech/cost" \
-H "Content-Type: application/json" \
-d '{"text":"Press the space bar to jump over the gap.","voice":"jonah"}'#List the skeletons and their animations
GET/v1/rigsPublicMCP list_rigs
The nine skeletons a character is rigged to (rig), each with the library clips animate-model puts into a model rigged to it. Public.
Response 200
The skeletons.
| Field | Type | About it |
|---|---|---|
rigsrequired | object[] | |
rigs[].idrequired | string | A character's rig. |
rigs[].namerequired | string | |
rigs[].descriptionrequired | string | |
rigs[].clipsrequired | Clip[] |
curl -s "https://assetmonkey.ai/v1/rigs"#List the plans
GET/v1/plansPublicMCP list_plans
Credits a month, monthly and yearly prices, and storage. Public.
Response 200
The plans.
| Field | Type | About it |
|---|---|---|
plansrequired | Plan[] |
curl -s "https://assetmonkey.ai/v1/plans"#Get this description of the API
GET/v1/openapi.jsonPublic
The public API as OpenAPI 3.1, for tools that read it. Public.
Response 200
This document.
curl -s "https://assetmonkey.ai/v1/openapi.json"#Generations
One endpoint per generation type. Each creates a job, reserves its credits, and answers at once; the work happens after.
#Image to 3D
POST/v1/generations/image-to-3dAPI keyMCP image_to_3d
Turns one image into a game-ready static model (GLB): one closed mesh with nothing inside, 20,000 triangles, new UVs and baked textures (WebP with EXT_texture_webp, or PNG with texture_format png). For an object that will not be animated; image-to-character makes one rigged to a skeleton. Works best from one whole object on a plain background, as text-to-image draws it. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 20 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
image_url | string | HTTPS URL of the source image (PNG, JPEG or WebP, up to 20 MB). Give either this or image_file_id.At most 2048 charactersAn https URL |
image_file_id | string | Id of an image: an upload from POST /v1/files or the create_upload tool, or the file_id of an image a job made, such as a text-to-image result. Give either this or image_url.A file id |
texture_format | string | Optional. The format of the model's textures: webp (the default), small, for an importer that reads the EXT_texture_webp extension (Blender, three.js and others), or png, lossless and several times larger, for one that reads no WebP, such as Unity's glTFast.One of "webp", "png" |
visibility | string | Who sees the model: "public" shows it in the community. On the free plan every model is public; on a paid plan it is private unless this asks for public.One of "public", "private" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 403 | paid_plan_required | On the free plan every model is public: visibility: "private" needs a paid plan. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/image-to-3d" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"image_file_id":"<file id>"}'#Image to character
POST/v1/generations/image-to-characterAPI keyMCP image_to_character
Turns one image of a character or creature into a game-ready model (GLB) rigged to one of nine template skeletons, ready to animate: one closed mesh with nothing inside, 20,000 triangles with rings of edges at the joints, baked textures (WebP with EXT_texture_webp, or PNG with texture_format png), the rig's bones with their own names and skin weights. It faces +z, its feet on the floor at the origin. Works best from a picture of the whole character in its rig's pose, arms, legs, wings and tail clear of the body, seen from the front on a plain background; a limb that touches the body stays joined to it. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 50 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
image_url | string | HTTPS URL of the source image (PNG, JPEG or WebP, up to 20 MB). Give either this or image_file_id.At most 2048 charactersAn https URL |
image_file_id | string | Id of an image: an upload from POST /v1/files or the create_upload tool, or the file_id of an image a job made, such as a text-to-image result. Give either this or image_url.A file id |
texture_format | string | Optional. The format of the model's textures: webp (the default), small, for an importer that reads the EXT_texture_webp extension (Blender, three.js and others), or png, lossless and several times larger, for one that reads no WebP, such as Unity's glTFast.One of "webp", "png" |
rigrequired | string | The skeleton the character is rigged to: human (people and humanoids), fox (cats, dogs, wolves and other four-legged animals), horse (horses and other hoofed animals), kaiju (a creature that stands upright and has a tail), bird, dragon (four legs and wings), spider (eight legs), snake (no limbs) or shark (fish).One of "human", "fox", "horse", "kaiju", "bird", "dragon", "spider", "snake", "shark" |
visibility | string | Who sees the model: "public" shows it in the community. On the free plan every model is public; on a paid plan it is private unless this asks for public.One of "public", "private" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 403 | paid_plan_required | On the free plan every model is public: visibility: "private" needs a paid plan. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/image-to-character" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"image_file_id":"<file id>","rig":"human"}'#Image to 3D (Monkey V2)
POST/v1/generations/image-to-3d-v2API keyMCP image_to_3d_v2
Monkey V2, our second generator: turns one image into a game-ready static model (GLB): one closed mesh with nothing inside, 20,000 triangles, new UVs and baked textures (WebP with EXT_texture_webp, or PNG with texture_format png). The picture is drawn again for 3D first, as it is, and the model is made from that drawing. For an object that will not be animated; image-to-character-v2 makes one rigged to a skeleton. Takes a PNG, JPEG or WebP picture, and works best from one whole object on a plain background, as text-to-image draws it. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 40 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
image_url | string | HTTPS URL of the source image (PNG, JPEG or WebP, up to 20 MB). Give either this or image_file_id.At most 2048 charactersAn https URL |
image_file_id | string | Id of an image: an upload from POST /v1/files or the create_upload tool, or the file_id of an image a job made, such as a text-to-image result. Give either this or image_url.A file id |
texture_format | string | Optional. The format of the model's textures: webp (the default), small, for an importer that reads the EXT_texture_webp extension (Blender, three.js and others), or png, lossless and several times larger, for one that reads no WebP, such as Unity's glTFast.One of "webp", "png" |
visibility | string | Who sees the model: "public" shows it in the community. On the free plan every model is public; on a paid plan it is private unless this asks for public.One of "public", "private" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 403 | paid_plan_required | On the free plan every model is public: visibility: "private" needs a paid plan. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/image-to-3d-v2" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"image_file_id":"<file id>"}'#Image to character (Monkey V2)
POST/v1/generations/image-to-character-v2API keyMCP image_to_character_v2
Monkey V2, our second generator: turns one image of a character or creature into a game-ready model (GLB) rigged to one of nine template skeletons, ready to animate: one closed mesh with nothing inside, 20,000 triangles with rings of edges at the joints, baked textures (WebP with EXT_texture_webp, or PNG with texture_format png), the rig's bones with their own names and skin weights. It faces +z, its feet on the floor at the origin. The picture is drawn again for 3D first, in the same pose, and the model is made from that drawing. Takes a PNG, JPEG or WebP picture, and works best from a picture of the whole character in its rig's pose, arms, legs, wings and tail clear of the body, seen from the front on a plain background; a limb that touches the body stays joined to it. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 70 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
image_url | string | HTTPS URL of the source image (PNG, JPEG or WebP, up to 20 MB). Give either this or image_file_id.At most 2048 charactersAn https URL |
image_file_id | string | Id of an image: an upload from POST /v1/files or the create_upload tool, or the file_id of an image a job made, such as a text-to-image result. Give either this or image_url.A file id |
texture_format | string | Optional. The format of the model's textures: webp (the default), small, for an importer that reads the EXT_texture_webp extension (Blender, three.js and others), or png, lossless and several times larger, for one that reads no WebP, such as Unity's glTFast.One of "webp", "png" |
rigrequired | string | The skeleton the character is rigged to: human (people and humanoids), fox (cats, dogs, wolves and other four-legged animals), horse (horses and other hoofed animals), kaiju (a creature that stands upright and has a tail), bird, dragon (four legs and wings), spider (eight legs), snake (no limbs) or shark (fish).One of "human", "fox", "horse", "kaiju", "bird", "dragon", "spider", "snake", "shark" |
visibility | string | Who sees the model: "public" shows it in the community. On the free plan every model is public; on a paid plan it is private unless this asks for public.One of "public", "private" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 403 | paid_plan_required | On the free plan every model is public: visibility: "private" needs a paid plan. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/image-to-character-v2" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"image_file_id":"<file id>","rig":"fox"}'#Repair a model
POST/v1/generations/repair-modelAPI keyMCP repair_model
Makes a 3D model of your own game-ready as a static object (GLB): one closed mesh with nothing inside, 20,000 triangles, new UVs and textures baked from the model's own (WebP with EXT_texture_webp, or PNG with texture_format png). Takes one binary glTF file with its textures inside, in any size, place and number of meshes; a skinned model is read in its rest pose, without its skeleton. A model with compressed meshes (Draco or meshopt), KTX2 textures, files outside it, no thickness or over 3,000,000 triangles is refused with the reason, and its credits returned. rig-model also rigs it. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 10 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
model_url | string | HTTPS URL of the model: one binary glTF file (.glb) with its textures inside, up to 200 MB. Give either this or model_file_id.At most 2048 charactersAn https URL |
model_file_id | string | Id of a model: an upload from POST /v1/files or the create_upload tool (a .glb), or the file_id of a model a job made. Give either this or model_url.A file id |
texture_format | string | Optional. The format of the model's textures: webp (the default), small, for an importer that reads the EXT_texture_webp extension (Blender, three.js and others), or png, lossless and several times larger, for one that reads no WebP, such as Unity's glTFast.One of "webp", "png" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/repair-model" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"model_file_id":"<file id>"}'#Rig a model
POST/v1/generations/rig-modelAPI keyMCP rig_model
Makes a 3D model of your own game-ready and rigs it to one of nine template skeletons, ready to animate: one closed mesh with nothing inside, 20,000 triangles with rings of edges at the joints, textures baked from the model's own (WebP with EXT_texture_webp, or PNG with texture_format png), the rig's bones with their own names and skin weights. It faces +z, its feet on the floor at the origin. Takes one binary glTF file with its textures inside, standing upright (a snake or a fish lying level). The skeleton that fits is chosen from a picture of it, yours (view_file_id or view_url) or else our own drawing of its shape, unless you name it (rig); a model no skeleton fits, or one lying down, fails with not_animatable and its credits returned. What repair-model refuses is refused here too. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 40 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
model_url | string | HTTPS URL of the model: one binary glTF file (.glb) with its textures inside, up to 200 MB. Give either this or model_file_id.At most 2048 charactersAn https URL |
model_file_id | string | Id of a model: an upload from POST /v1/files or the create_upload tool (a .glb), or the file_id of a model a job made. Give either this or model_url.A file id |
texture_format | string | Optional. The format of the model's textures: webp (the default), small, for an importer that reads the EXT_texture_webp extension (Blender, three.js and others), or png, lossless and several times larger, for one that reads no WebP, such as Unity's glTFast.One of "webp", "png" |
view_url | string | Optional. HTTPS URL of a picture of the model as it stands in its file (PNG, JPEG or WebP, up to 20 MB), seen three-quarters from the front and a little above on a plain background, from which the skeleton is chosen. Without it (and without rig), the skeleton is chosen from our own drawing of the model's shape. Give at most one of this and view_file_id.At most 2048 charactersAn https URL |
view_file_id | string | Optional. Id of the same picture, uploaded with POST /v1/files or the create_upload tool. Give at most one of this and view_url.A file id |
rig | string | Optional. The skeleton to rig it to, when you know it: human (people and humanoids), fox (cats, dogs, wolves and other four-legged animals), horse (horses and other hoofed animals), kaiju (a creature that stands upright and has a tail), bird, dragon (four legs and wings), spider (eight legs), snake (no limbs) or shark (fish). Without it, the skeleton is chosen from the picture, or from our drawing of the model, and a model no skeleton fits fails with not_animatable, its credits returned.One of "human", "fox", "horse", "kaiju", "bird", "dragon", "spider", "snake", "shark" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/rig-model" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"model_file_id":"<file id>"}'#Animate a model
POST/v1/generations/animate-modelAPI keyMCP animate_model
Puts library animations into a model rigged to one of our nine skeletons, as glTF animations a game engine plays: walks, runs, idles, attacks, deaths, dances and more for people (the human skeleton has over 200), and the like for four-legged animals, horses, birds, dragons, upright tailed creatures, spiders, snakes and fish. Takes a GLB that image-to-character or rig-model made, or one exported from our studio; nothing else in the file changes. A model not rigged to one of our skeletons, or a clip its skeleton has not, fails with model_refused and its credits returned. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 5 credits. Makes model.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
model_url | string | HTTPS URL of the model: one binary glTF file (.glb) rigged to one of our nine skeletons, up to 200 MB. Give either this or model_file_id.At most 2048 charactersAn https URL |
model_file_id | string | Id of the rigged model: the file_id of a model image-to-character or rig-model made, or an upload from POST /v1/files or the create_upload tool (a .glb rigged to one of our skeletons, such as one exported from the studio). Give either this or model_url.A file id |
clipsrequired | string[] | The clips to put in, by id, 1 to 30: each must be one of the model's skeleton's clips (GET /v1/rigs, or the list_rigs tool, lists each skeleton's, with their lengths and whether they loop). Each becomes a glTF animation named by its id.Each one of "angry", "attack", "attack-ground-pound", "backflip", "bark", "bite", "bow", "bow-pull", "bow-pull-hold", "bow-release", "burpee", "chest-open", "chop-tree", "chop-wood", "clapping", "climb-ladder", "climb-pipe", "climb-wall", "climbup-1m-rm", "coiled", "confused", "consume", "consume-powerup", "crawl", "crawl-rm", "crouch-idle", "crouch-walk", "dab", "dagger-stab", "dance", "dance-arm-pump", "dance-body-roll", "dance-charleston", "dance-reach-hip", "dance-simple", "dead-floating", "death", "death-2", "death-a", "death-b", "death-c", "death-d", "death-spin-rm", "defend", "dizzy", "dodge-back", "dodge-back-rm", "dodge-left", "dodge-left-rm", "dodge-right", "dodge-right-rm", "driving", "drumming", "drunk-walk", "dual-wield-combo", "dual-wield-cross-slash", "eating", "fall", "farm-harvest", "farm-plantseed", "farm-watering", "fetch", "fighting-idle", "fighting-left-jab", "fighting-right-jab", "fire-breath", "fixing-kneeling", "flap", "flip", "fly-flap", "fly-glide", "flying-forward", "flying-forward-super", "freefall", "glide", "greeting", "grenade-throw", "guitar-playing", "hammering", "head-nod", "headbut", "hit", "hit-chest", "hit-head", "hit-knockback", "hit-knockback-rm", "hop", "howl", "hurt", "idle", "idle-a", "idle-alert", "idle-foldarms", "idle-hurt", "idle-lantern", "idle-listening", "idle-rail", "idle-rail-call", "idle-shakeoff", "idle-shield", "idle-shield-break", "idle-subtle", "idle-sword", "idle-talking", "idle-talkingphone", "idle-torch", "interact", "jog", "jump", "jump-2", "jump-2-rm", "jump-air", "jump-attack", "jump-land", "jump-running", "jump-start", "jumping-jacks", "kick", "kick-front", "kick-roundhouse", "kick-side", "kick-spin", "kneel", "knife-throw", "knock", "ladder-idle", "land", "land-three-point", "lay-to-idle", "laytoidle", "ledge-climb-up", "ledge-hang", "levitate-entrance", "levitate-idle", "meditate", "melee-hook", "melee-hook-rec", "mining", "moonwalk", "mount-idle", "ninjajump-idle", "ninjajump-land", "ninjajump-start", "one-hand-slash-combo", "one-hand-weapon-idle", "open-door", "overhandthrow", "pick-up", "pickup-table", "pistol-aim-down", "pistol-aim-neutral", "pistol-aim-up", "pistol-fire", "pistol-idle", "pistol-idle-aim", "pistol-prone", "pistol-reload", "pistol-reload-2", "pistol-shoot", "pistol-walk", "play-bow", "polearm-idle", "polearm-run", "power-burst", "power-up", "pray", "punch-cross", "punch-jab", "push", "pushup", "rear", "reject", "rest-pose", "rifle-fire", "rifle-idle", "rifle-reload", "rifle-run", "rifle-walk", "roar", "roll", "roll-rm", "rope-hang", "rope-pull", "rope-swing", "run", "run-anime", "run-female", "run-stealth", "scratch-ear", "shake-off", "shield-dash-rm", "shield-oneshot", "shiver", "shovel-dig", "sidewinding", "singing", "sit", "sit-ground-crying", "sit-ground-idle", "sitting-enter", "sitting-exit", "sitting-idle", "sitting-talking", "sitting-writing", "sleep", "sleeping", "slide", "slide-exit", "slide-start", "sneak", "spear-throw", "spear-thrust", "spell-simple-enter", "spell-simple-exit", "spell-simple-idle", "spell-simple-shoot", "sprint", "staff-combo", "staff-spin", "strafe-left", "strafe-right", "swim", "swim-2", "swim-fwd", "swim-horizontal", "swim-idle", "swim-vertical", "sword-attack", "sword-attack-air-vertical", "sword-attack-rm", "sword-block", "sword-dash-rm", "sword-regular-a", "sword-regular-a-rec", "sword-regular-b", "sword-regular-b-rec", "sword-regular-c", "sword-regular-c-rm", "sword-regular-combo", "tail-attack", "take-off", "texting-walk", "threat-display", "throw-ball", "tightrope-walk", "tired-hunched", "tired-kneeling", "trot", "tumbling", "turn-left", "turn-right", "two-hand-blast", "two-handed-horizontal-swing", "two-handed-overhead-slam", "victory", "victory-fist-pump", "walk", "walk-backwards", "walk-carry", "walk-cautious", "walk-female", "walk-formal", "walk-happy", "walk-injured", "walk-large", "walk-relaxed", "walk-rm", "walk-stealth", "wall-run", "weapon-block", "weapon-draw", "yes", "zombie-idle", "zombie-idle-2", "zombie-rise", "zombie-run", "zombie-scratch", "zombie-walk", "zombie-walk-2", "zombie-walk-3", "zombie-yell"1 to 30 items |
rig | string | Optional. The model's skeleton: human, fox, horse, kaiju, bird, dragon, spider, snake or shark. Without it, it is found from the model's bones' names; with it, the clips are checked against it when the job is made.One of "human", "fox", "horse", "kaiju", "bird", "dragon", "spider", "snake", "shark" |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/animate-model" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"model_file_id":"<file id>","clips":["walk","idle-a"]}'#Text to image
POST/v1/generations/text-to-imageAPI keyMCP text_to_image
Makes one image (WebP) from a text prompt, or edits a reference image as the prompt says. Returns a job; fetch the job to get the download link when it has succeeded. To make a 3D model of the image, set for_3d so that it is drawn for one, then pass the output's file_id to image-to-3d, or for a character to image-to-character with the job's brief.rig as rig.
Costs 5 credits. Makes image.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
prompt | string | What the image shows, up to 4,000 characters. With a reference image, the change to make to it. With for_3d, only what to draw, in any language, up to 500 characters: anything it says about the pose, the camera, the background, the light or other things is left out, and the job's brief says what was; with for_3d and a reference image, optionally which of the things in it to draw.1 to 4000 characters |
for_3d | string | Draws the picture for a 3D model: object for image-to-3d, character for an animated character (image-to-character). The prompt then says only what to draw, and the picture is drawn the way models come out best: the subject whole and alone, centred, evenly lit, on a plain light grey background, an object in a three-quarter view, a character in its skeleton's pose seen from the front. With a reference image, that picture is drawn again so, keeping an object's text and logos. Before it is drawn, the words (and the reference image) are read and the job's brief says what was understood: the subject in English, the skeleton chosen for a character, and what was left out. A character that no skeleton fits fails with the error not_animatable and its credits are returned: it can be made with for_3d object instead.One of "object", "character" |
rig | string | With for_3d character, the skeleton it will be rigged to, as for image-to-character: the picture shows the character in that skeleton's pose. Optional: without it, the skeleton that fits the character is chosen, and the job's brief names it (brief.rig), to pass on to image-to-character. A rig given is kept.One of "human", "fox", "horse", "kaiju", "bird", "dragon", "spider", "snake", "shark" |
aspect_ratio | string | Shape of the image, as width:height. Without it the image is square (1:1), or has the reference image's shape when one is given.One of "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16" |
reference_image_url | string | HTTPS URL of an image to edit or to work from (PNG, JPEG or WebP, up to 20 MB). Optional. Give at most one of this and reference_image_file_id.At most 2048 charactersAn https URL |
reference_image_file_id | string | Id of an image to edit or to work from: an upload from POST /v1/files or the create_upload tool, or the file_id of an image a job made. Optional. Give at most one of this and reference_image_url.A file id |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 400 | file_not_found | A <name>_file_id names no file of yours. |
| 400 | file_not_uploaded | Nothing has been sent to the file's upload URL yet. |
| 400 | file_type_not_accepted | This generation does not take that kind of file. |
| 400 | file_type_mismatch | The file's bytes are not the type it was declared as. |
| 400 | file_too_large | The file is larger than this generation takes. |
| 400 | file_empty | The file is empty. |
| 400 | file_invalid | The file is broken, such as an incomplete GLB. |
| 400 | url_not_allowed | A <name>_url must be https and lead to a public address. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-image" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A wooden treasure chest with iron bands","for_3d":"object"}'#Text to music
POST/v1/generations/text-to-musicAPI keyMCP text_to_music
Makes a music track (MP3, stereo) from a description, 30 seconds to 5 minutes long. It is instrumental unless lyrics are given. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 10 credits. Makes audio.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
promptrequired | string | The music to make, up to 3,000 characters: style, mood, instruments, tempo and where it plays. For example: "A calm tavern tune on lute and fiddle, warm and loopable".2 to 3000 characters |
duration_seconds | integer | Length of the track in seconds, from 30 to 300.Default 6030 to 300 |
lyrics | string | Words to sing, up to 3,000 characters, with section tags such as [Verse] and [Chorus] on lines of their own. Without lyrics the track is instrumental.10 to 3000 characters |
lyrics_language | string | Language of the lyrics, as an ISO 639-1 code. Only with lyrics. English if not given.One of "ar", "az", "bg", "bn", "ca", "cs", "da", "de", "el", "en", "es", "fa", "fi", "fr", "he", "hi", "hr", "ht", "hu", "id", "is", "it", "ja", "ko", "la", "lt", "ms", "ne", "nl", "no", "pa", "pl", "pt", "ro", "ru", "sa", "sk", "sr", "sv", "sw", "ta", "te", "th", "tl", "tr", "uk", "ur", "vi", "yue", "zh" |
bpm | integer | Tempo in beats per minute, from 30 to 300. The model chooses one if not given.30 to 300 |
key | string | Musical key, such as "C major", "F# minor" or "Bb major". The model chooses one if not given. |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-music" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A calm tavern tune on lute and fiddle, loopable","duration_seconds":60}'#Text to speech
POST/v1/generations/text-to-speechAPI keyMCP text_to_speech
Speaks a text in one of 24 voices (MP3, mono), in any of 39 languages. Costs 1 credit for every 100 characters or part of them. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 1 credit for every 100 characters. Makes audio.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
textrequired | string | What to say, up to 5,000 characters of plain text. Costs 1 credit for every 100 characters or part of them.1 to 5000 characters |
voicerequired | string | The voice that speaks. Each voice speaks every language.One of "bram", "cecily", "corinne", "elowen", "ewan", "felicity", "gareth", "hugh", "iona", "jocelyn", "jonah", "kieran", "lucian", "marielle", "meredith", "nadine", "noelle", "rory", "sabrina", "simon", "soren", "tabitha", "vincent", "weston" |
language | string | Language of the text, as an ISO 639-1 code. Detected from the text if not given.One of "ar", "be", "bg", "ca", "cs", "da", "de", "el", "en", "es", "fa", "fi", "fr", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "mk", "ms", "nl", "pl", "pt", "ro", "ru", "sk", "sl", "sr", "sv", "ta", "th", "tl", "tr", "uk", "vi", "zh" |
expressiveness | number | How expressive the delivery is, from 0 (even) to 1 (most expressive).Default 10 to 1 |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-speech" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Press the space bar to jump over the gap.","voice":"jonah"}'#Text to sound effect
POST/v1/generations/text-to-sfxAPI keyMCP text_to_sfx
Makes a sound effect (MP3, stereo, 44.1 kHz) from a description, 1 second to 2 minutes long. Costs 2 credits for every 30 seconds or part of them. Returns a job; fetch the job to get the download link when it has succeeded.
Costs 2 credits for every 30 seconds. Makes audio.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
promptrequired | string | The sound to make, up to 1,000 characters: what makes it, how, and where. For example: "A heavy wooden door creaks open slowly in a stone hall".2 to 1000 characters |
duration_seconds | number | Length of the sound in seconds, from 1 to 120, in steps of 0.1.Default 51 to 120 |
seed | integer | A number that fixes the result: the same prompt, length and seed make the same sound. A random one if not given.0 to 4294967295 |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-sfx" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A heavy wooden door creaks open slowly in a stone hall","duration_seconds":4}'#Text to material
POST/v1/generations/text-to-materialAPI keyMCP text_to_material
Makes a seamless, tileable PBR material (floors, walls, roofs, paving, stone, brick, wood, metal, fabric, leather, bark, plaster, panels and the like) from a description, at the sizes asked: 1K, 2K and 4K, 1K and 2K by default. For each size: a zip of its maps (colour, normal for OpenGL and for DirectX, roughness, ambient occlusion and packed ORM as JPEG; the 16-bit height, metallic and a Unity mask as PNG), and a GLB plane of the tile's real size carrying the material. Also, whatever the sizes, a 1K GLB to preview it with, the 1K height map, a thumbnail, and info.json, which gives each size's tile in metres (size_m) and its displacement in metres (displacement_m). Costs the price of its largest size: 10 credits for 1K, 10 credits for 2K, 20 credits for 4K. Returns a job; fetch the job to get the download links when it has succeeded.
Costs 10 credits. Makes material_1k, model_1k, material_2k, model_2k, material_4k, model_4k, preview, height, thumbnail, info.
Parameters
| Name | In | About it |
|---|---|---|
Idempotency-Key | header | Optional. The same key with the same body returns the same job (200) and costs nothing again; with another body it is 409 idempotency_key_reused. 1 to 255 printable ASCII characters without spaces. |
Request body
| Field | Type | About it |
|---|---|---|
promptrequired | string | The flat, tileable surface to make, up to 300 characters, in any language: floors, walls, roofs, wood, metal, fabric, leather, bark, plaster, panels and the like — what it is made of, how it is laid, how worn. For example: "red brick wall", "herringbone oak parquet" or "rusty corrugated metal". Only the surface is made, never objects on it; words that describe no surface are turned down and the credits returned.1 to 300 characters |
sizes | string[] | The sizes to make the material at, in pixels: one or more of 1024, 2048 and 4096; 1024 and 2048 by default. Every size is the same surface: the larger ones are the same tile enlarged, sharper, not with more of the surface.Default [1024,2048] |
Response 202
The job, queued. Read it with GET /v1/jobs/{id} until it has finished. A request replayed with its Idempotency-Key answers 200 with the same job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_idempotency_key | An Idempotency-Key must be 1 to 255 printable ASCII characters without spaces. |
| 402 | insufficient_credits | Too few credits for this job; details.required and details.available say how many. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 409 | idempotency_key_reused | The key was used for a different request; details.job_id is that job. Use a new key. |
| 409 | idempotency_conflict | Another request with the same key was still in progress. Try again. |
| 429 | too_many_failed_jobs | Too many of your jobs failed (refunded) in the last 24 hours for your plan: no new job starts until the oldest is a day old, in details.retry_after_seconds (also the Retry-After header). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/generations/text-to-material" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"herringbone oak parquet","sizes":[1024,2048]}'#Jobs
Your jobs: their status, results, sharing, cancelling and deleting.
#List your jobs
GET/v1/jobsAPI keyMCP list_jobs
Newest first, a page at a time.
Parameters
| Name | In | About it |
|---|---|---|
type | query | Keep only these generation types: repeat it, or separate them with commas. |
limit | query | How many to return, 1 to 100. |
after | query | The next_cursor of the previous page. |
Response 200
A page of jobs.
| Field | Type | About it |
|---|---|---|
jobsrequired | Job[] | Newest first. |
next_cursorrequired | string or null | Pass as after to read the next page; null on the last page. |
Errors
400 invalid_request, 400 invalid_cursor, 401 unauthorized, 429 rate_limited (every request's errors).
curl -s "https://assetmonkey.ai/v1/jobs" \
-H "Authorization: Bearer $AM_KEY"#Get a job
GET/v1/jobs/{id}API keyMCP get_job
Poll it until status is succeeded, failed or cancelled. Once it has succeeded, outputs has a download link for each file; links expire, and each read gives fresh ones.
Parameters
| Name | In | About it |
|---|---|---|
idrequired | path | The job's id. |
Response 200
The job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
And 401 unauthorized, 429 rate_limited (every request's errors).
curl -s "https://assetmonkey.ai/v1/jobs/<id>" \
-H "Authorization: Bearer $AM_KEY"#Share or unshare a model
PATCH/v1/jobs/{id}API keyMCP update_job
Makes a model public, shown in the community, or private. Only a type that makes a model; on the free plan a model stays public.
Parameters
| Name | In | About it |
|---|---|---|
idrequired | path | The job's id. |
Request body
| Field | Type | About it |
|---|---|---|
visibilityrequired | string | One of "public", "private" |
Response 200
The job.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 403 | paid_plan_required | On the free plan every model is public: visibility: "private" needs a paid plan. |
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X PATCH "https://assetmonkey.ai/v1/jobs/<id>" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"visibility":"public"}'#Delete a job
DELETE/v1/jobs/{id}API keyMCP delete_job
Deletes a finished job for good, with every file it took in or made that none of your other jobs uses. Your usage history keeps what it cost.
Parameters
| Name | In | About it |
|---|---|---|
idrequired | path | The job's id. |
Response 200
Deleted.
| Field | Type | About it |
|---|---|---|
okrequired | true |
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
| 409 | job_unfinished | The job is still running: only a finished job can be deleted. |
And 401 unauthorized, 429 rate_limited (every request's errors).
curl -s -X DELETE "https://assetmonkey.ai/v1/jobs/<id>" \
-H "Authorization: Bearer $AM_KEY"#Cancel a job
POST/v1/jobs/{id}/cancelAPI keyMCP cancel_job
Cancels a job that has not been sent to its generator yet, and returns its credits. Cancelling a cancelled job answers it again.
Parameters
| Name | In | About it |
|---|---|---|
idrequired | path | The job's id. |
Response 200
The job, cancelled.
| Field | Type | About it |
|---|---|---|
jobrequired | Job |
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
| 409 | job_started | The job has been sent to the generator and can no longer be cancelled; it is charged if it succeeds. |
| 409 | job_already_finished | The job has already ended. |
And 401 unauthorized, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/jobs/<id>/cancel" \
-H "Authorization: Bearer $AM_KEY"#Files
Uploads of your own pictures and models, to make something from.
#Upload a file
POST/v1/filesAPI keyMCP create_upload
Reserves an upload: send the file's bytes to upload.url with upload.method and upload.headers within 15 minutes, then pass file.id as a generation's <name>_file_id. A picture up to 20 MB, a GLB up to 200 MB. A file already online needs no upload: pass its https link as <name>_url.
Request body
| Field | Type | About it |
|---|---|---|
content_typerequired | string | One of "image/png", "image/jpeg", "image/webp", "model/gltf-binary" |
filename | string | 1 to 255 characters |
Response 201
The file's id and where to send it.
| Field | Type | About it |
|---|---|---|
filerequired | object | |
file.idrequired | string | Pass as a generation's <name>_file_id once the file is sent. |
file.content_typerequired | string | |
file.statusrequired | string | One of "pending", "ready" |
uploadrequired | object | Send the file with this method, URL and headers, before expires_at (15 minutes). |
upload.methodrequired | "PUT" | |
upload.urlrequired | string | Send the file's bytes here. |
upload.headersrequired | object | |
upload.headers.Content-Typerequired | string | |
upload.headers.If-None-Matchrequired | "*" | |
upload.expires_atrequired | string | ISO 8601, UTC. |
Errors
| Status | Code | When |
|---|---|---|
| 400 | content_type_not_supported | That content_type cannot be uploaded: PNG, JPEG, WebP or GLB. |
| 403 | storage_full | Your files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more. |
| 429 | too_many_uploads | 20 uploads are open (reserved, unused, URL still working). Use them or wait for their URLs to expire. |
And 400 invalid_json, 400 invalid_request, 401 unauthorized, 415 unsupported_media_type, 429 rate_limited (every request's errors).
curl -s -X POST "https://assetmonkey.ai/v1/files" \
-H "Authorization: Bearer $AM_KEY" \
-H "Content-Type: application/json" \
-d '{"content_type":"image/png","filename":"chest.png"}'#Delete a file
DELETE/v1/files/{id}API keyMCP delete_file
Deletes an uploaded or linked file for good; the jobs that took it in stay, without it. A job's result goes with its job.
Parameters
| Name | In | About it |
|---|---|---|
idrequired | path | The file's id. |
Response 200
Deleted.
| Field | Type | About it |
|---|---|---|
okrequired | true |
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
| 409 | file_in_use | A running job takes this file in. Try again once it has finished. |
And 401 unauthorized, 429 rate_limited (every request's errors).
curl -s -X DELETE "https://assetmonkey.ai/v1/files/<id>" \
-H "Authorization: Bearer $AM_KEY"#Community
Models people shared, for anyone to open. Public.
#List the community's models
GET/v1/community/modelsPublicMCP list_community_models
Models people shared, newest first, with links to each one's picture and model. Nothing says who made one. Public.
Parameters
| Name | In | About it |
|---|---|---|
limit | query | How many to return, 1 to 100. |
after | query | The next_cursor of the previous page. |
Response 200
A page of models.
| Field | Type | About it |
|---|---|---|
modelsrequired | CommunityModel[] | Newest first. |
next_cursorrequired | string or null | Pass as after to read the next page; null on the last page. |
Errors
400 invalid_request, 400 invalid_cursor (every request's errors).
curl -s "https://assetmonkey.ai/v1/community/models"#Get a community model
GET/v1/community/models/{id}PublicMCP get_community_model
One shared model with fresh links. Public.
Parameters
| Name | In | About it |
|---|---|---|
idrequired | path | The model's id. |
Response 200
The model.
| Field | Type | About it |
|---|---|---|
modelrequired | CommunityModel |
Errors
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such thing, or it belongs to another account (the two answer the same). |
curl -s "https://assetmonkey.ai/v1/community/models/<id>"#Account
Your credits, plan, storage and credit history.
#Get your account
GET/v1/accountAPI keyMCP get_account
Your credits, the plan they come from, your subscription and your storage.
Response 200
The account.
| Field | Type | About it |
|---|---|---|
userrequired | object | |
user.idrequired | string | |
user.emailrequired | string | |
user.namerequired | string | |
user.created_atrequired | string | ISO 8601, UTC. |
creditsrequired | object | |
credits.availablerequired | integer | |
credits.reservedrequired | integer | Held by running jobs. |
credits.expires_atrequired | string or null | When what is available expires: the end of the plan's month. |
planrequired | object or null | The plan the credits come from now: a subscription's, or the free plan. |
plan.idrequired | string | |
plan.namerequired | string | |
plan.credits_per_monthrequired | integer | |
plan.period_startrequired | string | ISO 8601, UTC. |
plan.period_endrequired | string | ISO 8601, UTC. |
subscriptionrequired | object or null | |
subscription.plan_idrequired | string | |
subscription.plan_namerequired | string | |
subscription.credits_per_monthrequired | integer or null | |
subscription.billing_intervalrequired | string | One of "month", "year" |
subscription.statusrequired | string | One of "active", "past_due", "canceled" |
subscription.current_period_startrequired | string | ISO 8601, UTC. |
subscription.current_period_endrequired | string | ISO 8601, UTC. |
subscription.cancel_at_period_endrequired | boolean | |
storagerequired | object | At or over the limit, no job or upload starts (403 storage_full). |
storage.used_bytesrequired | integer | |
storage.limit_bytesrequired | integer | |
storage.over_sincerequired | string or null | ISO 8601, UTC. |
storage.deletes_atrequired | string or null | Over the limit: when the oldest private files go if they still do not fit. |
Errors
401 unauthorized, 429 rate_limited (every request's errors).
curl -s "https://assetmonkey.ai/v1/account" \
-H "Authorization: Bearer $AM_KEY"#List your credit history
GET/v1/account/usageAPI keyMCP list_usage
What each job cost, and every grant and expiry, newest first. A whole history adds up to your balance.
Parameters
| Name | In | About it |
|---|---|---|
limit | query | How many to return, 1 to 100. |
after | query | The next_cursor of the previous page. |
Response 200
A page of entries.
| Field | Type | About it |
|---|---|---|
entriesrequired | UsageEntry[] | Newest first. |
next_cursorrequired | string or null | Pass as after to read the next page; null on the last page. |
Errors
400 invalid_request, 400 invalid_cursor, 401 unauthorized, 429 rate_limited (every request's errors).
curl -s "https://assetmonkey.ai/v1/account/usage" \
-H "Authorization: Bearer $AM_KEY"#Objects
The objects the answers above are made of.
#GenerationType
| Field | Type | About it |
|---|---|---|
idrequired | string | The path segment of its endpoint, as "image-to-3d". |
titlerequired | string | |
descriptionrequired | string | |
cost_creditsrequired | integer | What one job with default settings costs. A job reports what it cost. |
cost_perrequired | object or null | For a type priced by its input's length: cost_credits for every per of unit or part of them, up to max_credits. Null when the price does not depend on length. |
cost_per.perrequired | number | |
cost_per.unitrequired | string | One of "second", "character" |
cost_per.max_creditsrequired | integer | |
input_schemarequired | object | The JSON Schema of the request body (draft 2020-12). |
outputsrequired | object[] | Every file a job of the type can make, by its role. |
outputs[].rolerequired | string | |
outputs[].content_typerequired | string | |
publishablerequired | boolean | Whether its result can be public in the community; the body then takes visibility. |
endpointrequired | string | |
mcp_toolrequired | string | The MCP tool that makes the same job. |
#Clip
| Field | Type | About it |
|---|---|---|
idrequired | string | Pass in animate-model's clips. |
namerequired | string | |
secondsrequired | number | |
looprequired | boolean |
#Plan
| Field | Type | About it |
|---|---|---|
idrequired | string | |
namerequired | string | |
credits_per_monthrequired | integer | Granted at the start of each month; what is left expires when the month ends. |
price_usd_per_monthrequired | number | |
price_usd_per_yearrequired | number or null | Null when the plan cannot be billed yearly. Yearly plans still grant credits monthly. |
freerequired | boolean | The plan of every account without a subscription. |
storage_bytesrequired | integer | How much the account's uploads, links and results may take. A GB is a billion bytes. |
#Job
| Field | Type | About it |
|---|---|---|
idrequired | string | |
typerequired | string | Its generation type. |
statusrequired | string | queued, then processing; a model's job passes through post_processing while it is made game-ready; it ends succeeded, failed or cancelled.One of "queued", "processing", "post_processing", "succeeded", "failed", "cancelled" |
inputrequired | object | The body it was created with. |
cost_creditsrequired | integer | Reserved when created, spent if it succeeds, refunded if it fails or is cancelled. |
errorrequired | object or null | Why a failed job failed; see x-job-errors for the codes. Null otherwise. |
error.coderequired | string | |
error.messagerequired | string | |
briefrequired | object or null | How a picture for 3D's words and picture were read (subject, rig, what was left out, language), or for rig-model the rig chosen. Null for other jobs. |
visibilityrequired | string | public: shown in the community. Only a type that makes a model is ever public.One of "public", "private" |
inputsrequired | object[] | The files it was given. |
inputs[].namerequired | string | |
inputs[].sourcerequired | string | An upload, a link fetched when the job started, or another of your jobs' results.One of "upload", "link", "result" |
inputs[].file_idrequired | string | |
inputs[].content_typerequired | string | |
inputs[].size_bytesrequired | integer or null | |
inputs[].filenamerequired | string | |
inputs[].download_urlrequired | string | Presigned: no key needed, and it expires. |
inputs[].download_url_expires_atrequired | string | ISO 8601, UTC. |
outputsrequired | object[] | What it made, once it has succeeded; empty before. |
outputs[].rolerequired | string | |
outputs[].file_idrequired | string | |
outputs[].content_typerequired | string | |
outputs[].size_bytesrequired | integer or null | |
outputs[].filenamerequired | string | |
outputs[].download_urlrequired | string | Presigned: no key needed, and it expires. |
outputs[].download_url_expires_atrequired | string | ISO 8601, UTC. |
created_atrequired | string | ISO 8601, UTC. |
started_atrequired | string or null | ISO 8601, UTC. |
completed_atrequired | string or null | ISO 8601, UTC. |
#CommunityModel
| Field | Type | About it |
|---|---|---|
idrequired | string | |
typerequired | string | |
subjectrequired | string | What it is, in a few English words. |
inputrequired | object | Its settings without its files, such as a character's rig. |
picturerequired | object or null | The picture drawn for 3D it was made from. |
picture.content_typerequired | string | |
picture.size_bytesrequired | integer or null | |
picture.download_urlrequired | string | |
picture.download_url_expires_atrequired | string | ISO 8601, UTC. |
modelrequired | object or null | |
model.content_typerequired | string | |
model.size_bytesrequired | integer or null | |
model.download_urlrequired | string | |
model.download_url_expires_atrequired | string | ISO 8601, UTC. |
created_atrequired | string | ISO 8601, UTC. |
#UsageEntry
| Field | Type | About it |
|---|---|---|
idrequired | string | |
typerequired | string | One of "job", "grant", "purchase", "expire" |
creditsrequired | integer | What it did to the credits you can spend: -20 for a job, +75 for a grant. |
created_atrequired | string | ISO 8601, UTC. |
jobrequired | object or null | |
job.idrequired | string | |
job.generation_typerequired | string or null | |
job.amountrequired | integer | |
job.statusrequired | string | Held while it runs, then spent, or refunded with credits 0.One of "held", "spent", "refunded" |
job.resolved_atrequired | string or null | ISO 8601, UTC. |
detailsrequired | object or null | A grant's or an expiry's plan_id, period_start and period_end; an expiry's reason (ended, replaced, canceled). |