推荐接口
调用前确认
- 从控制台复制准确的模型 ID。
- OpenAI SDK 的 Base URL 使用
https://api.maxapi.ai/v1。 - 消息角色和多模态内容必须符合具体模型支持的格式。
- 流式响应需要在客户端逐块读取,不要等待完整 JSON。
运行第一个聊天请求
查看 cURL、Python 和 JavaScript 完整示例。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
聊天补全、文本补全和向量嵌入接口。
| 场景 | 方法与路径 | 主要响应字段 |
|---|---|---|
| 多轮对话与工具调用 | POST /v1/chat/completions | choices[].message、usage |
| 传统文本补全 | POST /v1/completions | choices[].text、usage |
| 生成向量 | POST /v1/embeddings | data[].embedding、usage |
https://api.maxapi.ai/v1。