GPT-6.1 Sol 对话补全
通过 PixMind API 使用 GPT-6.1 Sol 完成复杂编程、代码审查和长文档推理,支持流式输出,按官方 Standard 价格 8 折计费。
GPT-6.1 Sol 适合复杂编程、代码审查和长文档推理。当前文本线路支持流式响应,输入上限 922K Token、输出上限 12.8K Token。站内与 API 均为官方 Standard 单价 8 折;输入超过 272K Token 时,整次请求采用长上下文档价格。
通过 PixMind 兼容 OpenAI 的聊天补全接口调用 GPT-6.1 Sol。
提供方
OpenAI模型 ID
gpt-6.1-sol请求端点
POST /api-platform/v1/chat/completions鉴权与请求地址
API 地址为 https://aihub-admin.aimix.pro。创建和查询任务均须传入 Authorization: Bearer <PIXMIND_API_KEY>;提交 JSON 时还须设置 Content-Type: application/json。请将密钥保存在服务端环境变量中。
模型说明
- 请将 API Key 保存在服务端;客户端需要增量输出时可启用流式返回。
- 当前文本线路支持流式响应,输入上限 922K Token,输出上限 12.8K Token。
- 输入超过 272K Token 后,整次请求使用长上下文档。
- 默认提示词缓存保留时间为 30 分钟。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 稳定的 PixMind 模型 ID,请使用 `gpt-6.1-sol`。 可选值: |
messages | array | 是 | 兼容 OpenAI 的对话消息。Gemini 用户消息的 content 可以是字符串,也可以是 text、image_url 和 video_url 内容块数组。 |
max_tokens | integer | 否 | 本次最多生成的 completion token 数量,须为不超过 12800 的正整数。 Playground 默认值: |
temperature | number | 否 | 响应采样温度;支持此参数的模型可传 0 至 2 之间的数值。 默认值: |
reasoning_effort | string | 否 | 本次请求的模型思考强度。 可选值: 默认值: |
stream | boolean | 否 | 启用后逐步流式返回 token。 可选值: 默认值: |
请求示例
curl --request POST 'https://aihub-admin.aimix.pro/api-platform/v1/chat/completions' \
-H "Authorization: Bearer $PIXMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": "Draft three launch concepts for this product."
}
],
"reasoning_effort": "medium",
"max_tokens": 1024,
"stream": false
}'// Node.js 20+. Keep the API key on your server.
const apiKey = process.env.PIXMIND_API_KEY;
if (!apiKey) throw new Error("PIXMIND_API_KEY is required");
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "gpt-6.1-sol",
"messages": [
{
"role": "user",
"content": "Draft three launch concepts for this product."
}
],
"reasoning_effort": "medium",
"max_tokens": 1024,
"stream": false
}),
signal: AbortSignal.timeout(30_000)
});
const task = await response.json();
if (!response.ok) {
throw new Error(task.message ?? task.error?.message ?? `HTTP ${response.status}`);
}
console.log(task);响应示例
非流式对话补全直接返回 choices。传入 stream: true 时应读取 SSE 流。
{
"id": "chatcmpl_example",
"object": "chat.completion",
"model": "gpt-6.1-sol",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello!"
},
"finish_reason": "stop"
}
]
}