Comparison

XiuAI vs OpenRouter

Both services let you call multiple model providers with one API key, but they optimize for different workflows. OpenRouter excels at broad open-model discovery, multi-provider routing, and BYOK. XiuAI focuses on native multi-protocol pass-through, public discounted rates on leading models, a verifiable Claude zero-injection standard, one-click local agent setup, and invoicing.

When OpenRouter fits better, and when XiuAI fits better

Choose based on your actual workload and operational constraints rather than generic checklists.

When OpenRouter is the better fit

  • You need wide coverage across open-source and long-tail models, or custom routing order and automatic fallback across many upstream inference hosts.
  • You already hold direct provider contracts or credits and want BYOK routing inside a single aggregation layer.
  • You rely on OpenRouter’s free-tier rate-limited models for quick prototyping or public demos.
  • Your application is standardized around OpenRouter’s unified gateway parameters and provider presets.

When XiuAI is the better fit

  • You focus on leading Claude, GPT, and Gemini models at public pay-as-you-go discounts while keeping each provider’s native API format and SDK.
  • You run Claude Code, Codex, Claude Desktop, or custom Claude apps and want a published, verifiable zero-injection standard so prompts and prompt caching behave like a direct key.
  • You want per-key model scopes, spending caps, expiration dates, per-request cost logs, a separate read-only Account API, and automatic Stripe invoices.
  • You want to connect local coding agents without hand-editing config files, using XIU desktop to switch between official subscriptions, XiuAI, and your own APIs anytime.

Side-by-side comparison

Based on publicly documented capabilities. Check each live catalog for current model coverage and unit rates.

DimensionXiuAIOpenRouter
Catalog focusCurated mainstream closed and open models with live availability, protocols, and discounted rates listed on Models and pricing.Broad marketplace aggregating a wide catalog of closed and open models across many inference providers.
API protocolsNative protocol per model: OpenAI Responses, OpenAI Chat Completions, Anthropic Messages, and Gemini GenerateContent using standard official SDKs.Centered on an OpenAI-compatible layer, with Responses and Anthropic Messages compatibility endpoints plus OpenRouter routing parameters.
Pricing structurePublic discounted pay-as-you-go rates billed from your USD balance; Claude uses separate rates for official Claude Code and other clients. Check live pages for exact rates.Pass-through provider list pricing with platform credit-purchase fees, plus BYOK allowances with overage fees and rate-limited free models.
Claude transparency & abuse rulesPublished XiuAI Zero-Injection Standard (no added prompts, no model swaps, verifiable via Claude-Detection and Veridrop thinking-signature checks) and Anti-Distillation Terms with per-sub-user isolation.Provider preference presets and data-policy filters; does not publish an equivalent article-by-article zero-injection standard or sub-user refusal-scoring framework.
Key controls & reportingPer-key allowed models, service tier, spending limit, expiration date, and non-Claude Code toggle; per-request usage logs plus a separate read-only Account API.Per-key credit limits, activity logs, usage exports, and BYOK key management.
Local agent setupFree XIU desktop app (an independent project developed and maintained in-house by XiuAI, with UI inspired by CC Switch) backs up and writes configs for Claude Code, Codex, and Claude Desktop, plus xiu CLI and manual docs.Manual environment variables, config edits, or community proxy tools; no official desktop config switcher.
Invoicing & billing documentsAutomatic tax-inclusive USD Stripe invoices emailed on every successful Stripe deposit; mainland China VAT invoices are also available through the Chinese wallet workflow.Online payment receipts and business-plan billing workflows; no mainland China VAT invoicing.
Data retention boundaryZero data retention by default for text conversations, no training on user traffic, long-term billing metadata retention, and published Claude safety retention limits.Configurable prompt-logging preferences and provider-level ZDR filters, depending on the routed upstream provider.

XiuAI is operated by XiuLab Inc. Live catalogs, pricing, and platform terms evolve over time; confirm current details in each service’s documentation before committing production traffic.

Native protocols and local coding agents

When your stack already uses the official OpenAI, Anthropic, or Google SDKs, protocol translation is often where subtle bugs show up—such as dropped caching markers, missing thinking parameters, or mismatched tool schemas.

XiuAI exposes each model through its native protocol: OpenAI Responses, OpenAI Chat Completions, Anthropic Messages, and Gemini GenerateContent. You keep your existing SDK and point Base URL and API key at XiuAI.

