Overview - The Grid Docs
Start seeing real savings on your LLM costs. Sign up and integrate in <5 mins.
The Grid is a spot market for AI inference, where you can both buy tokens and sell back the ones you won't use. Instead of picking a vendor and accepting their rate card, you pick a Grid instrument: usually a task type (text, code, or agent) and a quality tier (Standard, Prime, or Max), or a lab latest market such as gpt-sol-latest or claude-opus-latest. We route your request to a qualifying model from competing suppliers at a competitive market price. We're compatible with OpenAI Chat Completions and Anthropic Messages formats. Live pricing for each instrument is in the app at thegrid.ai/pricing.
Quick Links
Introduction to The Grid, plus a 5-minute quickstart from sign-up to first call
Lower, competitive token costs, quality enforced inference delivery, without any vendor lock-in
The instruments live on The Grid today, including tiered specs and lab latest markets
Sell unused tokens from your Trading account back on the order book to control your spend
Switch from your existing provider by changing three lines of code
Use The Grid with your favorite AI tools and agent harnesses
Machine-readable surfaces for agents and tools
We provide the following surfaces for programmatic discovery and automated setup by agents and agentic tools:
Documentation MCP server: connect an MCP-compatible agent to
https://thegrid.ai/docs/~gitbook/mcp. It can search the docs, fetch a page as Markdown, answer a question with source links, and send documentation feedback. Use it when an agent needs the current contract instead of copying API details into a prompt.Plain-text documentation:
https://thegrid.ai/docs/llms.txtis the full index. Append.mdto a documentation page URL to fetch that page as Markdown. These require no MCP client.Platform API: agents can authenticate with the OAuth 2.0 device flow, create and revoke consumption and trading keys, and manage account settings through
https://platform.api.thegrid.ai/v1. Start with Programmatic onboarding, then use the Platform API reference.Instrument discovery: authenticated agents can call
GET https://api.thegrid.ai/v1/modelsto list the Grid instruments available to their account and inspect metadata such as context length, supported parameters, and per-request limits. Use each returnedidas the model value for inference requests. See the Consumption API reference.Integration guides: see Integrations for setup with tools like Cline, Continue, Claude Code, Kilo Code, OpenCode, and harnesses like OpenClaw, CrewAI, Deep Agents, DeerFlow, and Hermes.
Support and troubleshooting
Questions, integration issues, or feedback: support@thegrid.ai. For common questions (account setup, billing, instrument selection, error codes), start with Migration and best practices → Troubleshooting.
Last updated
Was this helpful?