Gemini 3.8 Flash
Gemini 3.8 Flash已收录于企业 API 模型库。
能力
Gemini 3.8 Flash is a language model served through the Uika developer API. Send it a list of chat messages and it streams back a text reply, using the GenAI generateContent shape.
身份验证
API 密钥标头
Uika API 使用 API 密钥来验证请求。将您的密钥发送到 X-API 密钥 标题。您的 API 密钥是一个秘密。不要在浏览器或其他客户端代码中公开它。相反,从您的服务器调用 API。登录的 Playground 使用门户会话,并且从不发送您的 API 密钥。
X-API-Key: YOUR_API_KEY
端点
同步 · 对话补全
请求
POST /genai/v1beta/models/gemini-3.8-flash:generateContent
请求
curl -X POST https://api.dev.pika.art/genai/v1beta/models/gemini-3.8-flash:generateContent \-H "X-API-Key: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"contents": [{ "role": "user", "parts": [{ "text": "Hello, who are you?" }] }]}'
将 google/gemini-3.8-flash 设为模型,并传入 messages 消息数组,其中每项包含 { role, content } 。设置 流:真 后,可通过服务器发送事件(SSE)逐步接收生成内容。
The Python and TypeScript examples use the official Google GenAI SDK with its base URL pointed at https://api.dev.pika.art/genai — no Uika-specific SDK is needed. Keep your Uika API key and existing Google GenAI code works without a rewrite.
错误
在通话中共享
错误使用传统的 HTTP 状态代码以及形状的 JSON 主体 {"message": "..."}. A missing or invalid key returns 401.