Skip to main content
SERV exposes three endpoints: /v1/chat/completions, /v1/responses, and /v1/messages. Each supports a different subset of providers.

Choose an endpoint

The endpoint changes the request and response shape, not the SERV reasoning concept. Use the parameter map when translating system prompts, token limits, reasoning controls, tools, and usage fields between formats.

Provider support

This table shows the defaults for the providers in the current catalog. The endpoints field of each model in GET /v1/models is the authoritative list for that model.

Endpoint behaviors

  1. /v1/chat/completions is universal. It supports every provider in the catalog, including Claude. A single code path through the OpenAI SDK is sufficient for all models.
  2. /v1/responses is OpenAI-only. Non-OpenAI models are not supported on this endpoint and should use /v1/chat/completions.
  3. /v1/messages is multi-provider, except OpenAI. Claude models go to Anthropic directly. Every other model, including Gemini, is routed through OpenRouter. Existing Anthropic-SDK integrations can switch between these by changing the model ID alone. OpenAI models return a 400 here; call them through /v1/chat/completions or /v1/responses.

Google models

  • Gemini on /v1/messages goes through OpenRouter, not Google. SERV forwards the catalog model ID unchanged. OpenRouter’s errors come back with their status code: a 4xx body is passed through with account identifiers redacted, and a 5xx body is replaced with a generic upstream error. /v1/chat/completions calls Google directly, so use it for Gemini.
  • The google-genai SDK is not supported. It uses Gemini’s generateContent format, which SERV does not expose. Use the OpenAI SDK against /v1/chat/completions for any Gemini model.

See also

  • Models: the full catalog with pricing and context windows.
  • SDK Integration: endpoints and the parameter map.