← All models
Google logo

Gemma 2 2B IT

Chat

google:gemma-2-2b-it

Added July 16, 2024

Usage

import OpenAI from "openai";

const client = new OpenAI({
    baseURL: "https://api.tributary.cc/openai/v1",
    apiKey: "<TRIBUTARY_API_KEY>",
});

const completion = await client.chat.completions.create({
    model: "google:gemma-2-2b-it",
    messages: [
        { role: "user", content: "Hello!" }
    ],
});

console.log(completion.choices[0].message.content);

Providers

Provider Model Context Output Input $/M Output $/M
Featherless google/gemma-2-2b-it 8K 8K Free Free
Nebius google/gemma-2-2b-it 8K 4K $0.02 $0.06
Context/output in tokens. Prices in USD per 1M tokens.