Model API Overview
Understand model identifiers, protocols, billing and service tiers in UnioAPI. Find API quickstart guides, coding tool setup, SDK examples and endpoint references.
UnioAPI is a model API service for AI teams: call OpenAI and Anthropic models through one API entry point and one API key, using the official OpenAI or Anthropic protocol you already know.
Three concepts
Model identifiers
The model in a request is the vendor's official model ID (the undated main model ID, e.g.
gpt-5.6-sol, claude-opus-5-5), and responses echo the same identifier. See
GET /v1/models for callable models.
Protocols
OpenAI models are called over the OpenAI protocol and Claude models over Anthropic Messages. Requests, responses, streaming events and error structures match the official APIs:
| Protocol family | Endpoints | Notes |
|---|---|---|
| OpenAI-compatible | POST /v1/chat/completions, POST /v1/responses, GET /v1/models | OpenAI request, response, and streaming shapes |
| Anthropic-compatible | POST /v1/messages | Anthropic request, response, and named SSE events |
See Choose a Protocol for how the two OpenAI endpoints differ. Brand names only indicate the compatible protocol family and do not imply official partnership or endorsement.
Prices and tiers
Sale price = official price × the model's discount, billed at request-time prices. Service tiers
(Fast, Flex, …), long context, cache writes and inference_geo follow the official billing rules —
see Billing & Usage; prices for each model are on
Models & Pricing.
Start here
- Console & top-up: sign in, top up with a CDKEY, create an API key with a spend cap.
- 5-minute quickstart: get a key, change one base_url, make your first call.
- Client setup: step-by-step for Claude Code, the Claude app, Codex, Cursor, Cline, Kilo Code, TRAE, OpenCode, Cherry Studio and more.
- Migrate from another platform: switch from the official APIs or other compatible platforms by changing the address, key and model ID.
- API reference: endpoints, parameters, streaming, and error codes.
- Platform guides: billing, usage records, service tiers, long context, caching, and rate limits.
- FAQ & Troubleshooting: causes and fixes for 401, 402, 404, 429 and more.