ModelInfo
简体中文
全部模型

Codestral

用于代码补全的语言模型,擅长低延迟、高频率任务,如中间填充和代码生成。

Mistral AIcodestral-25082025-07-30报告数据错误

规格

上下文
131.1K
最大输出
—
输入价
$0.3/ 百万 Token
输出价
$0.9/ 百万 Token
发布日期
2025-07-30

上下文

上下文
131.1K
最大输入
—
最大输出
—

价格 · USD / 百万 Token

输入
$0.3
输出
$0.9
缓存读取
$0.03
缓存写入
—

输入输出

输入
文本
输出
文本

API

接口类型
chatbatch

思考

官方未公布

源信息

状态
可用
发布日期
2025-07-30
知识截止
—

能力

已确认
toolsstructured_outputcachingbatch
来源 · 官方文档核验 2026-10-10

调用方式

1 个 Provider

mistralmodel = codestral-2508

chat
POSThttps://api.mistral.ai/v1/chat/completions
batch
POSThttps://api.mistral.ai/v1/batch

JSON

标准格式
codestral-2508.json
{
  "id": "codestral-2508",
  "object": "model",
  "created": 1753833600,
  "owned_by": "mistral",
  "name": "Codestral",
  "api": {
    "types": [
      "chat",
      "batch"
    ]
  },
  "limits": {
    "context": 131072,
    "input": null,
    "output": null
  },
  "modalities": {
    "input": [
      "text"
    ],
    "output": [
      "text"
    ]
  },
  "reasoning": {
    "supported": null,
    "efforts": []
  },
  "pricing": {
    "currency": "USD",
    "unit": "1M_tokens",
    "input": 0.3,
    "output": 0.9,
    "cache_read": 0.03,
    "cache_write": null
  },
  "features": [
    "tools",
    "structured_output",
    "caching",
    "batch"
  ],
  "info": {
    "status": "active",
    "release_date": "2025-07-30",
    "knowledge_cutoff": null,
    "description": "Language model for code completion specializing in low-latency, high-frequency tasks such as fill-in-the-middle and code generation.",
    "docs": "https://docs.mistral.ai/models/codestral-25-08",
    "verified_at": "2026-10-10"
  }
}

官方来源

4