{"version":1,"pages":[{"id":"VyLVI8ZCdw1WHumYZQak","title":"Overview - The Grid Docs","pathname":"/docs","siteSpaceId":"sitesp_sh0qj","description":"Start seeing real savings on your LLM costs. Sign up and integrate in <5 mins.","breadcrumbs":[{"label":"The Grid"}]},{"id":"Dujjgo9fT4IEujTMABEW","title":"Introduction","pathname":"/docs/start-here/introduction","siteSpaceId":"sitesp_sh0qj","description":"A quick orientation to The Grid: what it does, what you get out of it, and how it fits into your stack.","breadcrumbs":[{"label":"The Grid"},{"label":"Start here"}]},{"id":"7o91sNcYiIy8CCawE297","title":"Choose an instrument","pathname":"/docs/start-here/choose-an-instrument","siteSpaceId":"sitesp_sh0qj","description":"Pick the right task type (Text, Code, or Agent) and tier (Standard, Prime, or Max) for your workload.","breadcrumbs":[{"label":"The Grid"},{"label":"Start here"}]},{"id":"T5OqnY0L4NMcuhraJ0mG","title":"Quickstart","pathname":"/docs/start-here/quickstart","siteSpaceId":"sitesp_sh0qj","description":"Get from sign-up to your first API call in three steps.","breadcrumbs":[{"label":"The Grid"},{"label":"Start here"}]},{"id":"DopHJEgaEZbXi9J8TRkh","title":"Programmatic onboarding","pathname":"/docs/start-here/programmatic-onboarding","siteSpaceId":"sitesp_sh0qj","description":"Onboard an agent or integration to The Grid over HTTP. Log in with the OAuth device flow, create a consumption API key, and make your first inference call, with optional trading setup.","breadcrumbs":[{"label":"The Grid"},{"label":"Start here"}]},{"id":"6qxub9vMSDTwl6wliJ4r","title":"Auto Mode and Advanced Mode","pathname":"/docs/start-here/auto-mode-vs-advanced-mode","siteSpaceId":"sitesp_sh0qj","description":"Two ways to buy inference on The Grid. Same Consumption API, same endpoint, same errors. The difference is who places the orders behind the scenes.","breadcrumbs":[{"label":"The Grid"},{"label":"Start here"}]},{"id":"u4M03Z89z2ASXBXIihVF","title":"Benefits of consuming market priced inference","pathname":"/docs/benefits/benefits","siteSpaceId":"sitesp_sh0qj","description":"Why buying inference from a live market beats paying rate-card on a single vendor.","breadcrumbs":[{"label":"The Grid"},{"label":"Benefits"}]},{"id":"lGZrkAZ9049JqCO1lNlj","title":"Current instruments","pathname":"/docs/instrument-specifications/current-instruments","siteSpaceId":"sitesp_sh0qj","description":"Compare live Text, Code, and Agent instruments by their associated specifications, including quality, context windows, and speed.","breadcrumbs":[{"label":"The Grid"},{"label":"Instrument specifications"}]},{"id":"oVcUwtDUpqvdzaLVdW6P","title":"How specifications evolve","pathname":"/docs/instrument-specifications/how-specifications-evolve","siteSpaceId":"sitesp_sh0qj","description":"The cadence and governance behind threshold changes. When we revise specs, how much notice you get, and how supplier rollover works so your code keeps running.","breadcrumbs":[{"label":"The Grid"},{"label":"Instrument specifications"}]},{"id":"WoFPYF1yqHl1kU5VhQo4","title":"Integrations","pathname":"/docs/integrations-and-best-practices/integrations","siteSpaceId":"sitesp_sh0qj","description":"Set up The Grid in IDEs, coding agents, routers, and agent frameworks.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"rsIqJI8ud7lzp3oJUuve","title":"AgentSea | Launch AI agents wired to The Grid","pathname":"/docs/integrations-and-best-practices/integrations/agentsea","siteSpaceId":"sitesp_sh0qj","description":"Launch a supported AI agent locally or on a fresh cloud VM with one command, pre-wired to The Grid. Install the agentsea CLI, add your key, and connect.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"kUT9Ww9AHEhEkrx0o8Vm","title":"Custom Agent Integration with The Grid | OpenAI API Setup","pathname":"/docs/integrations-and-best-practices/integrations/general-agent-skill","siteSpaceId":"sitesp_sh0qj","description":"Connect any custom agent to The Grid with the OpenAI API. Set the base URL, add a consumption key, choose an instrument, and handle 402 retries.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"Be6LEp77FjCbvw8ShvUz","title":"Cline Integration with The Grid | OpenAI API Setup","pathname":"/docs/integrations-and-best-practices/integrations/cline","siteSpaceId":"sitesp_sh0qj","description":"Connect Cline to The Grid with the OpenAI-compatible API. Set the base URL, add your consumption key, choose an instrument, and start coding.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"e81JQbU9ds5S5c1anZjg","title":"Continue Integration with The Grid | config.yaml Setup","pathname":"/docs/integrations-and-best-practices/integrations/continue","siteSpaceId":"sitesp_sh0qj","description":"Set up Continue with The Grid in config.yaml. Add your API key, point to the OpenAI-compatible endpoint, and map models to chat, edit, and autocomplete.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"yRz8bhubboR4kkwpFBkV","title":"Cursor Integration with The Grid | Custom Provider Setup","pathname":"/docs/integrations-and-best-practices/integrations/cursor","siteSpaceId":"sitesp_sh0qj","description":"Use The Grid in Cursor by overriding the OpenAI base URL, adding your API key, and registering Grid instruments as custom chat models.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"0CPucCupZSfAe7tMYZSy","title":"Claude Code Integration with The Grid | Anthropic API Setup","pathname":"/docs/integrations-and-best-practices/integrations/claude-code","siteSpaceId":"sitesp_sh0qj","description":"Use Claude Code with The Grid through the Anthropic Messages API. Set environment variables, map model aliases, and run Claude Code normally.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"PNGD0ezfiEmPisOBVZWT","title":"Kilo Code Integration with The Grid | VS Code and CLI Setup","pathname":"/docs/integrations-and-best-practices/integrations/kilocode","siteSpaceId":"sitesp_sh0qj","description":"Connect Kilo Code to The Grid in VS Code or the CLI. Add your consumption key, select The Grid, and choose instruments for each mode.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"hfRQtEbmjLuQDo3L8ZXt","title":"OpenCode Integration with The Grid | Provider Setup","pathname":"/docs/integrations-and-best-practices/integrations/opencode","siteSpaceId":"sitesp_sh0qj","description":"Connect OpenCode to The Grid with opencode auth /connect. Add your consumption key, choose model and small_model, and run the agent loop.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"ct4D24KdGIElyaZmecKd","title":"OpenClaw Integration with The Grid | Custom Backend Setup","pathname":"/docs/integrations-and-best-practices/integrations/openclaw","siteSpaceId":"sitesp_sh0qj","description":"Set up OpenClaw with The Grid as a custom OpenAI-compatible backend. Add a provider, allowlist instruments, and restart the gateway.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"x2zmCfGbWnFmln45d0Z1","title":"CrewAI Integration with The Grid | Agent LLM Setup","pathname":"/docs/integrations-and-best-practices/integrations/crewai","siteSpaceId":"sitesp_sh0qj","description":"Connect CrewAI to The Grid with the LLM class. Use the OpenAI-compatible endpoint, assign Grid models to agents, and tier by role.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"F6jAvvnWiJ3s7gY1fgdb","title":"Deep Agents Integration with The Grid | LangChain Setup","pathname":"/docs/integrations-and-best-practices/integrations/deepagents","siteSpaceId":"sitesp_sh0qj","description":"Use Deep Agents with The Grid through ChatOpenAI. Point to the OpenAI-compatible endpoint and set use_responses_api=False.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"lCYvECiv9yl3QYBfhMMP","title":"DeerFlow Integration with The Grid | config.yaml Setup","pathname":"/docs/integrations-and-best-practices/integrations/deerflow","siteSpaceId":"sitesp_sh0qj","description":"Set up DeerFlow with The Grid in config.yaml. Add ChatOpenAI models, point to the Grid endpoint, and set use_responses_api to false.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"ScZ1neBECzGtCtXbRGeu","title":"Hermes Agent Integration with The Grid | Provider Setup","pathname":"/docs/integrations-and-best-practices/integrations/hermes-agent","siteSpaceId":"sitesp_sh0qj","description":"Connect Hermes Agent to The Grid as a custom provider. Update config.yaml, set your API key, patch redirects, and route agent runs.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"fCo51Q9p08iHvWKeVFbH","title":"LiteLLM Integration with The Grid | SDK and Proxy Setup","pathname":"/docs/integrations-and-best-practices/integrations/litellm","siteSpaceId":"sitesp_sh0qj","description":"Use LiteLLM with The Grid as an OpenAI-compatible backend. Connect through the Python SDK or proxy and route downstream tools.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"waJjcDIE5P9j2DNUZBKA","title":"ClawRouter with The Grid | Supported Routing Options","pathname":"/docs/integrations-and-best-practices/integrations/clawrouter","siteSpaceId":"sitesp_sh0qj","description":"ClawRouter cannot route to The Grid as a backend; here's what works instead in OpenClaw.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"rMkcsQK32ylGZYihuQtQ","title":"Manifest Integration with The Grid | Custom Backend Setup","pathname":"/docs/integrations-and-best-practices/integrations/manifest","siteSpaceId":"sitesp_sh0qj","description":"Connect Manifest to The Grid as a custom OpenAI-compatible backend. Add Grid models, map them to routing tiers, and automate selection.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"r6WDUiBJxFyBn6oeHeYt","title":"Migrating from OpenAI","pathname":"/docs/integrations-and-best-practices/migrating-from-openai","siteSpaceId":"sitesp_sh0qj","description":"Switch from the OpenAI API to The Grid by changing three values in your existing code, base URL, API key, and model string. Your SDK, request body, and response shape stay the same.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"AZxDOG4CkmLNBJLMqwsG","title":"Migrating from Anthropic","pathname":"/docs/integrations-and-best-practices/migrating-from-anthropic","siteSpaceId":"sitesp_sh0qj","description":"Move an Anthropic-based application to The Grid. Keep the Anthropic SDK against our Messages API beta, or swap to the OpenAI SDK against the Consumption API.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"kn1dUHd0DVxNAyfcdDGo","title":"Any OpenAI-compatible tool","pathname":"/docs/integrations-and-best-practices/any-openai-compatible-tool","siteSpaceId":"sitesp_sh0qj","description":"Any tool that targets OpenAI's Chat Completions API works with The Grid. Set the base URL, API key, and model. Tools built on OpenAI's Responses API (Codex and similar) don't work yet.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"El2lX5soOqBDnqAZ2Mgv","title":"Routing patterns","pathname":"/docs/integrations-and-best-practices/routing-patterns","siteSpaceId":"sitesp_sh0qj","description":"How to allocate workloads across our nine instruments. Default to Prime, escalate to Max for hard tasks, demote to Standard for volume.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"2gruaetmIMX59YW9zLaT","title":"Troubleshooting","pathname":"/docs/integrations-and-best-practices/troubleshooting","siteSpaceId":"sitesp_sh0qj","description":"Common errors when integrating with The Grid and how to fix them. Auth, base URLs, instrument strings, balance, and the \"is it me or The Grid\" diagnostic flow.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"jE5b02uKOtAGidHybS8m","title":"Best practices for development","pathname":"/docs/integrations-and-best-practices/best-practices","siteSpaceId":"sitesp_sh0qj","description":"Production patterns for The Grid. Tier routing, two-balance accounting, retry-on-retryable, streaming, FIFO consumption, Auto Mode limits, instrument pinning.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"}]},{"id":"0jV3RsODvXTReGEd4M4T","title":"Overview","pathname":"/docs/api-reference/api-reference","siteSpaceId":"sitesp_sh0qj","description":"Complete API reference for The Grid's market-priced AI inference platform. Covers the Consumption API for OpenAI- and Anthropic-compatible inference, the Trading API for market data and orders, and th","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"aSjuAvviGNO1b7dweGVM","title":"Authentication","pathname":"/docs/api-reference/authentication","siteSpaceId":"sitesp_sh0qj","description":"The Grid issues two types of API keys plus OAuth access tokens for programmatic account control. This page covers generation, use, rotation, and the agent onboarding path.","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"Ukz9WGpMx9BtkzITkeCO","title":"Consumption API","pathname":"/docs/api-reference/consumption-api","siteSpaceId":"sitesp_sh0qj","description":"The Consumption API is what you call to run inference. Two surfaces (OpenAI Chat Completions and Anthropic Messages) sit in front of the same routing engine.","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"Ru2UZm2iCTK3y8jBdbMQ","title":"Trading API","pathname":"/docs/api-reference/trading-api","siteSpaceId":"sitesp_sh0qj","description":"Everything beyond inference. Read instrument specs, market data, balances, and past trades, or place limit orders yourself instead of letting Auto Mode buy on your behalf.","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"BivERhJIdyNNX0C08fqE","title":"Platform API","pathname":"/docs/api-reference/platform-api","siteSpaceId":"sitesp_sh0qj","description":"Reference for The Grid Platform API at platform.api.thegrid.ai. OAuth 2.0 device login for agents, programmatic consumption and trading key management, and account settings endpoints with full request","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"CGYrUdVygCZfwULQrCbc","title":"Errors and rate limits","pathname":"/docs/api-reference/errors-and-rate-limits","siteSpaceId":"sitesp_sh0qj","description":"How both APIs report failure, which errors are retryable, and how rate limits behave on each key. Use this page when your client hits something other than a 200.","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"nPjlZiq0mVoHVUuRWUvA","title":"Request routing and redirects","pathname":"/docs/api-reference/request-routing-and-redirects","siteSpaceId":"sitesp_sh0qj","description":"How a request to the Consumption API gets to the supplier fulfilling your inference, and which clients need configuration to follow the routing redirect.","breadcrumbs":[{"label":"The Grid"},{"label":"API reference"}]},{"id":"F9NhKRQlLBgmzMvD0oBJ","title":"Order book and matching","pathname":"/docs/concepts/order-book-and-matching","siteSpaceId":"sitesp_sh0qj","description":"A deep dive into the market mechanisms powering The Grid","breadcrumbs":[{"label":"The Grid"},{"label":"Concepts"}]},{"id":"rjQ8tAeELW0AMxZViDv1","title":"Instruments as commodities","pathname":"/docs/concepts/instruments-as-commodities","siteSpaceId":"sitesp_sh0qj","description":"Why we standardize inference into instruments, and what that unlocks for buyers.","breadcrumbs":[{"label":"The Grid"},{"label":"Concepts"}]},{"id":"BNvpoZDootDLcYb5xjZY","title":"Data handling and privacy","pathname":"/docs/data-handling-and-privacy/data-handling-and-privacy","siteSpaceId":"sitesp_sh0qj","description":"What we store, what we do not, and how your prompts and credentials are handled.","breadcrumbs":[{"label":"The Grid"},{"label":"Data handling and privacy"}]}]}