{"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":"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":"kUT9Ww9AHEhEkrx0o8Vm","title":"General Agent Skill","pathname":"/docs/integrations-and-best-practices/integrations/general-agent-skill","siteSpaceId":"sitesp_sh0qj","description":"A drop-in pattern for any custom agent harness. Point your OpenAI client at The Grid, pick an instrument, handle 402 retries, and you're live.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"Be6LEp77FjCbvw8ShvUz","title":"Cline","pathname":"/docs/integrations-and-best-practices/integrations/cline","siteSpaceId":"sitesp_sh0qj","description":"Configure Cline's OpenAI Compatible provider to run on The Grid in three fields.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"e81JQbU9ds5S5c1anZjg","title":"Continue","pathname":"/docs/integrations-and-best-practices/integrations/continue","siteSpaceId":"sitesp_sh0qj","description":"Wire The Grid into Continue's config.yaml and assign instruments to chat, edit, apply, and autocomplete roles.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"yRz8bhubboR4kkwpFBkV","title":"Cursor","pathname":"/docs/integrations-and-best-practices/integrations/cursor","siteSpaceId":"sitesp_sh0qj","description":"Point Cursor's chat at The Grid by overriding the OpenAI Base URL and adding instrument names as custom models.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"0CPucCupZSfAe7tMYZSy","title":"Claude Code","pathname":"/docs/integrations-and-best-practices/integrations/claude-code","siteSpaceId":"sitesp_sh0qj","description":"Point Claude Code at The Grid's beta Anthropic Messages API with two environment variables and a model alias map.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"PNGD0ezfiEmPisOBVZWT","title":"Kilo Code","pathname":"/docs/integrations-and-best-practices/integrations/kilocode","siteSpaceId":"sitesp_sh0qj","description":"Connect Kilo Code to The Grid in VS Code through the gear icon, or in the CLI with /connect.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"hfRQtEbmjLuQDo3L8ZXt","title":"OpenCode","pathname":"/docs/integrations-and-best-practices/integrations/opencode","siteSpaceId":"sitesp_sh0qj","description":"Connect OpenCode to The Grid with opencode auth /connect and select The Grid from the provider list.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"ct4D24KdGIElyaZmecKd","title":"OpenClaw","pathname":"/docs/integrations-and-best-practices/integrations/openclaw","siteSpaceId":"sitesp_sh0qj","description":"Add The Grid as a custom OpenAI-compatible provider in OpenClaw's openclaw.json and route agent traffic through Grid instruments.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"x2zmCfGbWnFmln45d0Z1","title":"CrewAI","pathname":"/docs/integrations-and-best-practices/integrations/crewai","siteSpaceId":"sitesp_sh0qj","description":"Build a CrewAI LLM instance pointed at The Grid and pass it to each Agent. One key, one endpoint, per-agent tiering.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"F6jAvvnWiJ3s7gY1fgdb","title":"Deep Agents","pathname":"/docs/integrations-and-best-practices/integrations/deepagents","siteSpaceId":"sitesp_sh0qj","description":"Wire The Grid into LangChain's create_deep_agent with ChatOpenAI and use_responses_api=False.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"lCYvECiv9yl3QYBfhMMP","title":"DeerFlow","pathname":"/docs/integrations-and-best-practices/integrations/deerflow","siteSpaceId":"sitesp_sh0qj","description":"Add Grid instruments to DeerFlow's config.yaml as ChatOpenAI models with use_responses_api set to false.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"ScZ1neBECzGtCtXbRGeu","title":"Hermes Agent","pathname":"/docs/integrations-and-best-practices/integrations/hermes-agent","siteSpaceId":"sitesp_sh0qj","description":"Configure The Grid as a custom OpenAI-compatible provider in Hermes Agent's config.yaml or via the hermes model wizard.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"fCo51Q9p08iHvWKeVFbH","title":"LiteLLM","pathname":"/docs/integrations-and-best-practices/integrations/litellm","siteSpaceId":"sitesp_sh0qj","description":"Run LiteLLM as a Python SDK or standalone proxy with The Grid as an OpenAI-compatible backend. One config, every downstream tool.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"waJjcDIE5P9j2DNUZBKA","title":"ClawRouter","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","pathname":"/docs/integrations-and-best-practices/integrations/manifest","siteSpaceId":"sitesp_sh0qj","description":"Add The Grid as a custom OpenAI-compatible backend in Manifest's dashboard and map instruments to Manifest's complexity tiers.","breadcrumbs":[{"label":"The Grid"},{"label":"Integrations and Best Practices"},{"label":"Integrations"}]},{"id":"TEpaPFXPagGyH3FiCjbi","title":"Codex","pathname":"/docs/integrations-and-best-practices/integrations/codex","siteSpaceId":"sitesp_sh0qj","description":"Codex requires the OpenAI Responses API, which The Grid does not yet support. Here's what to do instead.","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":"The Grid exposes its inference market over HTTP. This section covers what to call, how to authenticate, and how the routing layer behaves at runtime.","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. Each key authenticates against a different API and uses a different scheme. This page covers how to generate, use, and rotate both.","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":"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"}]}]}