GrooRoute Pro API Endpoints: Chat Completions, Responses, Anthropic Messages, and Native Gemini
Every GrooRoute Pro endpoint shares one account and one API key. OpenAI-style clients use the base URL ending in /v1, https://grooroute.com/v1; Anthropic-compatible clients that append /v1/messages themselves, and clients that send requests in the Gemini API format, use the root URL https://grooroute.com. This page lists each endpoint's path, key header, and a minimal curl example. For how the request bodies differ and which protocol each client uses, see the protocol comparison guide (Chinese).
Endpoint Overview
| Endpoint | Method & Path | Key Header | Client Base URL | Typical Clients |
|---|---|---|---|---|
| Chat Completions | POST /v1/chat/completions | Authorization: Bearer <API Key> | https://grooroute.com/v1 | OpenAI SDK (chat.completions.create), OpenCode (@ai-sdk/openai-compatible) |
| Responses | POST /v1/responses | Authorization: Bearer <API Key> | https://grooroute.com/v1 | OpenAI SDK (responses.create), Codex CLI, OpenCode (@ai-sdk/openai) |
| Anthropic Messages | POST /v1/messages | x-api-key: <API Key> or Authorization: Bearer <API Key> | https://grooroute.com | Claude Code and other Anthropic-compatible clients that append /v1/messages |
| Native Gemini | POST /v1beta/models/{model}:generateContent, streaming :streamGenerateContent | x-goog-api-key: <API Key>, the key query parameter, or Authorization: Bearer <API Key> | https://grooroute.com | SDKs and clients that send requests in the Gemini API format |
| Image Generation | POST /v1/images/generations | Authorization: Bearer <API Key> | https://grooroute.com/v1 | OpenAI SDK |
| Model List | GET /v1/models | Authorization: Bearer <API Key> returns the OpenAI format; x-api-key with anthropic-version returns the Anthropic format; x-goog-api-key or the key query parameter returns the Gemini format | https://grooroute.com/v1 | Listing the models your key can use |
A registered endpoint is not open for every model in every tier: which endpoints a model offers in your key's tier is shown on the Documentation page for your key and model. The examples below read the key from the GROOROUTE_API_KEY environment variable, and each names the first model in the catalogue that declares that endpoint (the Messages and native Gemini sections prefer a model from the same vendor); swap in any other model ID from the Models & Pricing page.
Chat Completions: POST /v1/chat/completions
This example uses deepseek-v4.1-flash; the conversation goes in the messages array:
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"}]}'
Responses: POST /v1/responses
This example uses gpt-5.6-luna; the input goes in input:
curl https://grooroute.com/v1/responses \
-H "Authorization: Bearer $GROOROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-luna","input":"Hello"}'
Anthropic Messages: POST /v1/messages
Send the key in the x-api-key header or as Authorization: Bearer. A client that appends /v1/messages itself takes the root URL https://grooroute.com, without /v1.
This example uses claude-opus-5-5 (a Claude model that declares this endpoint comes first; failing that, the first model in the catalogue that declares it):
curl https://grooroute.com/v1/messages \
-H "x-api-key: $GROOROUTE_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"claude-opus-5-5","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'
Native Gemini: POST /v1beta/models/{model}:generateContent
The model ID goes in the path. Send the key in the x-goog-api-key header or as the key query parameter. For streaming, replace :generateContent with :streamGenerateContent. :countTokens is not implemented and returns 404.
This example uses gpt-5.6-luna (a Gemini model that declares this endpoint comes first; failing that, the first model in the catalogue that declares it):
curl 'https://grooroute.com/v1beta/models/gpt-5.6-luna:generateContent' \
-H "x-goog-api-key: $GROOROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello"}]}]}'
Image Generation: POST /v1/images/generations
This example uses gpt-image-2.5-flare; the description goes in prompt:
curl https://grooroute.com/v1/images/generations \
-H "Authorization: Bearer $GROOROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2.5-flare","prompt":"A red bicycle"}'
Model List: GET /v1/models
Call it with your key to list the models that key can use. The default response is in the OpenAI format:
curl https://grooroute.com/v1/models \
-H "Authorization: Bearer $GROOROUTE_API_KEY"
With both x-api-key and anthropic-version headers it returns the Anthropic format; with an x-goog-api-key header or the key query parameter it returns the Gemini format.
Declared Endpoints per Model
The table below lists the published models with active supply and the three text endpoints each declares, merged across the public tiers; the Documentation page is authoritative for your key:
| Model ID | Declared Endpoints |
|---|---|
deepseek-v4.1-flash | POST /v1/chat/completions |
gpt-5.6-luna | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-5.6-sol | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-5.6-terra | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6-astra | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6-luna | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6-sol | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6.1-sol | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6.1-terra | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6.2-sol | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
gpt-6.2-astra | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
grok-4.7 | POST /v1/chat/completions, POST /v1/responses |
gpt-image-2.5-flare | None declared |
gpt-image-2.6-flare | None declared |
gpt-image-2.6-sunburst | None declared |
claude-opus-5-5 | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
claude-opus-4-8 | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
claude-sonnet-5-5 | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
claude-fable-5-2 | POST /v1/chat/completions, POST /v1/messages, POST /v1/responses |
Models declaring the native Gemini endpoint: gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-astra, gpt-6-luna, gpt-6-sol, gpt-6.1-sol, gpt-6.1-terra, gpt-6.2-sol, gpt-6.2-astra, claude-opus-5-5, claude-opus-4-8, claude-sonnet-5-5, claude-fable-5-2.
Models declaring image generation: gpt-image-2.5-flare, gpt-image-2.6-flare, gpt-image-2.6-sunburst.
Next Steps
- Client setup for the OpenAI SDK, Codex CLI, Claude Code, and OpenCode: quickstart.
- Which protocol to pick: protocol comparison guide (Chinese).
- Model IDs and per-tier pricing: Models & Pricing.
- Configuration generated for your key and model: Documentation.
- When a request fails: error guide (Chinese).
Frequently Asked Questions
Are both Chat Completions and Responses supported?
Yes. POST /v1/chat/completions and POST /v1/responses are both registered and use the same API key and base URL. Which endpoints a model offers in your tier is shown on the Documentation page for your key and model.
Which key header does the Anthropic Messages endpoint accept?
Both x-api-key and Authorization: Bearer. Clients that speak the Anthropic protocol and append /v1/messages themselves use the root URL without /v1.
How do I pass the key to the native Gemini endpoints?
Send the x-goog-api-key header or add the key query parameter; Authorization: Bearer works too. :countTokens is not implemented and returns 404.
How is this page different from the protocol comparison guide?
This page is a list: the path, key header, and a minimal example for each endpoint. How the request bodies differ and which protocol each client uses are covered in the protocol comparison guide.
Last updated: