Documentation
Connect an agent over MCP or call tools from your code. One API key and one credit balance cover every tool, and your first 300 credits are free.
How it works
Every tool runs as a job, the same way over MCP and over the REST API:
- 1
Start a job
Send the tool its input: a file, a public URL, or parameters such as a prompt. The response is the job.
- 2
Wait for it
Poll the job until its status is final. Over MCP, the tool call waits for you, up to 45 seconds at a time.
- 3
Use the results
Download the files in result.files, or read text outputs in chunks. Results are kept for 1 day on Free, 7 days on Pay as you go and 30 days with a monthly bundle.
Jobs are paid with prepaid credits, and a job that fails costs nothing. The details are in Jobs & files and Credits & prices.
Quickstart
1Create an API key
Sign in to the console with GitHub or an email link and create a key. Keys start with
Get an API keymcpb_and work for MCP and the REST API. The samples read it fromMCPBYTES_API_KEY.2Connect your agent
Add the MCPBytes server to Claude Code, or to any MCP client. Then ask your agent to use a tool: for example, to turn a sentence into an image.
Claude Code# Sign in with GitHub when prompted claude mcp add --transport http mcpbytes \ https://api.mcpbytes.com/mcp # Or use an API key claude mcp add --transport http mcpbytes \ https://api.mcpbytes.com/mcp \ --header "Authorization: Bearer $MCPBYTES_API_KEY"3Or call the REST API
Submit a tool's input and poll the job until its files are ready (REST API). To try a tool without writing code, use the console.
create-sprite.shcurl https://api.mcpbytes.com/v1/tools/create_pixel_sprite/jobs \ -H "Authorization: Bearer $MCPBYTES_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "options": {"description": "A forest ranger with a green hood and a brown satchel", "seed": 42}, "idempotency_key": "pixel-sprite-example-004" }'
Guides
- Connect over MCPAdd the MCPBytes server to your agent, pick a toolset, and let the agent upload files, run jobs and read results.
- REST APIAuthenticate, send a file, a URL or parameters, and retry safely with idempotency keys.
- Jobs & filesJob statuses, long-running jobs, canceling, downloads, reading text outputs and chaining one job into the next.
- Credits & pricesHow jobs are charged, when failed jobs are refunded, and every tool's price.
- Limits & errorsAccount and tool limits, the error format, HTTP errors and job errors, and how to handle them.
Tools
Each tool has its own reference: input, options, outputs, pricing, limits and errors, with samples for MCP and REST.
3D Models
- Create a 3D modelTurn a sentence into a textured 3D model you can drop into a viewer, a scene or a game engine.create_3d_model · From 50 credits
- Create a game assetCreate a rigged, animated game character from a description in one job: a textured model at your triangle budget, a skeleton and a standard set of clips, with checks and previews.create_game_asset · 250 credits per job
- Create a 3D model from an imageTurn one PNG or JPEG into a textured 3D model, with economy, high and max quality options.create_3d_model_from_image · From 30 credits
- Optimize a 3D modelRebuild a textured model at the triangle count you choose, with new textures that keep its look.optimize_3d_model · 60 credits per job
- Simplify a 3D modelReduce a model's triangle count while keeping its textures and shape.simplify_3d_model · From 10 credits
- Rig a 3D modelAdd a skeleton and skin weights to a static model, with structural checks, bend tests and a preview to judge them.rig_3d_model · 20 credits per job
- Animate a 3D modelAdd one animation clip to a rigged model: generated from a description for a humanoid, or a library motion for a four-legged animal, with motion checks and a preview.animate_3d_model · 20 credits per job
- Split a 3D model into partsSplit a 3D model into separate part meshes, with colliders and physics metadata.split_3d_model · From 20 credits
- Inspect a 3D modelCheck geometry, dimensions, materials and topology before splitting a model.inspect_3d_model · From 10 credits
Images
- Create an imageOne request returns a finished PNG, with a real transparent background when you ask for it.create_image · 20 credits per job
- Create a pixel spriteGenerate character sprite sheets, fixed-size frames and four-direction walking previews from a description and optional reference.create_pixel_sprite · From 20 credits
Utilities
- Get random numbersHardware-generated random integers, ready for your agent.get_random_numbers · 1 credit per job
- Run a fair drawWinners, or a shuffled order, from a list, with hardware randomness and a signed public receipt.run_draw · 10 credits per job
- Create a secretHardware randomness for locally saved secrets. Your agent gets a reference.get_random_bytes · 1 credit per job