文本对话
基本对话
文本对话
基本对话
以下是最简单最基础的入门对话请求示例:
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "你好"
}
]
}'
适用于所有对话模型。