Google ·
Gemini 3.1 Pro
Google's multimodal model with an extended context window.
Capabilities
Gemini 3.1 Pro is a language model served through the Pika developer API. Send it a list of chat messages and it streams back a text reply, using the GenAI generateContent shape.
Authentication
api key header
The Pika API uses API keys to authenticate requests. Send your key in the X-API-Keyheader. Your API key is a secret. Don't expose it in browsers or other client-side code. Instead, call the API from your server. The signed-in playground uses a portal session and never sends your API key.
X-API-Key: YOUR_API_KEY
Endpoint
synchronous · chat completions
Request
POST /genai/v1beta/models/gemini-3.1-pro:generateContent
Request
curl -X POST https://089e99349ace.pikalabs.app/genai/v1beta/models/gemini-3.1-pro:generateContent \-H "X-API-Key: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"contents": [{ "role": "user", "parts": [{ "text": "Hello, who are you?" }] }]}'
Pass google/gemini-3.1-pro as the model and a messages array of { role, content } turns. Set stream: true to receive tokens incrementally over server-sent events.
The Python and TypeScript examples use the official Google GenAI SDK with its base URL pointed at https://089e99349ace.pikalabs.app/genai — no Pika-specific SDK is needed. Keep your Pika API key and existing Google GenAI code works without a rewrite.
Errors
shared across calls
Errors use conventional HTTP status codes with a JSON body of the shape {"message": "..."}. A missing or invalid key returns 401.
Pricing
billed per token
| Tier | Price |
|---|---|
| input | $2.00 / 1M tokens |
| output | $12.00 / 1M tokens |
Per-model pricing
Transparent, usage-based rates for every Google model.
Veo 3.1 Lite
Nano Banana 2 Lite
Nano Banana 2 Lite
Nano Banana 2
Nano Banana 2
Lyria 2
Veo 3.1 Fast
Veo 3.1 Fast Video Extension
Nano Banana Pro
Nano Banana Pro
Veo 3.1
Veo 3.1 Video Extension
Gemini 3.1 Pro
CurrentGemini Omni Flash Image To Video
Gemini Omni Flash Reference To Video
Gemini Omni Flash Text To Video
Gemini Omni Flash Video To Video