Seedance 2.0 20% छूट | Video Generator में बनाएँ →
google
google/gemma-2-27b-it

google/gemma-2-27b-it

प्रकाशन तिथि: 2024-07-13

8,192 context · $0.65/M input tokens · $0.65/M output tokens

Gemma 2 27B by Google is an open model built from the same research and technology used to create the Gemini models. Gemma models are well-suited for a variety of...

Pricing

Pay-per-use

No upfront costs, pay only for what you use

Input$0.65 / M Tokens
Output$0.65 / M Tokens

Try the model

google/gemma-2-27b-it
Online
google
Hi! I am a helpful AI assistant. What can I do for you?

API Usage

Use the following code examples to integrate with our API:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

print(response.choices[0].message.content)

Model Introduction

Google gemma-2-27b-it

google gemma-2-27b-it


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 8192 context window for long document handling
  • Competitive pricing at $0.7/$0.7 per million tokens

Key Features

  • Context Window: 8192 tokens
  • Max Output: 4096 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderGoogle
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window8192 tokens
Max Output4096 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$0.7
Output$0.7

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: google/gemma-2-27b-it


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "google/gemma-2-27b-it",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: google/gemma-2-27b-it
  • Provider: Google

Info

Providergoogle
Typellm

Supported Functionality

Input
Text
Output
Text
Context8,192
Max Output2,048
Vision-
Function Calling-

API Access Guide

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDgoogle/gemma-2-27b-it

Gemma 2 27b It API

google/gemma-2-27b-it

Gemma 2 27B by Google is an open model built from the same research and technology used to create the Gemini models. Gemma models are well-suited for a variety of...

Input

$0.65 /M

Output

$0.65 /M

Context

8K

Max Output

2K

Try Gemma 2 27b It on WaveSpeedAI

Access Gemma 2 27b It through our unified API — OpenAI-compatible, no cold starts, transparent pricing.

Frequently Asked Questions about Gemma 2 27b It

How much does Gemma 2 27b It cost via the API?+

Pricing on WaveSpeedAI: $0.65 per million input tokens and $0.65 per million output tokens. Prompt caching and batch processing are billed separately and reduce effective cost on long, repetitive workloads.

What is the context window of Gemma 2 27b It?+

Gemma 2 27b It supports up to 8K tokens of context with up to 2K tokens of output per request.

Is Gemma 2 27b It OpenAI-compatible?+

Yes. WaveSpeedAI exposes Gemma 2 27b It through an OpenAI-compatible endpoint at https://llm.wavespeed.ai/v1. Point the official OpenAI SDK at this base URL with your WaveSpeedAI API key — no other code changes required.

How do I get started with Gemma 2 27b It?+

Sign in to WaveSpeedAI, create an API key in Access Keys, then send a request to https://llm.wavespeed.ai/v1/chat/completions with model id set to the value shown above. New accounts receive free credits to evaluate Gemma 2 27b It before paying per token.

Related LLM APIs