LiveLLMAPI

Devstral 2

Devstral 2 is a state-of-the-art open-source model by Mistral AI specializing in agentic coding.

model: devstral-2
262K context tool calling coding
Pay-as-you-go pricing Live
Input / 1M
$0.4
Output / 1M
$2
Cached input reads (0.1×) $0.04 / 1M
$1 buys (~1K in / 500 out) ~714 requests
Web search (:online) Supported

No monthly fee · credits never expire · set spend caps anytime

Cost estimator

Estimate your exact pay-as-you-go spend before shipping.

Cost / request
—
Estimated monthly
—
Total tokens / month
—

Drop-in integration

OpenAI-compatible endpoint at https://api.livellmapi.com/v1

from openai import OpenAI

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

resp = client.chat.completions.create(
    model="devstral-2",
    messages=[{"role": "user", "content": "Explain consistent hashing in 3 bullets."}],
)
print(resp.choices[0].message.content)

Specifications

Model ID devstral-2
Context window 262,144 tokens (262K)
Input modalities text
Output modalities text
Released Dec 9, 2025
Billing Pay-as-you-go (micro-USD metering)

Capabilities & parameters

Streaming (SSE) Yes
Prompt caching 0.1× read
Tool calling Yes
Vision input —
Structured JSON Yes
Web search :online
Supported request parameters
temperaturetop_pmax_tokensstreamstopseedpresence_penaltyfrequency_penaltyresponse_formattoolstool_choiceparallel_tool_calls

Compare similar models

Comparable pricing and capabilities — swap with a one-line model ID change.

View all models →