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 RPC API in Cursor

OpenAI SDK (Node.js / Python)

Blog integration tutorials (collected)