Endpoint Configuration
OriginRouter uses separate integration entries by plan: /beta/v1 for pay-as-you-go and /coding/v1 for the coding plan. The legacy /v1 paths remain available for compatibility, but they are marked as deprecated and should not be used for new integrations.
Choose an Integration Scenario
Answer two questions in order:
- Which plan are you on? Pay-as-you-go or OriginRouter One (Coding Plan)?
- Which SDK / tool? OpenAI protocol (OpenAI SDK / Codex CLI / Chatbox / SillyTavern / OpenClaw / OpenCode OpenAI mode) or Anthropic protocol (Anthropic SDK / Claude Code / OpenCode Anthropic mode)?
Match the answers to the row and column in SDK Base URL — that's the string to copy.
HTTP Prefixes
These are the real backend paths. The prefix determines capability set and billing plan.
| Prefix | Status | When to use |
|---|---|---|
/beta/v1/... | Pay-as-you-go entry | Pay-as-you-go integrations. Covers chat / messages / responses / models / images / embeddings / files / web |
/coding/v1/... | Coding plan entry | OriginRouter One subscribers calling chat / messages / responses / models |
/v1/... | Legacy compatibility path | Being deprecated. Existing integrations only; new integrations should use /beta/v1/... |
SDK Base URL
This is the string you paste into code or environment variables. Two rows split by protocol.
| SDK | Pay-as-you-go | Coding Plan |
|---|---|---|
| OpenAI SDK | base_url="https://api.easytransnote.com/beta/v1" | base_url="https://api.easytransnote.com/coding/v1" |
| Anthropic SDK | base_url="https://api.easytransnote.com/beta" | base_url="https://api.easytransnote.com/coding" |
| cURL / HTTP | https://api.easytransnote.com/beta/v1/<endpoint> | https://api.easytransnote.com/coding/v1/<endpoint> |
Key protocol distinction: OpenAI protocol tools typically only append resource paths (like
/chat/completions,/responses,/models) afterbase_urland do not auto-add/v1; therefore pay-as-you-go uses.../beta/v1. Anthropic protocol tools automatically append/v1/messagestobase_url(confirmed from Anthropic SDK source), so pay-as-you-go uses.../beta, not.../beta/v1.How to tell: when you initialize the tool, is it
client.chat.completions.create()(OpenAI) orclient.messages.create()/ANTHROPIC_BASE_URLenv var (Anthropic)? Claude Code uses the Anthropic protocol.
Endpoint Coverage
| Endpoint | /v1 | /beta/v1 | /coding/v1 |
|---|---|---|---|
POST /chat/completions | ✓ | ✓ | ✓ |
POST /messages | ✓ | ✓ | ✓ |
POST /responses | ✓ | ✓ | ✓ |
GET /responses/{id} | ✓ | ✓ | ✓ |
POST /responses/{id}/cancel | — | ✓ | ✓ |
GET /models | ✓ | ✓ | ✓ |
POST /images/generations | ✓ | ✓ | — |
POST /images/edits | ✓ | ✓ | — |
POST /images/ocr (incl. /image/ocr alias) | ✓ | ✓ | — |
POST /images/describe (incl. /image/describe alias) | ✓ | ✓ | — |
POST /embeddings | ✓ | ✓ | — |
POST/GET /files, GET/DELETE /files/{id}, GET /files/{id}/content | ✓ | ✓ | — |
POST /web/search | ✓ | ✓ | — |
POST /web/fetch | ✓ | ✓ | — |
GET /version | ✓ | — | — |
Related Documentation
- Coding Plan — OriginRouter One subscription details, supported models, Base URL configuration examples
- Pay-as-you-go Models — Available models on the pay-as-you-go plan
- Coding Plan Models — Available models for OriginRouter One
- Authentication — API key and Base URL overview
- Chat completions example — See the complete implementation of
/beta/v1/chat/completions