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 |
|---|---|---|---|
| GPT-6 Astra | POST /v1/responses · streaming only | Reasoning, code review, function workflows | low/medium/high/xhigh/max reasoning, strict JSON Schema, function calls |
| Claude Sonnet 4.6 | POST /v1/chat/completions | Text conversations, coding, and tool workflows | Streaming and OpenAI-compatible tools |
| Kimi K3 | POST /v1/chat/completions | Long-context reasoning, coding, and tool workflows | 1M context, low/high/max reasoning, streaming, JSON, tools |
| DeepSeek V4.1 Flash | POST /v1/responses + Chat | Text and image input, reasoning | none/low/high/max, SSE |
| 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 Vision Exp | POST /v1/responses + Chat compatible | Image understanding, visual questions, function tools | 1,048,576 context, 262,144 output limit, none/low/medium/high reasoning, JSON |
| DeepSeek V4 Flash | POST /v1/chat/completions | High-throughput generation, reasoning, coding, Agent workflows | 1M context, streaming, high/max reasoning, JSON mode, tool calls |
| GLM-5.3 | POST /v1/chat/completions | Text generation through an OpenAI-compatible endpoint | See the model page for the current request contract |
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.