Llemma 7b

Other chattool_use

API ID: eleutherai/llemma_7b

Input Price
$0.80
/1M tokens
Output Price
$1.20
/1M tokens

About Llemma 7b

Llemma 7B is a language model for mathematics. It was initialized with Code Llama 7B weights, and trained on the Proof-Pile-2 for 200B tokens. Llemma models are particularly strong at chain-of-thought mathematical reasoning and using computational tools for mathematics, such as Python and formal theorem provers.

๐Ÿ’ฐ
Price Ranking
#926 lowest price among 1240 Chat models

Model Specifications

Context Length
4k
Max Output
4k
Release Date
2025-04-14
Capabilities
chat tool_use
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.72
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$22.80
/month
1000 tickets/day, ~800 tokens each

Other Model Lineup

Compare all models from Other to find the best fit

Model Input Output Context Capabilities
Llemma 7b Current Free Free 4k chat tool_use
Riverflow V2 Max Preview Free Free 8k chat vision image_gen
Riverflow V2 Standard Preview Free Free 8k chat vision image_gen
Riverflow V2 Fast Preview Free Free 8k chat vision image_gen
AFM 4.5B Free Free 66k chat
AFM 4.5B Free Free 66k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Morph Morph V3 Fast
Input: $0.80
Output: $1.20
Context: 82k
OpenAI GPT-3.5 Turbo
Input: $0.50
Output: $1.50
Context: 16k
Mistral Mistral Large 3 2512
Input: $0.50
Output: $1.50
Context: 262k
Alibaba Qwen Qwen3 VL 32B Instruct
Input: $0.50
Output: $1.50
Context: 131k

๐Ÿš€ Quick Start

Get started with Llemma 7b API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="eleutherai/llemma_7b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)