Back to Models
Description
gemma 4 31B it by Google. This model supports chat capabilities. Main use: Reasoning. Variant: Function CallingJSON Mode.
Specifications
- Context Length:
- 256K
- Variant:
- Function CallingJSON Mode
- Parameters:
- 31B
- Input Modalities:
- Text, Image
- Output Modalities:
- Text
- Main Use:
- Reasoning
Pricing
- Input Cost:
- 0.78 Credits / 1M tokens
- Output Cost:
- 1.94 Credits / 1M tokens
Usage Example
const { Client } = require('ai-proxy-sdk');
const client = new Client({
consumerKey: process.env.BITMESH_CONSUMER_KEY,
consumerSecret: process.env.BITMESH_CONSUMER_SECRET,
baseUrl: process.env.BITMESH_API_BASE_URL || 'https://api.bitmesh.ai'
});
const response = await client.chat.completions.create({
model: 'google/gemma-4-31b-it',
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'What are some fun things to do with AI?' }
],
max_tokens: 1000
});