models.mdx 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ---
  2. title: "Models"
  3. sidebarTitle: "Models"
  4. description: "Available models, pricing tiers, free models, and how model IDs work in the Cline API."
  5. ---
  6. The Cline API gives you access to models from multiple providers through a single endpoint. Model IDs follow the `provider/model-name` format, the same convention used by [OpenRouter](https://openrouter.ai).
  7. ## Model ID Format
  8. Every model is identified by a string in the format:
  9. ```
  10. provider/model-name
  11. ```
  12. For example:
  13. - `anthropic/claude-sonnet-4-6` - Claude Sonnet 4.6 from Anthropic
  14. - `openai/gpt-4o` - GPT-4o from OpenAI
  15. - `google/gemini-2.5-pro` - Gemini 2.5 Pro from Google
  16. Pass this string as the `model` parameter in your [Chat Completions](/api/chat-completions) request.
  17. ## Popular Models
  18. | Model ID | Provider | Context Window | Reasoning | Best For |
  19. |----------|----------|---------------|-----------|----------|
  20. | `anthropic/claude-sonnet-4-6` | Anthropic | 200K | Yes | General coding, analysis, complex tasks |
  21. | `anthropic/claude-sonnet-4-5` | Anthropic | 200K | Yes | Balanced performance and cost |
  22. | `openai/gpt-4o` | OpenAI | 128K | No | Multimodal tasks, fast responses |
  23. | `google/gemini-2.5-pro` | Google | 1M | Yes | Very long context, document analysis |
  24. | `deepseek/deepseek-chat` | DeepSeek | 64K | No | Cost-effective coding tasks |
  25. | `x-ai/grok-3` | xAI | 128K | Yes | Reasoning-heavy tasks |
  26. <Note>
  27. Model availability and pricing change over time. Check [app.cline.bot](https://app.cline.bot) for the latest catalog.
  28. </Note>
  29. ## Free Models
  30. These models are available at no cost. They are a good starting point for experimentation and lightweight tasks:
  31. | Model ID | Provider | Context Window |
  32. |----------|----------|---------------|
  33. | `minimax/minimax-m2.5` | MiniMax | 1M |
  34. | `kwaipilot/kat-coder-pro` | Kwaipilot | 32K |
  35. | `z-ai/glm-5` | Z-AI | 128K |
  36. Free models have the same API interface as paid models. Just use their model ID:
  37. ```bash
  38. curl -X POST https://api.cline.bot/api/v1/chat/completions \
  39. -H "Authorization: Bearer YOUR_API_KEY" \
  40. -H "Content-Type: application/json" \
  41. -d '{
  42. "model": "minimax/minimax-m2.5",
  43. "messages": [{"role": "user", "content": "Hello!"}]
  44. }'
  45. ```
  46. ## Reasoning Models
  47. Some models support extended thinking, where the model reasons through a problem before responding. When using these models:
  48. - Reasoning content appears in `delta.reasoning` during streaming
  49. - Some providers return encrypted reasoning blocks in `delta.reasoning_details`
  50. - Reasoning tokens are counted separately from output tokens
  51. Models with reasoning support include most Claude, Gemini 2.5, and Grok 3 models. Check the model's `supportsReasoning` capability in the model catalog.
  52. ## Choosing a Model
  53. | If you need... | Consider |
  54. |----------------|----------|
  55. | Best coding performance | `anthropic/claude-sonnet-4-6` |
  56. | Long document analysis | `google/gemini-2.5-pro` (1M context) |
  57. | Fast, cheap responses | `deepseek/deepseek-chat` |
  58. | Free experimentation | `minimax/minimax-m2.5` |
  59. | Multi-modal (text + images) | `openai/gpt-4o` or `anthropic/claude-sonnet-4-6` |
  60. | Complex reasoning | Any model with reasoning support |
  61. For a deeper comparison of model capabilities and pricing, see the [Model Selection Guide](/core-features/model-selection-guide).
  62. ## Image Support
  63. Models that support images accept base64-encoded image content in the `messages` array:
  64. ```json
  65. {
  66. "model": "anthropic/claude-sonnet-4-6",
  67. "messages": [
  68. {
  69. "role": "user",
  70. "content": [
  71. {"type": "text", "text": "What's in this image?"},
  72. {"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}
  73. ]
  74. }
  75. ]
  76. }
  77. ```
  78. Not all models support images. Check the model's `supportsImages` capability before sending image content.
  79. ## Related
  80. <CardGroup cols={2}>
  81. <Card title="Chat Completions" icon="message" href="/api/chat-completions">
  82. Use these models in your API requests.
  83. </Card>
  84. <Card title="Model Selection Guide" icon="scale-balanced" href="/core-features/model-selection-guide">
  85. In-depth comparison for choosing the right model.
  86. </Card>
  87. </CardGroup>