Developer Documentation
AI Credits connects DeepSeek, Kimi, MiniMax and Zhipu GLM, alongside OpenAI, Claude, Gemini and Grok, through one data API. Read the Chinese model guide for protocol differences, discovery, reasoning and tools, or start with the quickstart.
Official SDK 0.3.0 adds public capability discovery to TypeScript, Swift and Kotlin. DeepSeek, Kimi and MiniMax have Chat / Messages / Responses compatibility paths. GLM has Chat / Messages; Responses is not implemented. Actual access depends on the catalog and entitlements.
Core concepts
- Credits are the platform's billing unit. Money and Credit values are decimal strings in JSON; never calculate them with binary floating-point types.
- Plan entitlements determine the available models and RPM, TPM, and concurrency limits. Treat current account entitlements and
/v1/modelsas authoritative. - Available and reserved: a request may temporarily reserve Credits, settle actual usage at completion, and release the remainder.
- Statement period: personal statements use UTC calendar months, although pages may display dates in the account timezone.
Contents
- 5-minute quickstart
- Chinese models: DeepSeek / Kimi / MiniMax / GLM
- Official SDK 0.3.0
- Native Gemini integration
- API reference
- API key authentication
- Protocol and SDK support
- Migrate from the OpenAI SDK
- Migrate from Anthropic Messages
- Streaming, timeouts, and cancellation
- Retries, idempotency, and request IDs
- Rate limits and concurrency
- Billing rules
- Error handling
- Embedded integration
- Changelog and deprecation policy