Models Hub
API 参考聊天系列

Playground 聊天调试接口

Playground 聊天调试接口。该接口来自 new-api 当前 router 代码,返回统一管理接口响应;具体 data 结构随业务对象变化。

编辑此页
POST
/pg/chat/completions

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/pg/chat/completions" \  -H "Content-Type: application/json" \  -d '{    "model": "gpt-5.4-nano",    "messages": [      {        "role": "system",        "content": "string"      }    ]  }'
{
  "success": true,
  "message": "string",
  "data": null
}