> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# GPT-6 Sol API

> 通过 BeatAPI Responses API 调用精确型号 gpt-6-sol。

使用完整型号 ID `gpt-6-sol`。它与 GPT-6.1 Sol、GPT-5.6 Sol 是不同型号。

## Responses API

`POST https://api.beatapi.io/v1/responses`

```typescript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.BEATAPI_API_KEY,
  baseURL: "https://api.beatapi.io/v1"
});

const response = await client.responses.create({
  model: "gpt-6-sol",
  input: "Suggest a minimal fix for a webhook handler that processes duplicate events."
});

console.log(response.output_text);
```

```bash
curl --request POST \
  --url https://api.beatapi.io/v1/responses \
  --header 'Authorization: Bearer <BEATAPI_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gpt-6-sol",
    "input": "Suggest a minimal fix for a webhook handler that processes duplicate events."
  }'
```

## 可用性与请求格式

上线前用同一 Bearer 密钥调用 `GET https://api.beatapi.io/v1/models`，确认账号已启用 `gpt-6-sol`。其他 SDK 格式见[文本 API 格式指南](/text-api)及该密钥对应的端点类型。格式兼容不代表所有模型专属选项或托管工具均可用。

请核对[当前价格表](https://beatapi.io/zh/pricing)，并在 Dashboard 用量日志查看请求 ID、Token 用量与结算金额。