Model choice

Below is a table of model providers that come pre-packaged with chatlas.

Usage pre-requisites

Each model provider has its own set of pre-requisites. For example, OpenAI requires an API key, while Ollama requires you to install the Ollama CLI and download models. To see the pre-requisites for a given provider, visit the relevant usage page in the table below.

Name Usage Enterprise?
Anthropic (Claude) ChatAnthropic()
AWS Bedrock ChatBedrockAnthropic()
OpenAI ChatOpenAI()
Azure OpenAI ChatAzureOpenAI()
Google (Gemini) ChatGoogle()
Google (Vertex) ChatVertex()
GitHub model marketplace ChatGithub()
Ollama (local models) ChatOllama()
Open Router ChatOpenRouter()
DeepSeek ChatDeepSeek()
Hugging Face ChatHuggingFace()
Databricks ChatDatabricks()
Snowflake Cortex ChatSnowflake()
Mistral ChatMistral()
Groq ChatGroq()
perplexity.ai ChatPerplexity()
Cloudflare ChatCloudflare()
Portkey ChatPortkey()
Other providers

To use chatlas with a provider not listed in the table above, you have two options:

  1. If the model provider is OpenAI compatible (i.e., it can be used with the openai Python SDK), use ChatOpenAI() with the appropriate base_url and api_key.
  2. If you’re motivated, implement a new provider by subclassing Provider and implementing the required methods.
Known limitations

Some providers may have a limited amount of support for things like tool calling, structured data extraction, images, etc. In this case, the provider’s reference page should include a known limitations section describing the limitations.

Model choice

In addition to choosing a model provider, you also need to choose a specific model from that provider. This is important because different models have different capabilities and performance characteristics. For example, some models are faster and cheaper, while others are more accurate and capable of handling more complex tasks.

If you’re using chatlas inside your organisation, you’ll be limited to what your org allows, which is likely to be one provided by a big cloud provider (e.g. ChatAzureOpenAI() and ChatBedrockAnthropic()). If you’re using chatlas for your own personal exploration, you have a lot more freedom so we have a few recommendations to help you get started:

  • ChatOpenAI() or ChatAnthropic() are both good places to start. ChatOpenAI() defaults to GPT-4.1, but you can use model = "gpt-4.1-nano" for a cheaper lower-quality model, or model = "o3" for more complex reasoning. ChatAnthropic() is similarly good; it defaults to Claude 4.0 Sonnet which we have found to be particularly good at writing code.

  • ChatGoogle() is a strong model with generous free tier (with the downside that your data is used to improve the model), making it a great place to start if you don’t want to spend any money.

  • ChatOllama(), which uses Ollama, allows you to run models on your own computer. The biggest models you can run locally aren’t as good as the state of the art hosted models, but they also don’t share your data and and are effectively free.

Auto complete

If you’re using an IDE that supports type hints, you can get autocompletion for the model parameter. This is particularly useful for getting the right model name, or simply to see what models are available.

Screenshot of model autocompletion

Screenshot of model autocompletion

Auto provider

ChatAuto() is a special model provider that allows one to configure the model provider through environment variables. This is useful for having a single, simple, script that can run on any model provider, without having to change the code.