AI Assistant Help

Supported LLMs

AI Assistant provides access to a variety of cloud-based LLMs through the JetBrains AI service and supports locally hosted models. You can also use your own API keys (BYOK) to access third-party models through your existing provider subscriptions.

This flexibility allows you to choose the most suitable model for your tasks – for example, large models for complex codebase operations, smaller models for quick responses, or local models if you prefer to keep your data private.

Cloud-based models

The table below lists models available for selection in AI Assistant:

  • Reasoning model – these models have reasoning capabilities, meaning they are better suited for tasks that require logical thinking, structured output, or deeper contextual understanding.

  • Supports images – these models can process images, allowing you to add visual context to your request.

Model

Capabilities

Model context window

Anthropic   Claude 4.5 Opus

 

200k

Anthropic   Claude 4.5 Sonnet

 

200k

Anthropic   Claude 4.5 Haiku

200k

Anthropic   Claude 4.1 Opus

 

200k

Anthropic   Claude 4 Sonnet

200k

Anthropic   Claude 3.7 Sonnet

200k

Google   Gemini 3 Pro

 

1M

Google   Gemini 3 Flash

1M

Google   Gemini 2.5 Pro

1M

Google   Gemini 2.5 Flash

1M

Google   Gemini 2.5 Flash-Lite

1M

Google   Gemini 2.0 Flash

1M

OpenAI   GPT-5.2

 

400k

OpenAI   GPT-5.1-Codex-Max

 

400k

OpenAI   GPT-5.1-Codex

 

400k

OpenAI   GPT-5.1-Codex-Mini

 

400k

OpenAI   GPT-5.1

 

400k

OpenAI   GPT-5-Codex

 

400k

OpenAI   GPT-5

 

400k

OpenAI   GPT-5 mini

 

400k

OpenAI   GPT-5 nano

 

400k

OpenAI   GPT-4.1

1M

OpenAI   GPT-4.1 mini

1M

OpenAI   GPT-4.1 nano

1M

OpenAI   GPT-4o

128k

OpenAI   o1

 

200k

OpenAI   o3

 

200k

OpenAI   o3-mini

200k

OpenAI   o4-mini

 

200k

xAI   Grok-4.1 Fast

 

2M

xAI   Grok-4.1 Fast (Non-Reasoning)

2M

xAI   Grok-4

 

256k

xAI   Grok Code Fast 1

256k

Supported models history

The following table lists AI models supported by AI Assistant, along with the IDE versions in which they became available and, where applicable, the versions in which they were removed.

Model

Available in IDEs starting from version

Removed in version

Anthropic   Claude 4.5 Opus

2025.2.x

Anthropic   Claude 4.5 Sonnet

2025.2.x

Anthropic   Claude 4.5 Haiku

2025.1.x

Anthropic   Claude 4.1 Opus

2025.2.x

Anthropic   Claude 4 Sonnet

2025.1.x

Anthropic   Claude 3.7 Sonnet

2024.3.x

Anthropic   Claude 3.5 Sonnet

2024.3.x

2025.3

Anthropic   Claude 3.5 Haiku

2024.3.x

2025.3

Google   Gemini 3 Pro

2025.1.x

Google   Gemini 3 Flash

2025.1.x

Google   Gemini 2.5 Pro

2025.1.x

Google   Gemini 2.5 Flash

2025.1.x

Google   Gemini 2.5 Flash-Lite

2025.1.x

Google   Gemini 2.0 Flash

2024.3.x

Google   Gemini 1.5 Pro

2024.3.x

2025.1

Google   Gemini 1.5 Flash

2024.3.x

2025.1

OpenAI   GPT-5.2

2025.2.x

OpenAI   GPT-5.1-Codex-Max

2025.3.x

OpenAI   GPT-5.1-Codex

2025.3.x

OpenAI   GPT-5.1-Codex-Mini

2025.3.x

OpenAI   GPT-5.1

2025.1.x

OpenAI   GPT-5-Codex

2025.3.x

OpenAI   GPT-5

2025.1.x

OpenAI   GPT-5 mini

2025.1.x

OpenAI   GPT-5 nano

2025.1.x

OpenAI   GPT-4.1

2025.1.x

OpenAI   GPT-4.1 mini

2025.1.x

OpenAI   GPT-4.1 nano

2025.1.x

OpenAI   GPT-4o

2024.2.x

OpenAI   o4-mini

2025.1.x

OpenAI   o3

2025.1.x

OpenAI   o3-mini

2024.3.x

OpenAI   o1

2024.3.x

OpenAI   o1-mini

2024.3.x

2025.1

xAI   Grok-4.1 Fast

2025.1.x

xAI   Grok-4.1 Fast (Non-Reasoning)

2025.1.x

xAI   Grok-4

2025.1.x

xAI   Grok Code Fast 1

2025.1.x

Local models

AI Assistant supports a selection of models available through Ollama, LM Studio, and other OpenAI-compatible endpoints like llama.cpp or LiteLLM. These models are optimized for local use, enabling powerful AI capabilities without the need for cloud access.

The default model context window for local models is set to 64 000 tokens. If needed, you can adjust this value in the settings.

For more information about setting up local models, refer to Use custom models.

Bring Your Own Key (BYOK)

AI Assistant supports the Bring Your Own Key approach, so if you already have an account with a specific AI provider and want to use its models, you can configure the connection in Settings | Tools | AI Assistant | Models & API keys.

Provide API key

For more information, refer to Use custom models.

18 December 2025