Auto-rig 3D models from code

Send a GLB, glTF or FBX of almost anything: people, robots, animals, dragons, dinosaurs, spiders, snakes, fish or props. Get back a GLB with the skeleton, skin weights and every animation for its body type.

price
5¢ / rig
free
3 rigs / mo
time
~1–2 min
animations
932
~/game
$ export AFK_API_KEY=afk_...$ npx afk-rig knight.glb --type humanUploading knight.glb…QueuedRigging: studying the shapeRigging: placing the jointsRigging: fitting the skeletonRigging: painting skin weightsWriting the .glb with its animationsDone in 84 s: 592 animations, 7.4 MB, one of your free rigs this month./home/you/game/knight.rigged.glb$ 

Quick start#

From sign-in to a rigged model in three steps. You need Node.js 18.17 or newer.

  1. 01

    Create a key

    Sign in to your afk.ai account with Google and create one under API keys. It starts with afk_ and is shown once; revoke it there any time. Keep it out of web pages and apps people download.

  2. 02

    Put it in your environment

    shell
    export AFK_API_KEY=afk_...   # from afk.ai/account#api
  3. 03

    Rig a model

    npx afk-rig knight.glb --type human -o knight.rigged.glb

    Rigs run on our GPUs, usually in 1 to 2 minutes; the CLI and client wait for them. With an MCP client, ask something like “rig models/fox.glb as a four-legged animal”.

From a picture#

No 3D model yet? Send a picture of a character instead: one call makes a textured 3D model from it, then rigs it with every animation for its body type, in one GLB, in about 2 to 3 minutes.

25¢ per character from your credits: the 3D model, the rig and every animation; refunded if it fails. Free rigs don't cover characters. The job's billing shows it: held while it runs, then charged or refunded, and the CLI prints what it charged and the credits you have left.

npx afk-rig character knight.png -o knight.glb
# Done in 135 s: 592 animations, 15.2 MB, charged $0.25 from your API credits. $4.75 of credits left.

A clear, well-lit picture of one character, whole, on a plain background works best. The model's textures (colour, metal and roughness) are made to match the picture, and a first request after a quiet spell can take up to 5 minutes while the GPU starts. With an MCP client, ask something like “make a rigged character from art/knight.png”. More in our image to rigged character API guide.

Body types#

Pass one as --type. afk.ai fits a skeleton made for it, weights the skin and adds every animation made for that skeleton: 932 across all types. afk-rig types <type> lists a type's animations.

Humanoids rigged by afk.ai
human592 clips

People, robots, zombies, anything on two legs. Fingers included.

Four-legged animals rigged by afk.ai
fox128 clips

Dogs, cats, foxes, wolves

Hoofed animals rigged by afk.ai
horse22 clips

Horses, deer, cows

Birds rigged by afk.ai
bird19 clips

Wings and two legs

Dragons rigged by afk.ai
dragon20 clips

Wings and four legs

Dinosaurs and kaiju rigged by afk.ai
kaiju18 clips

Upright, with a tail

Spiders and insects rigged by afk.ai
spider18 clips

Six or eight legs, no wings

Snakes rigged by afk.ai
snake15 clips

No legs, one long spine

Fish rigged by afk.ai
fish16 clips

Fish, sharks, whales

insect14 clips

Wasps, bees, dragonflies

kangaroo12 clips

Hops on big back legs

frog13 clips

Frogs and toads

turtle14 clips

Turtles and tortoises

ghost13 clips

Floats, no legs

object18 clips

Boxes, flags, items

CLI#

Run it with npx afk-rig, or install it globally with npm i -g afk-rig. Progress goes to stderr and the path of the file written to stdout, so it composes in scripts.

commandwhat it does
afk-rig <model> [options]Rig a model and write the rigged .glb
afk-rig character <image> [options]Make a rigged, animated character from a picture and write the .glb (25¢)
afk-rig status <rig id>A rig's status
afk-rig download <rig id> -o <file>Download a finished rig (for 24 hours)
afk-rig accountFree rigs left this month, your plan's monthly credit, and API credits
afk-rig types [type]Body types, and a type's animations
afk-rig mcpRun as an MCP server on stdio

Options

