One API Key for GPT, DeepSeek, and Grok: Same Base URL, Just Change the Model

Calling GPT, DeepSeek, and Grok through GrooRoute Pro needs no separate key per vendor: set base_url to https://grooroute.com/v1, send the same GrooRoute Pro API key, and change only the model in the request. Prices are not on this page; live per-tier rates are on the Models & Pricing page.

How It Works: One Base URL, Change the Model

All three vendors' models sit behind the same OpenAI-compatible base URL https://grooroute.com/v1. The gateway routes each request by its model, and every request authenticates with Authorization: Bearer <API Key>. Which models a key can use depends on its group and tier; call the model list with that key to see them:

curl https://grooroute.com/v1/models \
  -H "Authorization: Bearer $GROOROUTE_API_KEY"

The examples below read the key from the GROOROUTE_API_KEY environment variable. Each vendor's example names its first model in the catalogue that declares chat completions, or else the first that declares Responses, and is written in that model's protocol.

curl, One Vendor at a Time

GPT

curl https://grooroute.com/v1/chat/completions \
  -H "Authorization: Bearer $GROOROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.6-luna","messages":[{"role":"user","content":"Hello"}]}'

DeepSeek

curl https://grooroute.com/v1/chat/completions \
  -H "Authorization: Bearer $GROOROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"Hello"}]}'

Grok

curl https://grooroute.com/v1/chat/completions \
  -H "Authorization: Bearer $GROOROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.7","messages":[{"role":"user","content":"Hello"}]}'

OpenAI Python SDK, All Three Vendors

Create one client; the calls differ only in model. Models that declare chat completions use client.chat.completions.create; those that declare only Responses use client.responses.create.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://grooroute.com/v1",
    api_key=os.environ["GROOROUTE_API_KEY"],
)

# GPT
completion = client.chat.completions.create(
    model="gpt-5.6-luna",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)

# DeepSeek
completion = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)

# Grok
completion = client.chat.completions.create(
    model="grok-4.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)

Setup for the OpenAI SDK, Codex CLI, Claude Code, and OpenCode is in the quickstart; every endpoint the gateway offers is listed in GrooRoute Pro API endpoints.

Finding Model IDs and Fixing Errors

Model IDs are on the Models & Pricing page, or call GET /v1/models with your key to list the models it can use; put the ID in model exactly as listed.

Other status codes are explained in the error guide (Chinese).

Frequently Asked Questions

Do I need a separate key for each vendor?

No. Every request uses the same GrooRoute Pro API key and the same base URL; only the model in the request changes.

Where do I find model IDs?

On the Models & Pricing page, or by calling GET /v1/models with your key to list the models that key can use.

What does a 403 or 404 after switching models mean?

403 MODEL_NOT_ALLOWED_FOR_GROUP means the model is outside your key's groups or model scope: your key's groups not offering it, a model scope (allowlist) on the key that leaves it out, or a channel pinned on the key that does not serve it all return this code, and the message in the error says which one; list the models you can use with GET /v1/models, or change the key's groups or model scope in the console. 404 model_not_found means no group has a model by that name, usually a typo. See the error guide for details.

Do the three vendors cost the same?

No. Pricing differs by model and tier. This page states no prices; live rates are on the Models & Pricing page.

Last updated:

Related Guides

Create a GrooRoute Pro account · Documentation · Models & Pricing · Terms & Privacy