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

EndpointMethod & PathKey HeaderClient Base URLTypical Clients
Chat CompletionsPOST /v1/chat/completionsAuthorization: Bearer <API Key>https://grooroute.com/v1OpenAI SDK (chat.completions.create), OpenCode (@ai-sdk/openai-compatible)
ResponsesPOST /v1/responsesAuthorization: Bearer <API Key>https://grooroute.com/v1OpenAI SDK (responses.create), Codex CLI, OpenCode (@ai-sdk/openai)
Anthropic MessagesPOST /v1/messagesx-api-key: <API Key> or Authorization: Bearer <API Key>https://grooroute.comClaude Code and other Anthropic-compatible clients that append /v1/messages
Native GeminiPOST /v1beta/models/{model}:generateContent, streaming :streamGenerateContentx-goog-api-key: <API Key>, the key query parameter, or Authorization: Bearer <API Key>https://grooroute.comSDKs and clients that send requests in the Gemini API format
Image GenerationPOST /v1/images/generationsAuthorization: Bearer <API Key>https://grooroute.com/v1OpenAI SDK
Model ListGET /v1/modelsAuthorization: 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 formathttps://grooroute.com/v1Listing 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 IDDeclared Endpoints
deepseek-v4.1-flashPOST /v1/chat/completions
gpt-5.6-lunaPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-5.6-solPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-5.6-terraPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6-astraPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6-lunaPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6-solPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6.1-solPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6.1-terraPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6.2-solPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
gpt-6.2-astraPOST /v1/chat/completions, POST /v1/messages, POST /v1/responses
grok-4.7POST /v1/chat/completions, POST /v1/responses
gpt-image-2.5-flareNone declared
gpt-image-2.6-flareNone declared
gpt-image-2.6-sunburstNone declared
claude-opus-5-5POST /v1/chat/completions, POST /v1/messages, POST /v1/responses
claude-opus-4-8POST /v1/chat/completions, POST /v1/messages, POST /v1/responses
claude-sonnet-5-5POST /v1/chat/completions, POST /v1/messages, POST /v1/responses
claude-fable-5-2POST /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

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:

Related Guides

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