-t, --type <type>What the model is: human (default) or another body type
-a, --animations <list>all (default), none, or animation names separated by commas
--facing <degrees>auto (default), 0, 90, 180 or 270: how the model is turned about its up axis
-o, --out <file>Default: <model or image>.rigged.glb next to it
--no-waitStart the rig, print its id and exit
--jsonPrint JSON

Exit codes

0Rigged; the path of the file written is on stdout
3Out of free rigs and credits
1Anything else (the message is on stderr)

Node.js#

The same package is a typed client: import { AfkRig } from 'afk-rig'. new AfkRig() reads AFK_API_KEY, or pass { apiKey }.

methodreturns
rig(model, options)Upload, wait and download in one call; writes options.output if given. Resolves to { job, glb }
startRig(model, options)Upload and return the queued job. Sends an Idempotency-Key, so a retried upload never starts a second rig
character(image, options)A picture in, the rigged character out: like rig(), resolves to { job, glb }
startCharacter(image, options)Upload a picture and return the queued job; then waitForRig and downloadRig as for a rig
getRig(id)The job as it is now
waitForRig(id, { onUpdate })Poll until it succeeds; throws if it fails
downloadRig(id)The rigged .glb as a Uint8Array
account()Free rigs left, credits, limits and recent rigs
types()Body types with their animations

One step at a time

rig.mjs
import { AfkRig } from 'afk-rig'

const afk = new AfkRig()

const started = await afk.startRig('fox.glb', { type: 'fox', facing: 'auto' })
// { id: 'rig_…', status: 'queued', billing: { charge: 'credits', state: 'held', … } }

const done = await afk.waitForRig(started.id, {
  onUpdate: (job) => console.log(job.status, job.stage), // rigging skeleton, rigging fit, …
})

const glb = await afk.downloadRig(done.id) // Uint8Array, for 24 hours

Errors are AfkRigErrors with the HTTP status, a code from the table below and, when rate limited, retryAfter in seconds.

MCP server#

npx -y afk-rig mcp runs it as an MCP server on stdio, so Claude Code, Cursor, Windsurf, Claude Desktop and other MCP clients can rig the models they make. Give it AFK_API_KEY in its environment.

claude code
claude mcp add afk-rig -e AFK_API_KEY=afk_... -- npx -y afk-rig mcp
mcp.json (cursor, windsurf, claude desktop)
{
  "mcpServers": {
    "afk-rig": {
      "command": "npx",
      "args": ["-y", "afk-rig", "mcp"],
      "env": { "AFK_API_KEY": "afk_..." }
    }
  }
}

Tools

rig_modelRigs a model file and writes the .glb next to it
image_to_characterMakes a rigged, animated character from a picture and writes the .glb next to it
get_accountFree rigs left this month, your plan's monthly credit and API credits
list_body_typesThe body types and their animations
rig_statusA rig's status, by id

Rig lifecycle#

A rig is an asynchronous job. Upload the model and you get its id at once; it moves through these statuses, and the CLI and client poll it for you.

queuedriggingexportingsucceededorfailed
stage while rigging: prepare → skeleton (→ retry) → fit → weights → skin
stage while exporting: animations

billing.state is held while a paid rig runs, charged once the file is ready and refunded if it fails, so a failed rig costs nothing. billing.charge says how it was paid: free, rerig, credits or character. A character from a picture is generating (its 3D model being made) before it's rigging. A finished job, as afk-rig status <id> --json prints it:

rig job
{
  "id": "rig_Xq3v9KfL2mTz8RbA1cWd",
  "status": "succeeded",
  "stage": null,
  "type": "human",
  "file": "knight.glb",
  "animations": "all",
  "facing": null,
  "created_at": "2026-10-26T17:02:11Z",
  "finished_at": "2026-10-26T17:03:35Z",
  "billing": { "charge": "credits", "amount_usd": "0.05", "state": "charged" },
  "error": null,
  "result": {
    "download_url": "https://…/v1/rigs/rig_Xq3v9KfL2mTz8RbA1cWd/model.glb",
    "bytes": 7412032,
    "animations": 592,
    "expires_at": "2026-10-27T17:03:35Z"
  }
}

Errors#

Requests the API turns down come back with an HTTP status and a code; nothing is charged for them.

