API Gateway
CodePus runs a unified gateway for all model traffic, enabling quotas, audit, and switching.
Endpoint
- Base URL:
https://api.codepus.ai/v1 - Auth:
Authorization: Bearer cpk_xxx(see API Key Management)
Routes
| Path | Protocol |
|---|---|
POST /v1/chat/completions | OpenAI-compatible |
POST /v1/embeddings | OpenAI-compatible |
POST /v1/messages | Anthropic-compatible |
GET /v1/models | Model list |
Rate limits
| Plan | RPM | TPM |
|---|---|---|
| Free | 20 | 40K |
| Pro | 200 | 1M |
| Team | shared | shared |
Details: Quota & Rate Limits.
Billing
1:1 with upstream tokens; cache hits 50%. See Quota & Boost Packs.
Tracing
Response header x-request-id is your support ticket reference.