Skip to main content

Overview

The OpenRouter proxy provides pay-per-request access to OpenRouter — a unified gateway to 200+ AI models from OpenAI, Anthropic, Google, Meta, Mistral, and many others. Use a single proxy URL to reach any model. No account or API key required.
Proxy URLhttps://openrouter.api.corbits.dev
Proxy ID70
Default price$0.01 per request
Pricing schemeExact

Quick start

Install the payment SDK and make a chat completion request:
import { payer } from "@faremeter/rides";

// Load your Solana keypair
await payer.addLocalWallet(process.env.PAYER_KEYPAIR);

const response = await payer.fetch("https://openrouter.api.corbits.dev/api/v1/chat/completions", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "anthropic/claude-sonnet-4-20250514",
    messages: [{ role: "user", content: "Hello from Corbits!" }],
  }),
});

const data = await response.json();
console.log(data.choices[0].message.content);

Key endpoints

EndpointDescription
/api/v1/chat/completionsGenerate chat completions (OpenAI-compatible format)
/api/v1/responsesCreate model responses
/api/v1/messagesCreate messages (Anthropic-compatible format)
/api/v1/embeddingsGenerate text embeddings
/api/v1/modelsList all available models
/api/v1/models/countGet total count of available models
/api/v1/providersList all upstream providers
/api/v1/generationGet request and usage metadata
/api/v1/creditsCheck remaining credits
/api/v1/keyGet current API key info
OpenRouter supports 28 endpoints in total. Use the Discovery API to get the complete list with descriptions.

Model selection

OpenRouter lets you route to any supported model by specifying the model parameter in the format provider/model-name:
{ "model": "openai/gpt-4o" }
{ "model": "anthropic/claude-sonnet-4-20250514" }
{ "model": "google/gemini-2.5-pro-preview-05-06" }
{ "model": "meta-llama/llama-3-70b-instruct" }
{ "model": "mistralai/mistral-large-latest" }
See the OpenRouter model list for all available models and pricing.

Discover this merchant

Query the Discovery API to get live details about this proxy:
# Search for this proxy
curl "https://api.corbits.dev/api/v1/search?q=openrouter"

# Get proxy details
curl "https://api.corbits.dev/api/v1/proxies/70"

# List all endpoints with pricing
curl "https://api.corbits.dev/api/v1/proxies/70/endpoints"

# Get the full OpenAPI spec
curl "https://api.corbits.dev/api/v1/proxies/70/openapi"

Notes

  • OpenRouter supports both OpenAI-compatible (/chat/completions) and Anthropic-compatible (/messages) request formats.
  • Model availability and pricing varies by provider. The Corbits proxy price is per-request; upstream model costs are included.
  • Payment is handled at the proxy layer via x402 — the @faremeter/rides SDK manages the challenge/response cycle automatically.