Request & Response Headers

Request & Response Headers

Authentication

HeaderFormatDescription
AuthorizationBearer ck-xxxxxRecommended for OpenAI SDKs and most HTTP clients
x-api-keyck-xxxxxCompatible with Anthropic-style clients

If both headers are present, Authorization takes precedence.

Request Headers

HeaderDescription
Content-Type: application/jsonJSON POST requests
Content-Type: multipart/form-dataFile upload requests such as audio transcription
anthropic-versionRelevant only to Anthropic-compatible paths
anthropic-betaRelevant only to Anthropic-compatible paths
X-Request-IdOptional client request ID

Response Headers

HeaderDescription
X-Request-IdRequest trace ID; include it when contacting support
X-RateLimit-LimitCurrent requests-per-minute limit when available
X-RateLimit-RemainingRemaining requests in the current window when available
Content-TypeJSON or SSE stream

Routing, region, and failover details are admin diagnostics and are not part of the stable public API header contract.

CORS

Browser requests are allowed only from trusted Chuizi.AI site origins. Server-to-server calls, SDKs, and curl usually do not include an Origin header and are not affected by browser CORS.

Never expose API keys in frontend browser code. Proxy browser features through your backend.

Request & Response Headers — Chuizi AI Docs | Chuizi AI