Vibe API Manual
Powered by Vibe Model
文本系列
创建对话请求 (OpenAI)
生成对话回复,支持上下文。这是最常用的模型接口。
POST
/v1/chat/completionscurl https://api.shuoyao.tech/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [
{ "role": "system", "content": "你是一个得力的助手。" },
{ "role": "user", "content": "你好,请做下简单的自我介绍" }
],
"stream": false,
"max_tokens": 512,
"temperature": 0.7
}'