Yunshu Router is one API for many models. You send requests in the OpenAI or the Anthropic format, with one API key, and each request is charged per token to your prepaid balance.
If you already use the OpenAI or Anthropic SDK, you change two things: the base URL and the key.
- New here? Read the Quickstart. Your first request takes about five minutes.
- Setting up a coding tool? Check the Base URL cheat sheet first. A wrong
/v1is the most common setup error. - Something failed? The Errors page lists every code, what it means and what to do.
Base URLs
| Format | Base URL |
|---|---|
| OpenAI (Chat Completions, Responses) | https:/ |
| Anthropic (Messages) | https:/ (no /; the SDK adds it) |
Endpoints
| Method | Path | What it does |
|---|---|---|
POST |
/ |
OpenAI Chat Completions |
POST |
/ |
Anthropic Messages |
POST |
/ |
Count a prompt’s input tokens (free) |
POST |
/ |
OpenAI Responses (stateless) |
GET |
/ |
Models your key can use, with prices |
GET |
/ |
Cost and token counts for one request |
POST GET |
/ |
Submit and list off-peak batches |
GET |
/ and / |
One batch, and its results |
POST |
/ |
Cancel what has not run yet |
DELETE |
/ |
Cancel and delete stored prompts and results |
We do not serve embeddings, images, audio or other endpoints.