statuscodemeaning
401missing_api_keyNo key was sent. Set AFK_API_KEY.
401invalid_api_keyThe key is wrong or was revoked. Make a new one on your account page.
402insufficient_creditsNo free rigs left this month, no plan credit left, and not enough credits. A character always needs credits, free rigs or not: 25¢ per character from your credits: the 3D model, the rig and every animation; refunded if it fails. The CLI exits with 3.
400bad_type, bad_facing, unknown_animationAn option isn't one the API knows. afk-rig types lists the types and animations.
400missing_imageA character was asked for without a picture.
413too_largeThe file is over 200 MB, or its mesh is too detailed to rig (about 5 million vertices at most); for a character, the picture is over 20 MB.
415unsupported_formatNot a .glb, a .gltf with everything embedded, or an .fbx (for a character: not a PNG, JPEG or WebP).
422unreadable_modelThe file couldn't be read as a 3D model.
429rate_limitedToo many rigs running or started this hour, too many requests this minute, or one rig downloaded too often this hour (reason says which). Wait retry_after seconds; the CLI and client do for rigs and requests.
409not_readyDownloaded before the rig finished. Poll until its status is succeeded.
410expiredIts 24 hours to download are up. Rig it again (a re-rig is free).

When a rig fails

A job that was accepted but couldn't be rigged ends with status: "failed" and one of these in error.code. It isn't charged.

unriggableThe AI couldn't find a body to rig in the model.
content_not_allowedThe model didn't pass the adult-content check every rig on afk.ai goes through.
rig_failedSomething went wrong on our GPU. Try again.
no_modelA character: no 3D model could be made from the picture. Try a clearer picture of one whole character.

Limits#

Input.glb, .gltf (with its buffers and textures embedded) or .fbx. Draco- and meshopt-compressed meshes aren't supported yet.
Model sizeFiles up to 200 MB, textures included, with up to about 5 million vertices
PicturesFor characters: PNG, JPEG or WebP, up to 20 MB, one character, whole, on a plain background. Characters count toward the same concurrency and rate limits as rigs.
Concurrency2 rigs running at once per account; the CLI waits for a slot
Rate100 rigs started per hour
Requests120 a minute per account for status, account and downloads
Without a key60 requests a minute per IP address: body types, and requests with a missing or wrong key
DownloadsEach rig's .glb 20 times an hour
ResultsDownloadable for 24 hours after the rig finishes
OutputglTF binary (.glb) with the skeleton, skin weights and animation clips. Textures and materials come through as they were. Imports into Unity (glTFast), Unreal, Godot, Blender and three.js.
Rigged inputRigged again in the pose it's shown in; its old skeleton and animations are replaced
LicenseYour model stays yours. Skeletons and animations are CC0, commercial use included.

Pricing#

5¢ a rig, flat. A rig is the whole output: skeleton, skin weights and every animation for the body type. A character made from a picture is 25¢. There's no charge per animation and no subscription.

per rig$0.05 from prepaid credits
free3 rigs a month, shared with afk.ai/rig
with the Pro Pass$10 of credits added with the 1 Year Pro Pass ($29 once, at afk.ai/pricing), yours to keep; the 30 Day Pro Pass comes with none. Members with an earlier Lifetime, or Lifetime from the phone app, get $10 of rigs a month (200) instead, after the free ones, before your credits
re-rigsThe same model again that month (another type, facing, or a retry): 3 more, free
failed rigs$0: the price is held when a rig starts and taken only once the file is ready
character from a picture25¢ per character from your credits: the 3D model, the rig and every animation; refunded if it fails. Free rigs don't cover characters
top-upsFrom $5 (100 rigs) on your account page; credits never expire

What a month costs

rigs / monthyou payanimations
3$0.00All of them, on every rig
100$4.85All of them, on every rig
1,000$49.85All of them, on every rig
10,000$499.85All of them, on every rig

Compared with other rigging APIs#

The lowest pay-as-you-go price of any rigging API we found. Published API prices, with credits turned into dollars across each provider's regular plans. Ludo.ai is cheaper for a bare rig if you pay for a year upfront; a humanoid with ten animations costs less here than through any other API we priced. The math is in our auto-rigging API pricing comparison.

