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

料金

従量課金

初期費用なし、使った分だけお支払い

入力$0.30 / M Tokens
出力$0.90 / M Tokens

モデルを試す

mistralai/codestral-2508
オンライン
mistral
こんにちは!お手伝いできるAIアシスタントです。何かお手伝いできることはありますか?

API 利用

以下のコード例を使用して API と連携してください:

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)

モデル紹介

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

情報

プロバイダーmistral
タイプllm

対応機能

入力
テキスト
出力
テキスト
コンテキスト256,000
最大出力4,096
Vision-
Function Calling✓ 対応

API アクセスガイド

Base URLhttps://llm.wavespeed.ai/v1
API エンドポイントchat/completions
モデル 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)

入力

$0.3 /M

出力

$0.9 /M

コンテキスト

256K

最大出力

4K

ツール利用

対応

WaveSpeedAIでCodestral 2508を試す

統合APIを通じてCodestral 2508にアクセス — OpenAI互換、コールドスタートなし、透明な料金。

Codestral 2508に関するよくある質問

Codestral 2508 API の料金はいくらですか?+

WaveSpeedAI の料金: 入力 100 万トークンあたり $0.30、出力 100 万トークンあたり $0.90。プロンプトキャッシュとバッチ処理は別途料金で、長く反復的なワークロードでは実効コストを下げられます。

Codestral 2508 のコンテキストウィンドウはどのくらいですか?+

Codestral 2508 はリクエストあたり最大 256K のコンテキストトークンと最大 4K の出力トークンをサポートします。

Codestral 2508 は OpenAI 互換ですか?+

はい。WaveSpeedAI は OpenAI 互換エンドポイント https://llm.wavespeed.ai/v1 で Codestral 2508 を提供します。公式 OpenAI SDK のベース URL をこちらに変更し WaveSpeedAI の API キーを設定するだけで利用可能です。

Codestral 2508 を使い始めるには?+

WaveSpeedAI にサインインし、Access Keys で API キーを作成して、上に表示されているモデル ID を指定して https://llm.wavespeed.ai/v1/chat/completions にリクエストを送信してください。新規アカウントには Codestral 2508 を試用できる無料クレジットが付与されます。

関連 LLM API