generateContent 替换为 streamGenerateContent 即可Documentation Index
Fetch the complete documentation index at: https://docs.evolink.ai/llms.txt
Use this file to discover all available pages before exploring further.
https://direct.evolink.ai,对文本模型支持更好,支持长连接;https://api.evolink.ai 是多模态主力地址,对文本模型作为备用地址使用。##所有接口均需要使用Bearer Token进行认证##
获取 API Key:
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY内容生成成功
响应格式说明:
generateContent 端点时,返回 GenerateContentResponse(等待完整响应后一次性返回)streamGenerateContent 端点时,返回 StreamGenerateContentResponse(流式响应,逐块返回内容)