Skip to main content
POST
Claude 风格消息

Base URL

  • https://api.qhaigc.net
  • https://api-hk.qhaigc.net

Endpoint

POST /v1/messages

鉴权与请求头

请求体格式(Claude 原生)

请求示例

响应结构示例

官方格式参考

相关页面

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

模型名称,如 claude-sonnet-4-5

max_tokens
integer
required

最大输出 token 数

messages
object[]
required
system
string

系统提示词

temperature
number
stream
boolean

Response

200 - application/json

成功响应

id
string
type
string
role
string
model
string
content
object[]
stop_reason
string
usage
object