For local agents like Claude Code, Codex, and Claude Desktop, XIU desktop (an independent project built and maintained by XiuAI, whose interface design borrows from the open-source CC Switch project) backs up existing configs before writing changes. You can switch between official subscriptions, XiuAI, and your own custom routes—including OpenRouter—per app at any time.

Claude workloads: verifiable zero injection and anti-distillation rules

In long-context coding sessions and multi-turn agents, hidden gateway prompts or rewritten history break prompt caching and silently change model behavior.

XiuAI publishes the XiuAI Zero-Injection Standard for Claude API traffic: no added platform system prompts, no model substitution, no truncated replies, and billing strictly from upstream-reported usage, with every protocol and health-probe exception documented openly. You can verify calls independently using Claude-Detection or Veridrop’s thinking-signature check.

Alongside it, the XiuAI Anti-Distillation Terms prohibit training, distillation, and bulk template harvesting on Claude outputs. Multi-user platforms can send a server-side sub-user header so refusal scoring and suspensions isolate to the individual end user rather than the entire account.

Billing structure, key controls, and invoicing

OpenRouter passes through provider list rates and charges platform fees on credit top-ups (with BYOK allowances for teams bringing direct provider agreements). That works well when provider routing flexibility and broad model breadth matter most.

XiuAI publishes discounted pay-as-you-go rates on its live Models and pricing catalog and bills directly from your USD balance, with separate Claude rates for official Claude Code clients and other clients. Check the live catalog and Claude page rather than relying on static numbers.

For teams, XiuAI provides per-key model allowlists, spending limits, expiration dates, and instant revocation in the console, paired with per-request token, cache, latency, and cost records. A separate read-only Account API lets engineering and finance pull balances, usage logs, and refusal status into internal dashboards without sharing inference keys. Stripe deposits automatically email tax-inclusive USD invoices, and teams needing China VAT invoices can request them through the Chinese wallet workflow.

Test with a real workload in three steps

Validate behavior, cache hits, and total task cost on a small representative slice before moving production traffic.

  1. 1

    Confirm exact model IDs and current rates

    Check Models and pricing for the exact model ID, supported native protocol, and live rate. For Claude workloads, also review client-based rates on the Claude page.

  2. 2

    Issue a scoped API key without deleting old configs

    Create a key in the workspace with explicit model, budget, and expiration limits. Update Base URL and API key in your SDK, or use XIU desktop to connect local agents with automatic config backup.

  3. 3

    Run a real task and reconcile usage

    Send a representative multi-turn or tool-calling task (optionally verify Claude with Claude-Detection or Veridrop), then inspect tokens, cache hits, latency, and cost in Usage or via the Account API.

Frequently asked questions

Direct answers on pricing structure, SDK changes, Claude Code, BYOK, and invoicing.

How do XiuAI and OpenRouter differ in billing structure?

OpenRouter bills at underlying provider list rates and applies platform fees when you purchase credits (alongside BYOK allowances and overage fees). XiuAI publishes discounted pay-as-you-go rates billed from your USD balance, with separate Claude rates for official Claude Code clients and other clients. Always check Models and pricing and the Claude page for live rates.

View models and pricing
How much code changes when moving an existing SDK from OpenRouter to XiuAI?

In most cases you only update the Base URL, API key, and exact model ID from the XiuAI catalog. XiuAI uses native OpenAI Responses, Chat Completions, Anthropic Messages, and Gemini GenerateContent endpoints, so you keep official SDKs and remove any OpenRouter-specific routing parameters.

Check native API paths
What is different when running Claude Code on XiuAI vs OpenRouter?

XiuAI publishes the XiuAI Zero-Injection Standard, committing not to inject prompts, swap models, or alter replies, and documents every protocol exception so prompt caching and multi-turn thinking work as expected. You can verify calls with Claude-Detection or Veridrop, and XIU desktop connects Claude Code in one click with backup and rollback.

Read the Zero-Injection Standard
Should I stay with OpenRouter if I rely on BYOK or many open-source models?

Yes. If your primary requirement is BYOK with existing direct contracts, multi-host fallback routing, or broad access to long-tail open-source models, OpenRouter is built for that. The two are not mutually exclusive—you can also add custom routes alongside XiuAI inside XIU desktop and switch per app.

Learn about XIU desktop routes
Does XiuAI support team cost tracking and invoicing?

Yes. You can create separate API keys per app or team with model scopes, spending caps, and expiration dates, review per-request cost logs in the workspace, and pull balance or usage reports via the read-only Account API. Stripe deposits automatically email tax-inclusive USD invoices, and teams needing China VAT invoices can request them in the Chinese wallet.

Explore the Account API