API for the model google/gemma-3-27b-it:nextbit at Hugging Face Inference, $0.08 / $0.35 per million tokens, context 131,072 tokens. curl, Python and JavaScript samples, live testing.
google/gemma-3-27b-it served by NextBit through the Hugging Face router (fp8 quantization).
- Type
- Model
- Provider
- Hugging Face Inference
- Host
- NextBit
- Model ID
google/gemma-3-27b-it:nextbit- Pricing
- Paid
- Input / output price
- $0.08 / $0.35 per million tokens
- Keyless access
- No
- Key variable
HF_TOKEN- Base URL (OpenAI-compatible)
https://router.huggingface.co/v1- Context
- 131,072 tokens
- Inputs
- Text, Image
- Features
- JSON output
- Response time
- First token 996 ms · 38 tokens/s · uptime 99.1%
- Developer rating
- Not rated yet
- Documentation
- https://huggingface.co/google/gemma-3-27b-it
Code samples
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"google/gemma-3-27b-it:nextbit","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="google/gemma-3-27b-it:nextbit",
messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'google/gemma-3-27b-it:nextbit',
messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the gemma-3-27b-it · NextBit API free?
No: gemma-3-27b-it · NextBit is a paid API ($0.08 / $0.35 per million tokens).
How do I call gemma-3-27b-it · NextBit from my code?
gemma-3-27b-it · NextBit exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: google/gemma-3-27b-it:nextbit. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
What is the context window of gemma-3-27b-it · NextBit?
gemma-3-27b-it · NextBit accepts up to 131,072 tokens of context (prompt and history).
What are the alternatives to gemma-3-27b-it · NextBit?
Similar APIs listed in the catalog: gemma-4-26B-A4B-it · AkashML, gemma-4-26B-A4B-it · Cloudflare, gemma-4-26B-A4B-it · DeepInfra, gemma-4-26B-A4B-it · Google, gemma-4-26B-A4B-it · Makora.
Alternatives
- gemma-4-26B-A4B-it · AkashML — Paid
- gemma-4-26B-A4B-it · Cloudflare — Paid
- gemma-4-26B-A4B-it · DeepInfra — Paid
- gemma-4-26B-A4B-it · Google — Paid
- gemma-4-26B-A4B-it · Makora — Paid
- gemma-4-26B-A4B-it · NextBit — Paid
- gemma-4-26B-A4B-it · Parasail — Paid
- gemma-4-26B-A4B-it · PrimeIntellect — Paid
- gemma-4-26B-A4B-it · Venice — Paid
- gemma-4-31B-it · CoreWeave — Paid
- gemma-4-31B-it · Crusoe — Paid
- gemma-4-31B-it · DeepInfra — Paid