API Gateway
CodePus runs a unified gateway for all model traffic, enabling quotas, audit, and switching.Endpoint
https://api.codepus.ai/v1Authorization: Bearer cpk_xxx (see API Key Management)Routes
POST /v1/chat/completionsPOST /v1/embeddingsPOST /v1/messagesGET /v1/modelsRate limits
Billing
1:1 with upstream tokens; cache hits 50%. See Quota & Boost Packs.Tracing
Response headerx-request-id is your support ticket reference.