apiper riganimationsbody typesbilling
afk.ai5¢All of them, included (900+ across body types)Humanoids, animals, birds, dragons, dinosaurs, spiders, snakes, fish and morePrepaid credits, no subscription
Ludo.ai3¢ to 5¢1.5¢ to 2.5¢ eachAny shape; preset animations are for humanoidsPro or Studio subscription ($50 a month, or $420 or $3,600 a year)
Meshy6.25¢ to 10¢3.75¢ to 6¢ each (a walk and a run come with the rig)Humanoids onlyPaid plan, from $20 a month
Uthana15¢Priced separatelyHumanoidsPay as you go
Tripo25¢10¢ eachBipeds, quadrupeds, six- and eight-legged creatures, birds, snakes, sea creaturesPay as you go, from $1
Anything WorldCredit-based, see their pricingHas a rig-and-animate endpointHumanoids, quadrupeds, birds, fish and moreFree monthly allowance, then credits
MixamoFree, but no public API foundHumanoid libraryHumanoids onlyFree with an Adobe ID

Prices checked October 2026 from each provider's own pages, regular plans only (new-user offers left out): Ludo.ai, Meshy API, Meshy plans, Uthana, Tripo, Anything World, Mixamo FAQ. They change; check before you decide.

FAQ#

Is it the cheapest rigging API?

Pay as you go, yes: 5¢ a rig is the lowest price we found without a subscription (Uthana is 15¢ and Tripo 25¢). Ludo.ai's annual plans are cheaper per bare rig, at 3¢ to 3.5¢ with a year paid upfront, but its animations cost extra: a humanoid with ten animations is about 18¢ or more there and 5¢ here. The full comparison, with sources, is in our auto-rigging API pricing article.

Can I start from a picture instead of a 3D model?

Yes. Send a picture of a character and one call makes a textured 3D model from it and rigs it with every animation for its body type, in about 2 to 3 minutes. It's 25¢ per character from your credits: the 3D model, the rig and every animation; refunded if it fails. Free rigs don't cover characters. A clear picture of one character, whole, on a plain background works best. More in our image to rigged character API article.

What does a rig include?

Everything you need to animate the model: the skeleton, skin weights and every animation we have for its body type, in one GLB. There's no extra charge per animation. If the first result isn't right, you can re-rig the same model up to 3 more times for free.

How do the free rigs work?

Every account gets 3 free rigs a month, the same as on the website. After that, rigs come out of prepaid credits at 5¢ each. As on the website's free plan, a free rig has the free animations but not the gold ones. A rig paid from credits has them all, and so does every rig of an account with a paid afk.ai plan. Ask for a gold animation by name and the rig is paid from your credits, keeping your free rig.

Is there a subscription?

No. You top up credits when you need them, from $5, and nothing renews. Credits don't expire.

Does the Pro Pass include API credit?

The 1 Year Pro Pass ($29 once) does: it adds $10 to your API credits, which work like credits you buy and don't expire, even after the year. The 30 Day Pro Pass ($14) comes with none. Members with an earlier Lifetime, or Lifetime from the phone app, get $10 of API credit every month instead: 200 rigs, used after the free rigs and before your prepaid credits. That one is for rigs, not characters from pictures, starts again on the 1st and doesn't roll over. Your account page shows what's left.

How long does a rig take?

Usually about 1 to 2 minutes on our servers. The API is asynchronous: you upload the model, get an id back, and check on it until the rigged GLB is ready. The CLI does the waiting for you.

What do I send, and what do I get back?

Send a GLB, glTF or FBX and the body type. You get back a standard glTF binary (GLB) with the skeleton, skin weights and animations, which imports into Unity (with glTFast), Unreal, Godot, Blender and three.js.

Can my AI agent use it?

Yes. The afk-rig package is also an MCP server, so Claude Code, Cursor, Windsurf, Claude Desktop and other MCP clients get rigging as a tool. Agents that only have a shell can run the CLI.

Can I use the rigged models commercially?

Yes. Your model stays yours, and the animations are CC0 (public domain), so they can ship in commercial games and apps.

Where do I get an API key?

Sign in to afk.ai and create one on your account page, under API keys. The key is shown once, so store it somewhere safe; you can revoke it and make a new one at any time.

$ npx afk-rig --help3 free rigs a month, then 5¢ each.