The Grid API -- AI Inference Spot Market
API by The Grid · rest
OpenAPI spec for The Grid's Consumption and Trading APIs, including auth, endpoints, and instruments. The Grid API -- AI Inference Spot Market The Grid (thegrid.ai) is a real-time spot market for AI inference. This specification covers both APIs: Consumption API (https://api.thegrid.ai/v1) Fully OpenAI-compatible chat completions and model listing. Drop-in replacement for the OpenAI SDK: change your base_url and API key, keep everything else. Authenticated via Bearer token. Trading API (https://trading.api.thegrid.ai/v1) Programmatic access to the central limit order book. Place market and limit orders, manage positions, track balances across Trading and Consumption accounts, view real-time market data. For advanced users. Authenticated via Ed25519 signatures. Platform API (https://platform.api.thegrid.ai/v1) Account control plane for programmatic and agentic onboarding. OAuth 2.0 device-flow login, consumption API key creation, Ed25519 trading signing key…
Endpoint: https://api.thegrid.ai/v1
Verification: observed. Source: crawl.
Capabilities (38)
- List consumption API keys
- Create a consumption API key
- Create chat completion
- List consumption accounts
- Get consumption account details
- List currency trading accounts
- Get currency account details
- List instruments
- Get instrument details
- List markets
- Get market details
- Get order book
- Get market ticker
- Get market trades
- Routes Anthropic Messages API requests
- List available models
- Request a device code
- Revoke an access or refresh token
- List the OAuth scopes a client may request
- Exchange a device code or refresh token for an access token
- List trader's orders
- Place order
- Get order details
- Cancel order
- Get price history (OHLCV)