AI Gateway: OpenRouter Is Now a Built-In Provider

Zuplo now supports OpenRouter as a built-in AI Gateway provider. One OpenRouter API key reaches models from OpenAI, Anthropic, Google, Meta, DeepSeek, Qwen, xAI, and more, and the gateway puts your apps, API keys, budgets, guardrails, and cost tracking in front of all of them. Requests run on your OpenRouter account and your OpenRouter billing.

  • One key, many vendors: Serve OpenRouter’s catalog through the Universal API with a single provider key
  • Spend that reconciles: Reported costs come from OpenRouter’s own price for each request
  • Routing shortcuts: :nitro, :floor, :online, and :exacto work through the gateway

Add OpenRouter as a provider

In your AI Gateway project, open Settings → AI Providers, click Add Provider, select OpenRouter, paste your OpenRouter API key, and select the models the provider should serve. There is no endpoint or region to configure.

Model references include OpenRouter’s vendor prefix, so they have two slashes: openrouter/openai/gpt-6-sol or openrouter/anthropic/claude-sonnet-5. The first segment is your provider name, and the rest is the model ID exactly as OpenRouter publishes it.

Supported endpoints and SDKs

  • Claude models serve /v1/messages, so the Anthropic SDK works directly. They also serve /v1/chat/completions, which the gateway translates onto the Messages API.
  • Other chat models serve /v1/chat/completions and /v1/responses. The Responses API is stateless on OpenRouter: you can create a response, but not retrieve or delete it.
  • Embedding models serve /v1/embeddings.

Any OpenAI-compatible client works by pointing its base URL at your app URL with /v1 appended.

Routing preferences

OpenRouter’s routing suffixes are forwarded unchanged: :nitro prefers the fastest host, :floor the cheapest, :online adds web search, and :exacto prefers hosts that call tools most accurately. OpenRouter’s provider option is forwarded too, so you can set upstream preferences per request.

OpenRouter’s own model-fallback parameters (models, route, and fallbacks) are rejected on chat completions and the Messages API, because a substitute model would bypass your model filtering and budgets. Configure a backup model on the route instead.

Costs

OpenRouter prices each request and reports the figure in its response, and the gateway records that figure instead of a stored rate. Spend analytics use that provider-reported cost, including when :floor and :nitro requests for the same model run on hosts with different prices.

Getting started

You need an OpenRouter API key from openrouter.ai/keys and credit on that account. The OpenRouter provider guide covers setup, the full endpoint table, routing, SDK examples, and troubleshooting.