Skip to content
Bitmesh
Get your key
All models

gemma 4 31b it

Chat model from Pearl AI, good for reasoning.

Price

Input
0.56credits per 1M tokens
Output
1.72credits per 1M tokens
Context
32Ktokens

Details

Provider
Pearl AI
Type
Chat
Good for
Reasoning
Reads
Text
Returns
Text
Context
32K
Parameters
31B
Supports
Function Calling, JSON Mode

Prices are in credits, drawn from one prepaid balance. See how credits work

Call it

use BitmeshAI\BitmeshClient;

// Optional third argument: timeout in seconds (default 30)
$client = new BitmeshClient('YOUR_CONSUMER_KEY', 'YOUR_CONSUMER_SECRET');

$response = $client->chat([
    'model' => 'pearl-ai/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,
]);

$text = $response['choices'][0]['message']['content'] ?? null;

The SDK signs the request with your key and secret. Installing it is covered in the documentation.