跳转到主要内容
POST
cURL

查询参数

key
string
必填

AnyFast API 密钥。

alt
enum<string>

设为 sse 可显式请求 Server-Sent Events 模式。

可用选项:
sse

请求体

application/json
contents
object[]
必填
generationConfig
object

响应

Server-Sent Events 数据流。每个 data 事件包含一个 JSON GenerateContentResponse 数据块。

以换行分隔的 SSE 事件,每个事件包含 JSON 响应数据块。