> ## 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.

# litellm • AI Agent SDK

> litellm: Lazy load litellm module when needed.

# litellm

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**VisionAgent**](../classes/VisionAgent) class in the [**vision\_agent**](../modules/vision_agent) module.

Lazy load litellm module when needed.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def litellm() -> Any
```

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `ImportError`

## Used By

* [`ImageAgent.generate_image`](../functions/ImageAgent-generate_image)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/vision_agent.py#L151">
  `praisonaiagents/agent/vision_agent.py` at line 151
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Models Overview" icon="microchip" href="/docs/models" />

  <Card title="LLM Configuration" icon="gear" href="/docs/configuration/llm-config" />

  <Card title="Model Router" icon="route" href="/docs/features/model-router" />

  <Card title="Model Failover" icon="shield" href="/docs/features/failover" />
</CardGroup>
