Files
librefang-registry/providers/xai.toml
T
Evan 85db9c8d78 feat(providers): add supports_thinking to thinking-capable models (#53)
* feat(providers): add supports_thinking field to thinking-capable models

Mark models that support extended thinking / reasoning with
supports_thinking = true so the dashboard can conditionally show
thinking toggles.

Providers updated: anthropic (8), codex-cli (7), gemini (6),
openai (3), qwen (2), deepseek (1). Schema updated accordingly.

* feat(providers): add supports_thinking to remaining thinking-capable models

Cover 19 additional providers: alibaba-coding-plan, allenai, arcee-ai,
fireworks, gemini-cli, groq, liquid, nvidia-nim, ollama, openai (codex),
openrouter, perplexity, qwen-code, replicate, sambanova, tngtech,
venice, vertex-ai, xai.

Total: 62 models across 24 providers now have supports_thinking = true.

* feat(providers): add supports_thinking to chutes, huggingface, together

Missed in prior commits: DeepSeek-R1 on chutes/huggingface/together,
Qwen3-235B on chutes. Total now 66 models across 27 providers.

* feat(providers): add supports_thinking to bedrock, claude-code, aider, moonshot, stepfun

- bedrock: all 5 Claude models
- claude-code: all 3 models (opus/sonnet/haiku wrappers)
- aider: aider/sonnet (Claude-backed)
- moonshot: kimi-k2.5 (reasoning mode)
- stepfun: step-1o-turbo-vision (reasoning model)

Total: 77 models across 32 providers.

* feat(providers): add supports_thinking to alibaba kimi-k2.5, openrouter claude-sonnet-4
2026-04-15 00:46:51 +09:00

129 lines
2.6 KiB
TOML

# xAI — https://x.ai
# Models: 9
[provider]
id = "xai"
display_name = "xAI"
api_key_env = "XAI_API_KEY"
base_url = "https://api.x.ai/v1"
key_required = true
[[models]]
id = "grok-4-0709"
display_name = "Grok 4"
tier = "frontier"
context_window = 256000
max_output_tokens = 32768
input_cost_per_m = 3.0
output_cost_per_m = 15.0
supports_tools = true
supports_vision = true
supports_streaming = true
aliases = ["grok", "grok-4"]
[[models]]
id = "grok-4-fast-reasoning"
display_name = "Grok 4 Fast Reasoning"
tier = "smart"
context_window = 256000
max_output_tokens = 32768
input_cost_per_m = 1.0
output_cost_per_m = 5.0
supports_tools = true
supports_vision = false
supports_streaming = true
supports_thinking = true
aliases = []
[[models]]
id = "grok-4-fast-non-reasoning"
display_name = "Grok 4 Fast Non-Reasoning"
tier = "smart"
context_window = 256000
max_output_tokens = 32768
input_cost_per_m = 1.0
output_cost_per_m = 5.0
supports_tools = true
supports_vision = false
supports_streaming = true
aliases = []
[[models]]
id = "grok-4-1-fast-reasoning"
display_name = "Grok 4.1 Fast Reasoning"
tier = "fast"
context_window = 2000000
max_output_tokens = 32768
input_cost_per_m = 0.20
output_cost_per_m = 0.50
supports_tools = true
supports_vision = false
supports_streaming = true
supports_thinking = true
aliases = ["grok-fast"]
[[models]]
id = "grok-4-1-fast-non-reasoning"
display_name = "Grok 4.1 Fast Non-Reasoning"
tier = "fast"
context_window = 2000000
max_output_tokens = 32768
input_cost_per_m = 0.20
output_cost_per_m = 0.50
supports_tools = true
supports_vision = false
supports_streaming = true
aliases = []
[[models]]
id = "grok-3"
display_name = "Grok 3"
tier = "frontier"
context_window = 131072
max_output_tokens = 32768
input_cost_per_m = 3.0
output_cost_per_m = 15.0
supports_tools = true
supports_vision = true
supports_streaming = true
aliases = ["grok3"]
[[models]]
id = "grok-3-mini"
display_name = "Grok 3 Mini"
tier = "balanced"
context_window = 131072
max_output_tokens = 32768
input_cost_per_m = 0.30
output_cost_per_m = 0.50
supports_tools = true
supports_vision = false
supports_streaming = true
aliases = []
[[models]]
id = "grok-2"
display_name = "Grok 2"
tier = "smart"
context_window = 131072
max_output_tokens = 32768
input_cost_per_m = 2.0
output_cost_per_m = 10.0
supports_tools = true
supports_vision = true
supports_streaming = true
aliases = []
[[models]]
id = "grok-2-mini"
display_name = "Grok 2 Mini"
tier = "fast"
context_window = 131072
max_output_tokens = 32768
input_cost_per_m = 0.30
output_cost_per_m = 0.50
supports_tools = true
supports_vision = false
supports_streaming = true
aliases = ["grok-mini"]