TokenCraft is ArtCraft’s open-source AI provider aggregator. Route image, video, audio, language model, and 3D requests through one gateway. Compare prices, configure routing, and trace requests across providers. The Rust gateway handles accounts, project keys, quotes, budgets, asynchronous requests, and artifact delivery. Providers connect through versioned HTTP bindings and operator-reviewed catalog entries.
The ArtCraft reference catalog describes supported provider plugins, model capabilities, and supplier list prices for each snapshot. A self-hosted gateway loads the operator's own catalog. Start with your own models or import selected ArtCraft presets with local bindings and rates. Catalog setup
TokenCraft Operations is the operator console for self-hosted cells, provider plugins, compute targets, queues and delivery.
Use the compute plugin catalog to connect your workloads on AWS, Azure, Google Cloud, RunPod, Render, or a server you operate.
Follow Generate your first image locally for an isolated fixture, a checksum-verified PNG, and curl, Rust, and TypeScript examples.
Use a native package to run the bundled launcher, or use the steps below to build and run from source.
Install Rust using the toolchain in rust-toolchain.toml and the PostgreSQL 17 server tools. Put the server's bin directory or its pg_config on PATH.
cargo run --locked -p tokencraft -- doctor --fixture
cargo run --locked -p tokencraft -- dev --fixture
curl -fsS http://localhost:4000/ready
curl -fsS http://localhost:4000/v1/catalog/modelsThe launcher starts a private PostgreSQL cluster, applies migrations, starts the gateway, and runs the bundled synthetic connector. Commercial providers are installed as separate services and appear after their bindings and offers are added to the deployment catalog. The example generates synthetic PNGs without provider credentials, Python, or Node.js. Press Ctrl+C to stop the stack.
- Set up the gateway and submit an image
- Start with your own catalog and provider bindings
- Build and run the browser console
- Deploy your own gateway behind HTTPS
- Configure optional prepaid credits and sandbox checkout
- Browse all documentation
- Report a security issue
Open the interactive design source. The console build serves it at /design/, with shareable links such as /design/#overview/caller. The diagrams identify observed code and proposed architecture.
Follow the API schema walkthrough and use the console’s /docs/api for a searchable reference with one page per operation.