OpenRouter model

Codestral 2508

Mistral: Codestral 2508. Porównaj ceny API, dostawcę, długość kontekstu, możliwości, przypadki użycia, opóźnienie i alternatywy. General chat via OpenRouter, API workloads. $0.058 / 1M tokens / $0.169 / 1M tokens. 256k tokens.

OpenRouterPlatform curatedCatalog
StreamingTool callingJSON modeLong context
Cena wejścia$0.058 / 1M tokens
Cena wyjścia$0.169 / 1M tokens
Długość kontekstu256k tokens
Maks. output8.2k tokens

Czym jest Codestral 2508 w NextModel?

Mistral: Codestral 2508. Porównaj ceny API, dostawcę, długość kontekstu, możliwości, przypadki użycia, opóźnienie i alternatywy. General chat via OpenRouter, API workloads. $0.058 / 1M tokens / $0.169 / 1M tokens. 256k tokens.

Najlepsze zastosowania

  • General chat via OpenRouter
  • API workloads

Przykład zgodny z OpenAI

Zachowaj styl SDK OpenAI, ustaw base_url na NextModel i użyj ID katalogu mistralai--codestral-2508.

Python
from openai import OpenAI

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

resp = client.chat.completions.create(
    model="mistralai/codestral-2508",
    messages=[{"role": "user", "content": "Hello from NextModel"}]
)

print(resp.choices[0].message.content)

Podobne alternatywy

OpenRouterCatalog

This model always redirects to the latest model in the Claude Fable family.

$1.88 / 1M tokensInput$9.40 / 1M tokensOutput1MContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVision
Platform curatedNextModel gateway catalog (Go origin)
View details
OpenRouterCatalog

This model always redirects to the latest model in the Anthropic Claude Haiku family.

$0.188 / 1M tokensInput$0.94 / 1M tokensOutput200kContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVision
Platform curatedNextModel gateway catalog (Go origin)
View details
OpenRouterCatalog

This model always redirects to the latest model in the Claude Opus family.

$0.94 / 1M tokensInput$4.70 / 1M tokensOutput1MContext
Best forimage understanding, multimodal chat
RoutingConfigured
StreamingTool callingJSON modeVision
Platform curatedNextModel gateway catalog (Go origin)
View details

FAQ

Mistral: Codestral 2508 FAQ