Skip to main content
Text models on XRoute encompass state-of-the-art Large Language Models (LLMs) and reasoning engines for conversational AI, code generation, summarization, and agent workflows. All text models support three flexible invocation formats:
  1. OpenAI Unified Format: POST https://api.xroute.ai/v1/chat/completions
  2. Anthropic Unified Format: POST https://api.xroute.ai/v1/messages
  3. Provider Native Direct Format: POST https://api.xroute.ai/{Provider}/...

Supported Text Models


1. OpenAI Unified Invocation

Call any text model using the standard OpenAI Chat Completions schema. Simply set base_url="https://api.xroute.ai/v1" and authenticate with your XRoute API key.
  • Endpoint: POST https://api.xroute.ai/v1/chat/completions
  • Header: Authorization: Bearer $XROUTE_API_KEY

2. Anthropic Unified Invocation

Route requests across any provider using the Anthropic Messages schema. Compatible with Claude Code and tools built around /v1/messages.
  • Endpoint: POST https://api.xroute.ai/v1/messages
  • Headers:
    • x-api-key: $XROUTE_API_KEY
    • anthropic-version: 2023-06-01

3. Provider Native Invocation

Directly communicate with vendor-specific APIs and SDKs by targeting the {Provider} routing namespace.
Endpoint: POST https://api.xroute.ai/Google/models/{model_id}:generateContent
cURL
Python (google-genai SDK)