Seedance 2.0 | Special Offer ✦ 10% OFF NOW | Ends May 13 (UTC+0)
mistral
mistralai/codestral-2508

mistralai/codestral-2508

256,000 context · $0.30/M input tokens · $0.90/M output tokens

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. Blog Post

Fiyatlandırma

Kullandıkça öde

Ön ödeme yok, yalnızca kullandığınız kadar ödeyin

Giriş$0.30 / M Tokens
Çıkış$0.90 / M Tokens

Modeli dene

mistralai/codestral-2508
Çevrimiçi
mistral
Merhaba! Yardımcı bir yapay zeka asistanıyım. Size nasıl yardımcı olabilirim?

API Kullanımı

API'mizle entegre etmek için aşağıdaki kod örneklerini kullanın:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

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

Model Tanıtımı

Mistralai codestral-2508

mistralai codestral-2508


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 256000 context window for long document handling
  • Competitive pricing at $0.3/$0.10 per million tokens

Key Features

  • Context Window: 256000 tokens
  • Max Output: 4096 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderMistralai
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window256000 tokens
Max Output4096 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$0.3
Output$0.10

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: mistralai/codestral-2508


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

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

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

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "mistralai/codestral-2508",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: mistralai/codestral-2508
  • Provider: Mistralai

Bilgi

Sağlayıcımistral
Türllm

Desteklenen İşlevsellik

Giriş
Metin
Çıkış
Metin
Bağlam256,000
Maks. Çıkış4,096
Vision-
Function Calling✓ Destekleniyor

API Erişim Kılavuzu

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDmistralai/codestral-2508

Codestral 2508 API

mistralai/codestral-2508

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. [Blog Post](https://mistral.ai/news/codestral-25-08)

Giriş

$0.3 /M

Çıkış

$0.9 /M

Bağlam

256K

Maks. Çıkış

4K

Araç Kullanımı

Destekleniyor

Codestral 2508'i WaveSpeedAI'da deneyin

Birleşik API'miz aracılığıyla Codestral 2508'e erişin — OpenAI uyumlu, soğuk başlatma yok, şeffaf fiyatlandırma.

Codestral 2508 hakkında sık sorulan sorular

Codestral 2508 API ücreti ne kadar?+

WaveSpeedAI fiyatlandırması: milyon giriş tokenı başına $0.30 ve milyon çıkış tokenı başına $0.90. Prompt caching ve toplu işleme ayrı faturalanır ve uzun, tekrar eden yüklerde etkin maliyeti düşürür.

Codestral 2508'in bağlam penceresi nedir?+

Codestral 2508 istek başına 256K bağlam tokenını ve 4K çıkış tokenını destekler.

Codestral 2508 OpenAI uyumlu mu?+

Evet. WaveSpeedAI, Codestral 2508 modelini https://llm.wavespeed.ai/v1 adresindeki OpenAI uyumlu endpoint üzerinden sunar. Resmi OpenAI SDK'sını WaveSpeedAI API anahtarınızla bu base URL'ye yöneltin — başka kod değişikliği gerekmez.

Codestral 2508'e nasıl başlarım?+

WaveSpeedAI'a giriş yapın, Access Keys'te bir API anahtarı oluşturun, ardından yukarıda gösterilen model id ile https://llm.wavespeed.ai/v1/chat/completions adresine bir istek gönderin. Yeni hesaplar Codestral 2508'i değerlendirmek için ücretsiz krediler alır.

İlgili LLM API'leri