# Best LLMs for Coding

> Language models suited to code generation, refactoring and agentic tool use: Claude Opus and Sonnet, GPT-6.1 and GPT-6 Sol, Kimi K3, GLM 5, Qwen3.8 Max, DeepSeek V4 Pro and MiniMax M3.

Source: https://www.sandbase.ai/models/coding-llms

## Models

- [Anthropic Claude Opus 5.5](https://www.sandbase.ai/models/anthropic/claude-opus-5.5.md): `anthropic/claude-opus-5.5`; $3.40 per 1M input tokens, $17 per 1M output tokens (15% off list price); Claude Opus 5.5 is the most powerful model in the Claude 5 family from Anthropic. It excels at complex reasoning, analysis, and creative tasks with superior accuracy and nuance. It supports text, imag...
- [Anthropic Claude Opus 5](https://www.sandbase.ai/models/anthropic/claude-opus-5.md): `anthropic/claude-opus-5`; $4.25 per 1M input tokens, $21.25 per 1M output tokens (15% off list price); Claude Opus 5 is the most powerful model in the Claude 5 family from Anthropic. It excels at complex reasoning, analysis, and creative tasks with superior accuracy and nuance. It supports text, image,...
- [Anthropic Claude Opus 4.8](https://www.sandbase.ai/models/anthropic/claude-opus-4.8.md): `anthropic/claude-opus-4.8`; $4.25 per 1M input tokens, $21.25 per 1M output tokens (15% off list price); Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context windo...
- [Anthropic Claude Sonnet 5.5](https://www.sandbase.ai/models/anthropic/claude-sonnet-5.5.md): `anthropic/claude-sonnet-5.5`; $1.70 per 1M input tokens, $8.50 per 1M output tokens (15% off list price); Claude Sonnet 5.5 is Anthropic's Sonnet-class model for well-scoped everyday work, succeeding Claude Sonnet 5 as a direct upgrade. It is especially strong at building features and fixing bugs, with a ...
- [Anthropic Claude Sonnet 5](https://www.sandbase.ai/models/anthropic/claude-sonnet-5.md): `anthropic/claude-sonnet-5`; $1.70 per 1M input tokens, $8.50 per 1M output tokens (15% off list price); Claude Sonnet 5 is a Sonnet-class model for high-quality coding, agentic workflows, reasoning, vision, structured outputs, and tool use.
- [OpenAI GPT-6.1 Sol](https://www.sandbase.ai/models/openai/gpt-6.1-sol.md): `openai/gpt-6.1-sol`; $1.80 per 1M input tokens, $9 per 1M output tokens (10% off list price); GPT-6.1 Sol is OpenAI's upgrade to GPT-6 Sol, introduced at DevDay 2026 and positioned between GPT-6 Astra and GPT-6 Luna, with text and image input. OpenAI says it delivers near-Astra performance for...
- [OpenAI GPT-6 Sol](https://www.sandbase.ai/models/openai/gpt-6-sol.md): `openai/gpt-6-sol`; $1.80 per 1M input tokens, $9 per 1M output tokens (10% off list price); GPT-6 Sol is the middle tier of OpenAI's GPT-6 reasoning family, released in September 2026 alongside GPT-6 Luna and built, according to OpenAI, for complex coding and agentic workflows, with text and...
- [OpenAI GPT-5.6 Sol](https://www.sandbase.ai/models/openai/gpt-5.6-sol.md): `openai/gpt-5.6-sol`; $3.60 per 1M input tokens, $18 per 1M output tokens (10% off list price); GPT-5.6 Sol is the flagship tier of OpenAI's GPT-5.6 reasoning family, accepting text and image input; OpenAI says it roughly corresponds to the unsuffixed tier of earlier GPT-5 families, and the plai...
- [Moonshot AI Kimi K3.1 Pro](https://www.sandbase.ai/models/moonshotai/kimi-k3.1-pro.md): `moonshotai/kimi-k3.1-pro`; $1.70 per 1M input tokens, $8.50 per 1M output tokens (15% off list price); Kimi K3.1 Pro is Moonshot AI's flagship open-weight multimodal reasoning model, a post-trained successor to Kimi K3 with a 1M-token context window. It accepts text, image and video input and is built ...
- [Moonshot AI Kimi K3](https://www.sandbase.ai/models/moonshotai/kimi-k3.md): `moonshotai/kimi-k3`; $2.10 per 1M input tokens, $10.50 per 1M output tokens (30% off list price); Kimi K3 is Moonshot AI's flagship model, a 2.8-trillion-parameter open-weight mixture-of-experts model with native visual understanding and a 1M-token context. It is built on Kimi Delta Attention, a h...
- [Z.ai GLM 5.3](https://www.sandbase.ai/models/z-ai/glm-5.3.md): `z-ai/glm-5.3`; $1.05 per 1M input tokens, $3.30 per 1M output tokens (25% off list price); GLM-5.3 is Z.ai's flagship text model for complex software engineering and long-horizon agent work, built on the same base model as GLM-5.2 with all gains coming from expanded post-training. Z.ai high...
- [Z.ai GLM 5.2](https://www.sandbase.ai/models/z-ai/glm-5.2.md): `z-ai/glm-5.2`; $1.26 per 1M input tokens, $3.96 per 1M output tokens (10% off list price); GLM-5.2 is Z.ai's open-weight flagship text model released in June 2026 for long-horizon tasks, and the first GLM model to deliver that capability on a usable 1M-token context. Z.ai positions it for p...
- [Alibaba Qwen3.8 Max](https://www.sandbase.ai/models/alibaba/qwen3.8-max.md): `alibaba/qwen3.8-max`; $1.80 per 1M input tokens, $5.40 per 1M output tokens (10% off list price); Qwen3.8 Max is Alibaba's flagship Qwen3.8 model, a 2.4-trillion-parameter Mixture-of-Experts reasoning model with native vision understanding, released in August 2026. Alibaba positions it for long-ho...
- [DeepSeek V4 Pro](https://www.sandbase.ai/models/deepseek/deepseek-v4-pro.md): `deepseek/deepseek-v4-pro`; $0.99 per 1M input tokens, $2.97 per 1M output tokens (25% off list price); DeepSeek V4 Pro is the large tier of DeepSeek's V4 family, a 1.6T-parameter mixture-of-experts model with 49B active parameters, introduced as an open-weight preview in April 2026 with a 1M-token cont...
- [MiniMax M3](https://www.sandbase.ai/models/minimax/minimax-m3.md): `minimax/minimax-m3`; $0.22 per 1M input tokens, $0.90 per 1M output tokens (25% off list price); MiniMax-M3 is MiniMax's flagship multimodal foundation model, which MiniMax describes as open-weight. It is built on MiniMax Sparse Attention, which selects key-value blocks to cut long-context comput...

## Model lineup

Context window and positioning from each provider.

| Model | Context | Positioning |
| --- | --- | --- |
| Claude Opus 4.8 | 1000K | Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family |
| GPT-5.6 Sol | 1050K | GPT-5.6 Sol is the flagship tier of OpenAI's GPT-5.6 reasoning family, accepting text and image input; OpenAI says it roughly corresponds to the… |
| DeepSeek V4 Pro | 1049K | DeepSeek V4 Pro is the large tier of DeepSeek's V4 family, a 1.6T-parameter mixture-of-experts model with 49B active parameters, introduced as an… |
| Kimi K3 | 1049K | Kimi K3 is Moonshot AI's flagship model, a 2.8-trillion-parameter open-weight mixture-of-experts model with native visual understanding and a… |
| Claude Opus 5 | 1000K | Claude Opus 5 is the most powerful model in the Claude 5 family from Anthropic |
| GPT-6.1 Sol | 1050K | GPT-6.1 Sol is OpenAI's upgrade to GPT-6 Sol, introduced at DevDay 2026 and positioned between GPT-6 Astra and GPT-6 Luna, with text and image input |
| GLM 5.2 | 1049K | GLM-5.2 is Z.ai's open-weight flagship text model released in June 2026 for long-horizon tasks, and the first GLM model to deliver that capability… |
| GLM 5.3 | 1049K | GLM-5.3 is Z.ai's flagship text model for complex software engineering and long-horizon agent work, built on the same base model as GLM-5.2 with all… |
| MiniMax M3 | 1000K | MiniMax-M3 is MiniMax's flagship multimodal foundation model, which MiniMax describes as open-weight |
| Claude Sonnet 5 | 1000K | Claude Sonnet 5 is a Sonnet-class model for high-quality coding, agentic workflows, reasoning, vision, structured outputs, and tool use |
| Qwen3.8 Max | 1000K | Qwen3.8 Max is Alibaba's flagship Qwen3.8 model, a 2.4-trillion-parameter Mixture-of-Experts reasoning model with native vision understanding,… |
| Claude Opus 5.5 | 1000K | Claude Opus 5.5 is the most powerful model in the Claude 5 family from Anthropic |

## Overview

### Models for code and agents

These models are positioned by their providers for coding, tool use and long agentic workflows. All support function calling and structured output on SandBase.

#### Picking one

- **Hardest tasks:** Claude Opus 5.5, GPT-6.1 Sol.
- **Everyday coding:** Claude Sonnet 5.5 and 5, GPT-6 Sol.
- **Strong value:** Kimi K3.1 Pro and K3, GLM 5.3, DeepSeek V4 Pro, Qwen3.8 Max, MiniMax M3.

#### Use them in your tools

Connect Claude Code, Codex, Cursor and other clients with one SandBase key; see [Use in AI tools](https://www.sandbase.ai/solutions/use-in-ai-tools). Claude also works on the native Messages API; see [Claude API](https://www.sandbase.ai/models/claude).

## Start using Best LLMs for Coding on SandBase

Switch models by changing one field.

1. **Create an API key** Sign in to the SandBase Console and create a key on the API Keys page. Keep it in an environment variable and never commit it to source control.

```
export SANDBASE_API_KEY="YOUR_SANDBASE_API_KEY"
```

2. **Send a chat request** Call the OpenAI-compatible Chat Completions API with model anthropic/claude-sonnet-5.5. Any OpenAI SDK works with base URL https://api.sandbase.ai/v1.

```
curl https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "anthropic/claude-sonnet-5.5", "messages": [{"role": "user", "content": "Explain vector databases in two sentences."}]}'
```

3. **Or use the Messages API** Claude models are also served on the native Anthropic Messages API.

```
curl https://api.sandbase.ai/v1/messages \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "anthropic/claude-sonnet-5.5", "max_tokens": 1024, "messages": [{"role": "user", "content": "Explain vector databases in two sentences."}]}'
```

4. **Connect your AI tools** Use the same key in Claude Code, Codex, Cursor and other clients. See Use in AI tools for setup.

## FAQ

### Can I use these models in Claude Code or Cursor?

Yes. See Use in AI tools for setup. Claude models work over the Messages API; others over OpenAI-compatible chat completions.

### Do these models support tool calling?

Yes. All models on this page are tagged for function calling and structured output.

### Which is the best value for coding?

Kimi, GLM, DeepSeek V4 and Qwen3.8 Max have lower token prices than Claude Opus or GPT-6.1 Sol. Compare current prices on the cards.

### How big a codebase can they read?

Most models here have a context window of about 1M tokens. Check each model page.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
