> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eztokens.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 对话补全

> 支持流式输出、函数调用、结构化输出和推理思考的文本生成

EzTokens 对话 API 遵循 **OpenAI Chat Completions 格式**。所有请求发送至：

```text theme={null}
POST https://api.eztokens.ai/v1/chat/completions
```

## 快速开始

```bash theme={null}
curl https://api.eztokens.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EZTOKENS_API_KEY" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "你好！"}
    ]
  }'
```
