Google ·

Gemini 3.1 Pro

Google's multimodal model with an extended context window.

text text
google/gemini-3.1-pro

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.

header
X-API-Key: YOUR_API_KEY

Endpoint

synchronous · chat completions

POSThttps://api.dev.pika.art/genai/v1beta/models/gemini-3.1-pro:generateContent

Request

POST /genai/v1beta/models/gemini-3.1-pro:generateContent

Request

curl -X POST https://api.dev.pika.art/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://api.dev.pika.art/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

TierPrice
input$1.60 / 1M tokens
output$9.60 / 1M tokens

Per-model pricing

Transparent, usage-based rates for every Google model.

Veo 3.1 Lite

from $0.024 / sec
Image to Video

Lyria 3

$0.032 / request
Text to Audio

Lyria 2

$0.048 / request
Music

Lyria 3 Pro

$0.064 / request
Text to Audio

Veo 3.1 Fast

from $0.064 / sec
Text to Video

Veo 3.1 Fast Video Extension

from $0.064 / sec
Video Extension

Veo 3.1

from $0.16 / sec
Text to Video

Veo 3.1 Video Extension

from $0.16 / sec
Video Extension

Gemini 3.1 Pro

Current
$1.6 / $9.6 per 1M tok

Gemini Omni Flash Image To Video

$1.2 / $7.2 per 1M tok
Image to Video

Gemini Omni Flash Reference To Video

$1.2 / $7.2 per 1M tok
Reference to Video

Gemini Omni Flash Text To Video

$1.2 / $7.2 per 1M tok
Text to Video

Gemini Omni Flash Video To Video

$1.2 / $7.2 per 1M tok
Video to Video

Nano Banana 2

$0.5 / $3 per 1M tok
Image to Image

Nano Banana 2

$0.5 / $3 per 1M tok
Text to Image

Nano Banana 2 Lite

$0.25 / $1.5 per 1M tok
Image to Image

Nano Banana 2 Lite

$0.25 / $1.5 per 1M tok
Text to Image

Nano Banana Pro

$2 / $12 per 1M tok
Image to Image

Nano Banana Pro

$2 / $12 per 1M tok
Text to Image