NewMonkey V2 is in preview. Try it on your next model

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:

Base URL
https://assetmonkey.ai/v1

Requests 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.

Terminal
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.

Words to a model
# 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.

Terminal
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
{
  "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:

StatusCodeWhen
401unauthorizedNo API key was sent, or the key is invalid or revoked.
429rate_limitedToo many requests a minute for this account. Wait details.retry_after_seconds (also the Retry-After header).
415unsupported_media_typeThe body must be JSON, sent with "Content-Type: application/json".
400invalid_jsonThe body is not valid JSON.
400invalid_requestA field is missing, of the wrong type or out of range; details.issues lists each with its path.
400invalid_cursorafter 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.

CodeWhat happened
content_refusedThe words, picture or model break the content rules. The message names the rule.
refusedThe request was declined while it was read.
not_animatableNo skeleton fits this character (or the model lies down). Make it as a static object instead; brief.not_animatable says why.
not_a_surfaceThe words describe no flat, tileable surface. The message says why.
model_refusedThe model could not be made game-ready. The message says why.
invalid_imageThe picture could not be used.
unsupported_settingsThese settings are not available for this generation.
url_fetch_failedA <name>_url could not be downloaded when the job started.
url_not_allowedA <name>_url led to an address that is not public.
file_emptyAn input file is empty.
file_too_largeAn input file is larger than this generation takes.
file_type_not_acceptedAn input file is of a kind this generation does not take.
file_type_mismatchAn input file's bytes are not the type it was declared as.
file_invalidAn input file is broken.
file_not_foundAn input file was deleted before the job started.
file_not_uploadedAn input file was never sent to its upload URL.
invalid_resultThe result could not be used.
generation_failedThe generation could not be completed.
generation_unavailableThe generator is not available now. Try again later.
repair_failedThe model could not be made game-ready.
repair_unavailableMaking the model game-ready is not available now. Try again later.
animate_failedThe animations could not be put into the model.
provider_errorThe generation could not be completed.
timeoutThe job did not finish in time.
job_endedThe job ended before it was generated.
internal_errorSomething 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.

FieldTypeAbout it
generation_typesrequiredGenerationType[]
Example
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

NameInAbout it
typerequiredpathA generation type's id.

Request body

Any fields of the job's body.

Response 200

The cost in credits.

FieldTypeAbout it
cost_creditsrequiredintegerWhat a job with this body would cost.

Errors

StatusCodeWhen
404not_foundNo 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).

Example
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.

FieldTypeAbout it
rigsrequiredobject[]
rigs[].idrequiredstringA character's rig.
rigs[].namerequiredstring
rigs[].descriptionrequiredstring
rigs[].clipsrequiredClip[]
Example
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.

FieldTypeAbout it
plansrequiredPlan[]
Example
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.

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
image_urlstringHTTPS 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_idstringId 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_formatstringOptional. 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"
visibilitystringWho 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
403paid_plan_requiredOn the free plan every model is public: visibility: "private" needs a paid plan.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
image_urlstringHTTPS 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_idstringId 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_formatstringOptional. 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"
rigrequiredstringThe 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"
visibilitystringWho 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
403paid_plan_requiredOn the free plan every model is public: visibility: "private" needs a paid plan.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
image_urlstringHTTPS 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_idstringId 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_formatstringOptional. 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"
visibilitystringWho 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
403paid_plan_requiredOn the free plan every model is public: visibility: "private" needs a paid plan.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
image_urlstringHTTPS 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_idstringId 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_formatstringOptional. 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"
rigrequiredstringThe 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"
visibilitystringWho 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
403paid_plan_requiredOn the free plan every model is public: visibility: "private" needs a paid plan.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
model_urlstringHTTPS 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_idstringId 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_formatstringOptional. 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
model_urlstringHTTPS 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_idstringId 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_formatstringOptional. 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_urlstringOptional. 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_idstringOptional. 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
rigstringOptional. 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
model_urlstringHTTPS 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_idstringId 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
clipsrequiredstring[]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
rigstringOptional. 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
promptstringWhat 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_3dstringDraws 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"
rigstringWith 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_ratiostringShape 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_urlstringHTTPS 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_idstringId 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
400file_not_foundA <name>_file_id names no file of yours.
400file_not_uploadedNothing has been sent to the file's upload URL yet.
400file_type_not_acceptedThis generation does not take that kind of file.
400file_type_mismatchThe file's bytes are not the type it was declared as.
400file_too_largeThe file is larger than this generation takes.
400file_emptyThe file is empty.
400file_invalidThe file is broken, such as an incomplete GLB.
400url_not_allowedA <name>_url must be https and lead to a public address.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
promptrequiredstringThe 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_secondsintegerLength of the track in seconds, from 30 to 300.Default 6030 to 300
lyricsstringWords 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_languagestringLanguage 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"
bpmintegerTempo in beats per minute, from 30 to 300. The model chooses one if not given.30 to 300
keystringMusical 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
textrequiredstringWhat 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
voicerequiredstringThe 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"
languagestringLanguage 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"
expressivenessnumberHow 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
promptrequiredstringThe 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_secondsnumberLength of the sound in seconds, from 1 to 120, in steps of 0.1.Default 51 to 120
seedintegerA 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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
Idempotency-KeyheaderOptional. 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

