Skip to main content
The XRoute gateway provides native compatibility with official client libraries from OpenAI and Anthropic, supports provider native SDKs (such as Google GenAI, Byteplus Ark, and DashScope), and works out-of-the-box with popular orchestration frameworks like LangChain and LlamaIndex. You only need to configure the base_url (or baseURL) and provide your api_key to transition existing applications to XRoute.
Modality Calling Rules:
  • Text Models: Support OpenAI SDK, Anthropic SDK, and provider native SDKs.
  • Image Models: Native Format Only (OpenAI Images API, Google GenAI Image module, Byteplus Ark Images).
  • Video Models: Native Asynchronous Task SDKs Only.

1. Text Output Models SDK Invocation

OpenAI Official SDK

Compatible with all text output models (e.g. OpenAI/gpt-5.6-sol, OpenAI-Pro/gpt-6-astra, Google/gemini-3.1-pro-preview, Byteplus/seed-2-0-code-preview-260328, etc.).

Anthropic Official SDK

Compatible with Anthropic standard message payloads (e.g. Anthropic/claude-fable-5, Anthropic-Pro/claude-opus-4-6, etc.).

Provider Native SDKs

For providers with specialized client libraries, point the SDK’s base_url to the vendor path on XRoute:

2. Image Output Models SDK Invocation

Image models only support native format. Use provider native SDK image modules or native endpoints directly.

3. Video Output Models SDK Invocation

Video models follow an asynchronous task workflow (create task -> poll status until completion):

LangChain

LlamaIndex