Quick start#
From sign-in to a rigged model in three steps. You need Node.js 18.17 or newer.
- 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. - 02
Put it in your environment
shellexport AFK_API_KEY=afk_... # from afk.ai/account#api - 03
Rig a model
npx afk-rig knight.glb --type human -o knight.rigged.glbRigs 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.

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

Dogs, cats, foxes, wolves

Horses, deer, cows

Wings and two legs

Wings and four legs

Upright, with a tail

Six or eight legs, no wings

No legs, one long spine

Fish, sharks, whales
Wasps, bees, dragonflies
Hops on big back legs
Frogs and toads
Turtles and tortoises
Floats, no legs
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.
| command | what 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 account | Free 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 mcp | Run 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-wait | Start the rig, print its id and exit |
| --json | Print JSON |
Exit codes
| 0 | Rigged; the path of the file written is on stdout |
|---|---|
| 3 | Out of free rigs and credits |
| 1 | Anything 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 }.
| method | returns |
|---|---|
| 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
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 hoursErrors 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 mcp add afk-rig -e AFK_API_KEY=afk_... -- npx -y afk-rig mcp{
"mcpServers": {
"afk-rig": {
"command": "npx",
"args": ["-y", "afk-rig", "mcp"],
"env": { "AFK_API_KEY": "afk_..." }
}
}
}Tools
| rig_model | Rigs a model file and writes the .glb next to it |
|---|---|
| image_to_character | Makes a rigged, animated character from a picture and writes the .glb next to it |
| get_account | Free rigs left this month, your plan's monthly credit and API credits |
| list_body_types | The body types and their animations |
| rig_status | A 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.
stage while rigging: prepare → skeleton (→ retry) → fit → weights → skinstage while exporting: animationsbilling.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:
{
"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.
| status | code | meaning |
|---|---|---|
| 401 | missing_api_key | No key was sent. Set AFK_API_KEY. |
| 401 | invalid_api_key | The key is wrong or was revoked. Make a new one on your account page. |
| 402 | insufficient_credits | No 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. |
| 400 | bad_type, bad_facing, unknown_animation | An option isn't one the API knows. afk-rig types lists the types and animations. |
| 400 | missing_image | A character was asked for without a picture. |
| 413 | too_large | The 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. |
| 415 | unsupported_format | Not a .glb, a .gltf with everything embedded, or an .fbx (for a character: not a PNG, JPEG or WebP). |
| 422 | unreadable_model | The file couldn't be read as a 3D model. |
| 429 | rate_limited | Too 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. |
| 409 | not_ready | Downloaded before the rig finished. Poll until its status is succeeded. |
| 410 | expired | Its 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.
| unriggable | The AI couldn't find a body to rig in the model. |
|---|---|
| content_not_allowed | The model didn't pass the adult-content check every rig on afk.ai goes through. |
| rig_failed | Something went wrong on our GPU. Try again. |
| no_model | A 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 size | Files up to 200 MB, textures included, with up to about 5 million vertices |
| Pictures | For 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. |
| Concurrency | 2 rigs running at once per account; the CLI waits for a slot |
| Rate | 100 rigs started per hour |
| Requests | 120 a minute per account for status, account and downloads |
| Without a key | 60 requests a minute per IP address: body types, and requests with a missing or wrong key |
| Downloads | Each rig's .glb 20 times an hour |
| Results | Downloadable for 24 hours after the rig finishes |
| Output | glTF 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 input | Rigged again in the pose it's shown in; its old skeleton and animations are replaced |
| License | Your 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 |
|---|---|
| free | 3 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-rigs | The 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 picture | 25¢ per character from your credits: the 3D model, the rig and every animation; refunded if it fails. Free rigs don't cover characters |
| top-ups | From $5 (100 rigs) on your account page; credits never expire |
What a month costs
| rigs / month | you pay | animations |
|---|---|---|
| 3 | $0.00 | All of them, on every rig |
| 100 | $4.85 | All of them, on every rig |
| 1,000 | $49.85 | All of them, on every rig |
| 10,000 | $499.85 | All 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.
| api | per rig | animations | body types | billing |
|---|---|---|---|---|
| afk.ai | 5¢ | All of them, included (900+ across body types) | Humanoids, animals, birds, dragons, dinosaurs, spiders, snakes, fish and more | Prepaid credits, no subscription |
| Ludo.ai | 3¢ to 5¢ | 1.5¢ to 2.5¢ each | Any shape; preset animations are for humanoids | Pro or Studio subscription ($50 a month, or $420 or $3,600 a year) |
| Meshy | 6.25¢ to 10¢ | 3.75¢ to 6¢ each (a walk and a run come with the rig) | Humanoids only | Paid plan, from $20 a month |
| Uthana | 15¢ | Priced separately | Humanoids | Pay as you go |
| Tripo | 25¢ | 10¢ each | Bipeds, quadrupeds, six- and eight-legged creatures, birds, snakes, sea creatures | Pay as you go, from $1 |
| Anything World | Credit-based, see their pricing | Has a rig-and-animate endpoint | Humanoids, quadrupeds, birds, fish and more | Free monthly allowance, then credits |
| Mixamo | Free, but no public API found | Humanoid library | Humanoids only | Free 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.