Skip to content

AI Gateway Integration Tutorials

This page collects practical integration tutorials for using DGrid AI Gateway in common developer tools and SDKs.

Cursor (Override OpenAI Base URL)

  1. Get your DGRID_API_KEY (see the prerequisite in AI Gateway).
  2. Open Cursor SettingsModels.
  3. Under API Keys, enable Override OpenAI Base URL.
  4. Set the base URL to:
    • https://api.dgrid.ai/v1
  5. Paste your DGRID_API_KEY into OpenAI API Key.
  6. Pick any supported model name using the DGrid format (for example: openai/gpt-4o).

Cursor settings example

Full tutorial: How to Configure and Use DGrid AI Gateway in Cursor

OpenAI SDK (Node.js / Python)

OpenClaw

You can configure OpenClaw to route requests through DGrid AI Gateway using the OpenAI-compatible endpoint.

  1. Open your OpenClaw model/provider settings.
  2. Set the API base URL to https://api.dgrid.ai/v1.
  3. Paste your DGRID_API_KEY into the API key field.
  4. Select a supported DGrid model ID.
  5. Save the configuration and run a quick test request.

Blog integration tutorials (collected)