Skip to content

[BOT ISSUE] Cost update: codestral-latest pricing and context window stale #693

@github-actions

Description

@github-actions

Summary

The codestral-latest entry in model_list.json has stale pricing and context window values. Mistral's documentation confirms codestral-latest now points to codestral-2508, but the -latest alias retains the old Codestral 2501 pricing ($1/$3) instead of the current $0.3/$0.9.

Current values in catalog

Field Current Value Correct Value
input_cost_per_mil_tokens 1 0.3
output_cost_per_mil_tokens 3 0.9
max_input_tokens 32000 256000
max_output_tokens 8191 (remove or update)

Evidence

The catalog's own codestral-2508 snapshot (line 5004) already has the correct values ($0.3/$0.9, 256K context), and it declares codestral-latest as its parent. This means codestral-latest is the alias for codestral-2508 but carries outdated pricing and limits from the older codestral-2501 era.

Verification

  • Source 1: Mistral pricing page — lists "Codestral" at $0.3/M input, $0.9/M output
  • Source 2: Mistral models documentation — confirms codestral-latest points to codestral-25-08 (i.e. codestral-2508)
  • Internal consistency: The codestral-2508 entry in the same catalog file already has input_cost_per_mil_tokens: 0.3, output_cost_per_mil_tokens: 0.9, max_input_tokens: 256000
  • ID format: codestral-latest matches existing Mistral -latest alias convention
  • Recent commits: No recent commits updating codestral-latest pricing

Suggested fix

Update codestral-latest in packages/proxy/schema/model_list.json (currently around line 4985):

"codestral-latest": {
  "format": "openai",
  "flavor": "chat",
  "input_cost_per_mil_tokens": 0.3,
  "output_cost_per_mil_tokens": 0.9,
  "displayName": "Codestral",
  "max_input_tokens": 256000,
  "available_providers": [
    "mistral"
  ]
}

Local files inspected

  • packages/proxy/schema/model_list.jsoncodestral-latest at line 4985 ($1/$3, 32K), codestral-2508 at line 5004 ($0.3/$0.9, 256K)
  • No existing open issue covers this model's pricing
{
  "kind": "cost_update",
  "provider": "mistral",
  "models": ["codestral-latest"],
  "status": "active",
  "fields_to_update": {
    "input_cost_per_mil_tokens": {"old": 1, "new": 0.3},
    "output_cost_per_mil_tokens": {"old": 3, "new": 0.9},
    "max_input_tokens": {"old": 32000, "new": 256000},
    "max_output_tokens": {"old": 8191, "new": null}
  },
  "source_urls": [
    "https://mistral.ai/pricing",
    "https://docs.mistral.ai/getting-started/models/"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions