Example AI
Get a key
Text model

Gemma 4

gemma-4

gemma-4 is available at gemma-4. Below: price, specifications and request examples.

Price

model valueInput, per 1MOutput, per 1MCache, per 1M
gemma-4$0.1672$0.6316$0.0929

Prices per 1M tokens. You pay for what you use.

Specifications

Context window
262,144 tokens
Max output tokens
16,000 tokens
Image input
yes
Reasoning
no
Anthropic format (/v1/messages)
no
Data in Russia
no

Request example

Create a key in the dashboard. Streaming works too: add "stream": true.

curl
curl https://whitelabel-demo.getvibeapi.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemma-4", "messages": [{"role": "user", "content": "Hello!"}]}'
Python
from openai import OpenAI

client = OpenAI(base_url="https://whitelabel-demo.getvibeapi.com/v1", api_key="YOUR_KEY")
reply = client.chat.completions.create(
    model="gemma-4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

Questions and answers

How much does gemma-4 cost?

Input is $0.1672 per 1M tokens, output $0.6316 per 1M. You are charged for the tokens actually used, so a single request costs a fraction of a cent. Your balance and spending are in the dashboard.

What is the context window of gemma-4?

Up to 262,144 input tokens and up to 16,000 output tokens.

How do I call gemma-4?

Set the base URL to https://whitelabel-demo.getvibeapi.com/v1 and use "gemma-4" in the model field of any OpenAI-compatible client. curl and Python examples are on this page.

Is cached input cheaper?

Repeated context is billed at the cache price — $0.0929 per 1M tokens instead of $0.1672.

Does gemma-4 understand images?

Yes, images can be sent along with text.

Other models

Start using gemma-4 in minutes

Sign up by email, create a key in the dashboard, top up your balance without a contract.

Get an API key