对话(messages)
头参数
x-api-keystring必填Example:
您的唯一API密钥用于身份验证。
此密钥需要包含在所有API请求的头中,以验证您的帐户并访问服务。通过控制台获取您的API密钥。
{{API_KEY}}content-typestring必填Example:
application/json请求体
modelstring必填
模型名, 站点所有llm模型均已兼容anthropic格式
max_tokensinteger必填
最大token
响应
200成功
application/json
idstring必填
modelstring必填
rolestring必填
stop_reasonstring必填
stop_sequencenull必填
typestring必填
400错误
application/json
post
/v1/messages最后更新于