> ## Documentation Index
> Fetch the complete documentation index at: https://askui-docs-streamline-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Configuration

> Use AskUI default or bring your own LLM.

## Default

No configuration needed. AskUI auto-selects optimal model:

```python theme={null}
with VisionAgent() as agent:
    agent.act("Fill the login form")
```

## Custom Model

```python theme={null}
with VisionAgent(model="claude-sonnet-4-20250514") as agent:
    agent.act("Complete checkout")

# Or per command type
with VisionAgent(model={
    "act": "claude-sonnet-4-20250514",
    "get": "askui",
    "locate": "askui-combo",
}) as agent:
    agent.act("Search for flights")
```

## AskUI Models

| Model         | Use Case                  |
| ------------- | ------------------------- |
| `askui`       | Auto-select (recommended) |
| `askui-pta`   | UI element detection      |
| `askui-ocr`   | Text recognition          |
| `askui-combo` | Combined PTA + OCR        |

## Third-Party Providers

### Anthropic

```bash theme={null}
export ANTHROPIC_API_KEY="sk-ant-..."
```

### AWS Bedrock

```bash theme={null}
export ASKUI_MODEL_PROVIDER="bedrock"
export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
```

### Google Vertex AI

```bash theme={null}
export ASKUI_MODEL_PROVIDER="vertex"
export GOOGLE_CLOUD_PROJECT="your-project"
```

### OpenRouter

```bash theme={null}
export ASKUI_MODEL_PROVIDER="openrouter"
export OPENROUTER_API_KEY="..."
```