FieldTypeAbout it
promptrequiredstringThe 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
sizesstring[]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.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
400invalid_idempotency_keyAn Idempotency-Key must be 1 to 255 printable ASCII characters without spaces.
402insufficient_creditsToo few credits for this job; details.required and details.available say how many.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
409idempotency_key_reusedThe key was used for a different request; details.job_id is that job. Use a new key.
409idempotency_conflictAnother request with the same key was still in progress. Try again.
429too_many_failed_jobsToo 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).

Example
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

NameInAbout it
typequeryKeep only these generation types: repeat it, or separate them with commas.
limitqueryHow many to return, 1 to 100.
afterqueryThe next_cursor of the previous page.

Response 200

A page of jobs.

FieldTypeAbout it
jobsrequiredJob[]Newest first.
next_cursorrequiredstring or nullPass 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).

Example
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

NameInAbout it
idrequiredpathThe job's id.

Response 200

The job.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
404not_foundNo such thing, or it belongs to another account (the two answer the same).

And 401 unauthorized, 429 rate_limited (every request's errors).

Example
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

NameInAbout it
idrequiredpathThe job's id.

Request body

FieldTypeAbout it
visibilityrequiredstringOne of "public", "private"

Response 200

The job.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
403paid_plan_requiredOn the free plan every model is public: visibility: "private" needs a paid plan.
404not_foundNo 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).

Example
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

NameInAbout it
idrequiredpathThe job's id.

Response 200

Deleted.

FieldTypeAbout it
okrequiredtrue

Errors

StatusCodeWhen
404not_foundNo such thing, or it belongs to another account (the two answer the same).
409job_unfinishedThe job is still running: only a finished job can be deleted.

