AI Text APIs
AI Text APIs on HiAPI
Section titled “AI Text APIs on HiAPI”HiAPI exposes text models through OpenAI-compatible endpoints while keeping the same account API key used for media generation.
| Model | Endpoint | Best for | Key capabilities |
|---|---|---|---|
| DeepSeek V4 Pro | POST /v1/responses + Chat compatible | Complex reasoning, coding Agents, long context | 1M context, 384K max output, none/low/high/max reasoning, JSON, tools |
| DeepSeek V4 Flash | POST /v1/chat/completions | High-throughput generation, reasoning, coding, Agent workflows | 1M context, streaming, high/max reasoning, JSON mode, tool calls |
Choose the protocol first
Section titled “Choose the protocol first”- New Agent and Codex workflows:
POST /v1/responseswhen listed on the model page. - Existing chat clients: compatible
POST /v1/chat/completions. - Image, video, and audio generation: asynchronous
POST /v1/tasks.
Use live pricing for current input, output, and cached-input Token rates.
Get a HiAPI API key or start with the Responses guide. Existing clients can continue with Chat Completions.