OneProvider
Getting started

API Overview

Meet the OneProvider API: one base URL that speaks both Anthropic Messages and OpenAI formats. Authentication, versions and a map of every API page.

One endpoint. Two wire formats. Current Claude and GPT models. The full surface area in one page.

All models, capabilities, and prices Documentation index for AI agents: https://oneprovider.dev/docs/llms.txt

Endpoint

Every request goes to https://api.oneprovider.dev/v1. There is no regional routing, no per-tenant subdomain, no separate billing host. The API runs in Frankfurt, EU, and is reachable worldwide.

Wire formats

OneProvider speaks three protocols at the same URL. Pick whichever your SDK already uses.

  • Anthropic-native. POST /v1/messages — the same request and response shape as api.anthropic.com. If your code calls Anthropic today, changing base_url is the entire migration.
  • OpenAI-compatible. POST /v1/chat/completions — drop-in for OpenAI SDKs. Tool calling, streaming, and vision all work; only fields that have no Claude equivalent (e.g. response_format=json_schema strict mode) are silently ignored.
  • OpenAI Responses. POST /v1/responses — the format Codex and the newer OpenAI SDKs use. It works with GPT models and with Claude.

Authentication

Either Authorization: Bearer sk-... or x-api-key: sk-.... Never both in the same request — see Authentication .

Versioning

Path is /v1/* on every endpoint. Anthropic requests additionally take anthropic-version: 2023-06-01 — SDKs add it automatically.

We never break /v1. New capabilities ship as additive fields (e.g. cache_control blocks). Removals or schema-breaking changes would ship on /v2with at least 90 days of overlap.

Pages in this section

API POST /v1/messages Anthropic-native schema. API Chat completions OpenAI-compatible endpoint. API Streaming (SSE) Event types, examples. API Tool use tool_choice normalization. API Vision (image input) image content blocks.

Quick answers

Which base URL do I use?

Claude Code and Anthropic SDKs use https://api.oneprovider.dev. OpenAI SDKs and OpenAI-compatible clients use https://api.oneprovider.dev/v1. One key works behind both; the model list is on the models page ; rates are on the pricing page .

How do I authenticate?

Send the raw sk-… key in x-api-key or Authorization: Bearer: one of them, never both. Keep the key in an environment variable, not in a file that gets committed. More on authentication .

Where do I get a key?

Open your cabinet in the Telegram bot @oneprovider_robot or at app.oneprovider.dev, top up the balance and press “Issue a key”. Each key can carry its own spend limit. Cabinet & API keys .

What do 401, 404 and 429 mean?

401: the key is missing, mistyped or sent in the wrong header; paste the whole key without quotes or spaces. 404: usually a wrong base URL, for example a missing or doubled /v1. 429 with “Insufficient balance”: the cabinet balance or the key’s spend limit is used up, so top up instead of retrying; any other 429 is a rate limit, so wait for Retry-After. Details: error codes and troubleshooting .

Why do streams cut off or reset?

VPN and VLESS proxies often buffer SSE or break HTTP/2 negotiation. OneProvider has no regional restrictions and does not buffer streams, so turn the proxy off and retry.

Where do I ask if this is not enough?

Message @Oneproviderhelpbot on Telegram or open “Support” in the web cabinet, with the HTTP status code and the exact error message. How support works .

Last updated: 2026-11-28 Found a bug? @Oneproviderhelpbot