models/Google/Gemma-7b-IT-Lora
Google

Gemma-7b-IT-Lora

text
Playground →Compare

This is a Gemma-7B base model that Cloudflare dedicates for inference with LoRA adapters. Gemma is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models.

MODALITIES
text
INPUT
$0.080 /1M
OUTPUT
$0.160 /1M
CONTEXT
4K tok
MAX OUTPUT
4K tok
RELEASED
2024-04-02

Gemma-7b-IT-Lora (google/gemma-7b-it-lora) is a text model from Google, released 2024-04-02. Context window: 4,096 tokens; max output 4,096. Pricing via AIgateway: input $0.080/M tokens, output $0.160/M tokens. Capabilities: streaming. Call it via https://api.aigateway.sh/v1/chat/completions with the OpenAI SDK — set model="google/gemma-7b-it-lora". Best for: Chatbots, Content generation, Agentic workflows.

model · google/gemma-7b-it-lorafamily · Gemma

Use this model

model: google/gemma-7b-it-lora
curl https://api.aigateway.sh/v1/chat/completions \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemma-7b-it-lora","messages":[{"role":"user","content":"hello"}],"stream":true}'

Capabilities

Streaming
CONTEXT
4,096 tok
MAX OUTPUT
4,096 tok

Strengths

  • General-purpose chat
  • Long context
  • Tool use

Use cases

ChatbotsContent generationAgentic workflows

Pricing

Input$0.080 / 1M tokens
Output$0.160 / 1M tokens
You pay pass-through · 5% applied at credit top-up, not per-call.
Try in playground →CompareAPI referenceSee usage ranking →

Collections

More text models →More from GoogleFrontier models →Free-tier models →
API schema

Call Gemma-7b-IT-Lora from any OpenAI SDK

POST https://api.aigateway.sh/v1/chat/completions·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "google/gemma-7b-it-lora",
  "messages": [
    { "role": "system", "content": "You are a helpful assistant." },
    { "role": "user",   "content": "Hello!" }
  ],
  "temperature": 0.7,
  "top_p": 0.95,
  "max_tokens": 1024,
  "stream": false

}

Response

json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1776947082,
  "model": "google/gemma-7b-it-lora",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 24,
    "completion_tokens": 12,
    "total_tokens": 36
  }
}

Streaming (SSE) — set "stream": true

// 1. Role announcement (first chunk):
data: {"choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}

// 2. Content chunks (final answer):
data: {"choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}
data: {"choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}

// Finish chunk:
data: {"choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}

// Terminator:
data: [DONE]

Quickstart

# pip install aigateway-py openai
# aigateway-py adds sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK covers chat — drop-in per our SDK's own guidance.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

stream = client.chat.completions.create(
    model="google/gemma-7b-it-lora",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="", flush=True)

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →

Frequently asked questions

What is Gemma-7b-IT-Lora?
This is a Gemma-7B base model that Cloudflare dedicates for inference with LoRA adapters. Gemma is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models. It is a text model from Google, accessible via AIgateway's OpenAI-compatible API at slug google/gemma-7b-it-lora.
How much does Gemma-7b-IT-Lora cost via AIgateway?
Input costs $0.080 per 1M tokens; output costs $0.160 per 1M tokens. Pass-through plus a 5% platform fee applied at top-up, not per call.
What is the context window of Gemma-7b-IT-Lora?
4,096 tokens. Maximum output is 4,096 tokens.
How do I call Gemma-7b-IT-Lora from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "google/gemma-7b-it-lora". The request and response shapes match OpenAI exactly.
Does Gemma-7b-IT-Lora support streaming, tool calling, vision, and JSON mode?
Streaming — yes. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
What are the best use cases for Gemma-7b-IT-Lora?
Chatbots, Content generation, Agentic workflows. Key strengths: General-purpose chat; Long context; Tool use.
Can I bring my own Google API key (BYOK)?
Yes. Attach a Google key in your AIgateway dashboard and this model flips to pass-through — you pay Google directly and AIgateway waives the 5% platform fee on those calls.