And 401 unauthorized, 429 rate_limited (every request's errors).

Example
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

NameInAbout it
idrequiredpathThe job's id.

Response 200

The job, cancelled.

FieldTypeAbout it
jobrequiredJob

Errors

StatusCodeWhen
404not_foundNo such thing, or it belongs to another account (the two answer the same).
409job_startedThe job has been sent to the generator and can no longer be cancelled; it is charged if it succeeds.
409job_already_finishedThe job has already ended.

And 401 unauthorized, 429 rate_limited (every request's errors).

Example
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

FieldTypeAbout it
content_typerequiredstringOne of "image/png", "image/jpeg", "image/webp", "model/gltf-binary"
filenamestring1 to 255 characters

Response 201

The file's id and where to send it.

FieldTypeAbout it
filerequiredobject
file.idrequiredstringPass as a generation's <name>_file_id once the file is sent.
file.content_typerequiredstring
file.statusrequiredstringOne of "pending", "ready"
uploadrequiredobjectSend the file with this method, URL and headers, before expires_at (15 minutes).
upload.methodrequired"PUT"
upload.urlrequiredstringSend the file's bytes here.
upload.headersrequiredobject
upload.headers.Content-Typerequiredstring
upload.headers.If-None-Matchrequired"*"
upload.expires_atrequiredstringISO 8601, UTC.

Errors

StatusCodeWhen
400content_type_not_supportedThat content_type cannot be uploaded: PNG, JPEG, WebP or GLB.
403storage_fullYour files take all of your plan's storage (details.used_bytes, details.limit_bytes): delete some to make more.
429too_many_uploads20 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).

Example
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

NameInAbout it
idrequiredpathThe file's id.

Response 200

Deleted.

FieldTypeAbout it
okrequiredtrue

Errors

StatusCodeWhen
404not_foundNo such thing, or it belongs to another account (the two answer the same).
409file_in_useA running job takes this file in. Try again once it has finished.

And 401 unauthorized, 429 rate_limited (every request's errors).

Example
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

NameInAbout it
limitqueryHow many to return, 1 to 100.
afterqueryThe next_cursor of the previous page.

Response 200

A page of models.

FieldTypeAbout it
modelsrequiredCommunityModel[]Newest first.
next_cursorrequiredstring or nullPass as after to read the next page; null on the last page.

Errors

400 invalid_request, 400 invalid_cursor (every request's errors).

Example
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

NameInAbout it
idrequiredpathThe model's id.

Response 200

The model.

FieldTypeAbout it
modelrequiredCommunityModel

Errors

StatusCodeWhen
404not_foundNo such thing, or it belongs to another account (the two answer the same).
Example
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.

FieldTypeAbout it
userrequiredobject
user.idrequiredstring
user.emailrequiredstring
user.namerequiredstring
user.created_atrequiredstringISO 8601, UTC.
creditsrequiredobject
credits.availablerequiredinteger
credits.reservedrequiredintegerHeld by running jobs.
credits.expires_atrequiredstring or nullWhen what is available expires: the end of the plan's month.
planrequiredobject or nullThe plan the credits come from now: a subscription's, or the free plan.
plan.idrequiredstring
plan.namerequiredstring
plan.credits_per_monthrequiredinteger
plan.period_startrequiredstringISO 8601, UTC.
plan.period_endrequiredstringISO 8601, UTC.
subscriptionrequiredobject or null
subscription.plan_idrequiredstring
subscription.plan_namerequiredstring
subscription.credits_per_monthrequiredinteger or null
subscription.billing_intervalrequiredstringOne of "month", "year"
subscription.statusrequiredstringOne of "active", "past_due", "canceled"
subscription.current_period_startrequiredstringISO 8601, UTC.
subscription.current_period_endrequiredstringISO 8601, UTC.
subscription.cancel_at_period_endrequiredboolean
storagerequiredobjectAt or over the limit, no job or upload starts (403 storage_full).
storage.used_bytesrequiredinteger
storage.limit_bytesrequiredinteger
storage.over_sincerequiredstring or nullISO 8601, UTC.
storage.deletes_atrequiredstring or nullOver the limit: when the oldest private files go if they still do not fit.

Errors

401 unauthorized, 429 rate_limited (every request's errors).

Example
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

NameInAbout it
limitqueryHow many to return, 1 to 100.
afterqueryThe next_cursor of the previous page.

Response 200

A page of entries.

FieldTypeAbout it
entriesrequiredUsageEntry[]Newest first.
next_cursorrequiredstring or nullPass 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).

Example
curl -s "https://assetmonkey.ai/v1/account/usage" \
  -H "Authorization: Bearer $AM_KEY"

#Objects

The objects the answers above are made of.

#GenerationType

FieldTypeAbout it
idrequiredstringThe path segment of its endpoint, as "image-to-3d".
titlerequiredstring
descriptionrequiredstring
cost_creditsrequiredintegerWhat one job with default settings costs. A job reports what it cost.
cost_perrequiredobject or nullFor 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.perrequirednumber
cost_per.unitrequiredstringOne of "second", "character"
cost_per.max_creditsrequiredinteger
input_schemarequiredobjectThe JSON Schema of the request body (draft 2020-12).
outputsrequiredobject[]Every file a job of the type can make, by its role.
outputs[].rolerequiredstring
outputs[].content_typerequiredstring
publishablerequiredbooleanWhether its result can be public in the community; the body then takes visibility.
endpointrequiredstring
mcp_toolrequiredstringThe MCP tool that makes the same job.

#Clip

FieldTypeAbout it
idrequiredstringPass in animate-model's clips.
namerequiredstring
secondsrequirednumber
looprequiredboolean

#Plan

FieldTypeAbout it
idrequiredstring
namerequiredstring
credits_per_monthrequiredintegerGranted at the start of each month; what is left expires when the month ends.
price_usd_per_monthrequirednumber
price_usd_per_yearrequirednumber or nullNull when the plan cannot be billed yearly. Yearly plans still grant credits monthly.
freerequiredbooleanThe plan of every account without a subscription.
storage_bytesrequiredintegerHow much the account's uploads, links and results may take. A GB is a billion bytes.

#Job

FieldTypeAbout it
idrequiredstring
typerequiredstringIts generation type.
statusrequiredstringqueued, 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"
inputrequiredobjectThe body it was created with.
cost_creditsrequiredintegerReserved when created, spent if it succeeds, refunded if it fails or is cancelled.
errorrequiredobject or nullWhy a failed job failed; see x-job-errors for the codes. Null otherwise.
error.coderequiredstring
error.messagerequiredstring
briefrequiredobject or nullHow 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.
visibilityrequiredstringpublic: shown in the community. Only a type that makes a model is ever public.One of "public", "private"
inputsrequiredobject[]The files it was given.
inputs[].namerequiredstring
inputs[].sourcerequiredstringAn upload, a link fetched when the job started, or another of your jobs' results.One of "upload", "link", "result"
inputs[].file_idrequiredstring
inputs[].content_typerequiredstring
inputs[].size_bytesrequiredinteger or null
inputs[].filenamerequiredstring
inputs[].download_urlrequiredstringPresigned: no key needed, and it expires.
inputs[].download_url_expires_atrequiredstringISO 8601, UTC.
outputsrequiredobject[]What it made, once it has succeeded; empty before.
outputs[].rolerequiredstring
outputs[].file_idrequiredstring
outputs[].content_typerequiredstring
outputs[].size_bytesrequiredinteger or null
outputs[].filenamerequiredstring
outputs[].download_urlrequiredstringPresigned: no key needed, and it expires.
outputs[].download_url_expires_atrequiredstringISO 8601, UTC.
created_atrequiredstringISO 8601, UTC.
started_atrequiredstring or nullISO 8601, UTC.
completed_atrequiredstring or nullISO 8601, UTC.

#CommunityModel

FieldTypeAbout it
idrequiredstring
typerequiredstring
subjectrequiredstringWhat it is, in a few English words.
inputrequiredobjectIts settings without its files, such as a character's rig.
picturerequiredobject or nullThe picture drawn for 3D it was made from.
picture.content_typerequiredstring
picture.size_bytesrequiredinteger or null
picture.download_urlrequiredstring
picture.download_url_expires_atrequiredstringISO 8601, UTC.
modelrequiredobject or null
model.content_typerequiredstring
model.size_bytesrequiredinteger or null
model.download_urlrequiredstring
model.download_url_expires_atrequiredstringISO 8601, UTC.
created_atrequiredstringISO 8601, UTC.

#UsageEntry

FieldTypeAbout it
idrequiredstring
typerequiredstringOne of "job", "grant", "purchase", "expire"
creditsrequiredintegerWhat it did to the credits you can spend: -20 for a job, +75 for a grant.
created_atrequiredstringISO 8601, UTC.
jobrequiredobject or null
job.idrequiredstring
job.generation_typerequiredstring or null
job.amountrequiredinteger
job.statusrequiredstringHeld while it runs, then spent, or refunded with credits 0.One of "held", "spent", "refunded"
job.resolved_atrequiredstring or nullISO 8601, UTC.
detailsrequiredobject or nullA grant's or an expiry's plan_id, period_start and period_end; an expiry's reason (ended, replaced, canceled).