# 对话与文本

使用站内 API Key 接入文本模型。

## 模型与协议

| 模型 | 接口 |
| --- | --- |
| gpt-6-sol / gpt-6-astra / gpt-5.6-sol | /v1/responses; /v1/chat/completions; /v1/responses/compact |
| deepseek-v4.1-flash | /v1/chat/completions |

## 对话示例

```bash
curl --fail-with-body 'https://noveadream.com/v1/chat/completions' \
  -H "Authorization: Bearer $NOVEA_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "gpt-6-sol",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "stream": false
}'
```

## 读取回复

非流式回复读取 choices[0].message.content；开启 stream 后按 SSE 处理增量。具体参数需按所选模型与接口协议填写。
