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

# LLM Config • AI Agent SDK

> LLMConfig: Configuration for LLM model settings.

# LLMConfig

> Defined in the [**Feature Configs**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/feature_configs.md) module.

AI Agent

Configuration for LLM model settings.

Groups all LLM-related parameters including model selection,
API settings, and fallback configuration.

## Properties

**model** `str`

No description available.

**fallback\_models** `Optional`

No description available.

**base\_url** `Optional[str]`

No description available.

**api\_key** `Optional[str]`

No description available.

**auth** `Optional`

No description available.

> [accordion] Internal & Generic Methods
>
> * **from\_dict**: Create LLMConfig from dictionary.
> * **to\_dict**: Convert to dictionary.

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# With primary model only
    Agent(llm_config=LLMConfig(model="gpt-4o"))
    
    # With fallback chain
    Agent(llm_config=LLMConfig(
        model="gpt-4o",
        fallback_models=["claude-3-5-sonnet", "gpt-4o-mini"],
        base_url="https://api.example.com",
        api_key="sk-...",
    ))
    
    # With LiteLLM-style provider prefix
    Agent(llm_config=LLMConfig(
        model="anthropic/claude-3-5-sonnet",
        fallback_models=["openai/gpt-4o", "openai/gpt-4o-mini"],
    ))
```

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/feature_configs.py#L1169)
>
> `praisonaiagents/config/feature_configs.py` at line 1169

***

## Related Documentation

> [card] [Models Overview](https://praison.ai/docs/docs/models)

> [card] [LLM Configuration](https://praison.ai/docs/docs/configuration/llm-config)

> [card] [Model Router](https://praison.ai/docs/docs/features/model-router)

> [card] [Model Failover](https://praison.ai/docs/docs/features/model-failover)

> [card] [Configuration Overview](https://praison.ai/docs/docs/configuration/index)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.