> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 创建完成 (Legacy)

> POST /v1/completions 兼容性端点的当前生产状态

> 更新日期：2026-06-06

# 创建完成 (Legacy)

```
POST /v1/completions
```

<Warning>
  这是兼容性端点，不是当前主推荐路径。新接入请优先使用 `/v1/chat/completions` 或 `/v1/responses`。
</Warning>

## 当前生产状态

截至 2026 年 3 月 23 日，Crazyrouter 生产环境确认：

* 路由仍然存在
* 使用经典示例模型 `gpt-5-mini` 发起请求时，返回 `503`
* 错误码为 `model_not_found`
* 错误信息为“temporarily unavailable”

也就是说，这个端点目前更适合“兼容旧客户端时再按需测试”，而不是作为默认新接入方案。

***

## 当前建议

1. 新项目直接使用 [`Chat Completions`](/chat/openai/completions)
2. 需要 GPT-5 推理、Web Search 等新能力时，优先使用 [`Responses`](/chat/responses/overview)
3. 只有在你已经有旧版客户端、并且确认自己手上的 legacy 模型在当前环境可用时，才继续尝试 `/v1/completions`

***

## Retest 模板

如果你必须验证某个旧模型是否还能走这个端点，建议先用 [`/v1/models`](/chat/openai/models) 确认模型 ID，再做最小请求：

```bash theme={null}
curl https://api.crazyrouter.com/v1/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "YOUR_LEGACY_MODEL",
    "prompt": "Say hello in three words.",
    "max_tokens": 16
  }'
```

本次生产环境实际错误示例：

```json theme={null}
{
  "error": {
    "code": "model_not_found",
    "message": "Model gpt-5-mini is temporarily unavailable",
    "type": "new_api_error"
  }
}
```
