> This page is for User Guide.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.ai/_mcp/server.

# AI Model

## 1. Model Selection

Choose the foundation AI model your agent should use. You can easily change models for your agent whenever you want.
Credal supports models from **OpenAI, Anthropic, Google, and Cerebras**. Compare available models, including measured speed from real-world use, on Credal's [Models page](https://app.credal.ai/model-metadata).

*Your organization or cloud environment may limit which providers or models are available. Reach out to your administrator or [support@credal.ai](mailto:support@credal.ai) for help.*

Use the Preview tab to compare responses before publishing. For side-by-side tests across model configurations, see [Agent Benchmark](/user-guide/platform/agent-builder/evaluating-your-agent/agent-benchmark).

* **Reasoning:** Multi-step reasoning, task decomposition, and nuanced instructions.
* **Domain fit:** Strengths vary across coding, writing, analysis, research, and images.
* **Context window:** Larger windows handle more prompts, files, data, and conversation history.
* **Tool calling:** Selecting tools, formatting requests, making parallel calls, and handling responses.
* **Speed & cost:** Balance latency, quality, and budget.

> **Tip: Cerebras for fastest possible responses**
>
> [**Cerebras**](https://www.cerebras.ai/) runs popular open-source models on custom hardware built for speed, making it useful for customer-facing agents, real-time workflows, and other latency-sensitive use cases.

![The model selection dropdown listing models from OpenAI, Anthropic, Google, and Cerebras](/_fern-img/a42c8ca3e4242855d538b3c453b028af7bb943f98f48258abb75504470757fce.webp)

> **Automatic Model Fallback**
>
> If your selected model is deprecated or unavailable, your agent falls back to the current default model for new agents. Review model selections periodically to avoid surprises.
>
> If a model is down or overloaded, Credal can fail over to another model. Check **Audit Logs** to confirm the model and cloud infrastructure used for each request.

---

## 2. Creativity

Set how creative your agent should be. For most use cases, use "**precise**" or "**balanced**".

* **Higher creativity** → Better for brainstorming, marketing, and creative writing; more likely to produce unexpected responses.
* **Higher precision** → Better for analysis, research, and accuracy-sensitive work; more likely to stick to provided context.

![The creativity setting with precise, balanced, and creative options](/_fern-img/b899992d4e602253f06b4b088267f8f76ccb088c28f6ad51d7c7b406e71d9978.webp)

---

## 3. Code Interpreter

**Code Interpreter** (Advanced Data Analysis) runs Python inline to:

* Analyze structured datasets (CSV, JSON, etc.)
* Create charts and visualizations

**Note:** Code Interpreter is only available when using OpenAI models.

### Enable

![The Code Interpreter toggle in the agent settings](/_fern-img/0873dc2bae41a6362ed80d5a016d39a9d67fca0294e4628fb2231987067fbc12.webp)

### Example Workflow

1. Upload a CSV
2. Ask for a quick summary (row count, columns, nulls)
3. Generate a chart and export cleaned data

### Usage

* Run it on attached documents
* Run it on supported action results, such as a Snowflake query