Skip to main content
DGrid is the decentralized smart network for AI — a single ecosystem that spans model access, model discovery, evaluation, and on-chain incentives. Whichever product you start with, every part of DGrid is reachable through one API key.

Explore the DGrid ecosystem

DGrid AI Gateway

One OpenAI-, Claude-, and Gemini-compatible API for 200+ leading AI models, with Web3-native payments and intelligent routing.

AI Arena

Blind model battles where community votes earn $DGAI airdrop points and feed DGrid’s routing intelligence.

Dori Find Models

A natural-language advisor that turns your requirements into a shortlist of models, tested and compared for you.

Model Marketplace

The open catalog of 200+ models and providers behind DGrid AI Gateway, browsable and callable through one API.

Get started with DGrid AI Gateway

DGrid AI Gateway gives you a single, OpenAI-compatible API for 200+ leading models. This section takes you from zero to your first chat completion.
1

Get your API key

Obtain a valid DGRID_API_KEY by following the key creation guide.
Your key secret is shown only once at creation time. Copy it immediately and store it in a secure location such as a secrets manager. Never expose it in client-side code or public repositories.
2

Make your first request

Send a chat completion request to the DGrid AI Gateway endpoint. The model parameter uses the provider/model-name format (for example openai/gpt-4o), consistent across all DGrid-supported models.
curl https://api.dgrid.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DGRID_API_KEY" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ]
  }'
DGrid is fully compatible with the OpenAI SDK — point baseURL at https://api.dgrid.ai/v1 and your existing code works unchanged. Install it with pip install openai or npm install openai.
3

Explore what's next

Model API Reference

Endpoint-level reference for chat, images, audio, embeddings, and more.

Integrations

Connect DGrid to Claude Code, Cursor, Moltbot, and other tools.

x402 Payments

Pay per inference with the x402 protocol — no account balance required.