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

# SiliconFlow

> Use SiliconFlow models with Agno agents.

SiliconFlow is a platform for providing endpoints for large language models.

Explore SiliconFlow’s models [here](https://siliconflow.ai/models).

## Authentication

Set your `SILICONFLOW_API_KEY` environment variable. Get your key [from SiliconFlow here](https://siliconflow.ai).

```bash Mac theme={null}
export SILICONFLOW_API_KEY=***
```

```bash Windows theme={null}
setx SILICONFLOW_API_KEY ***
```

## Example

Install the `openai` package:

```shell theme={null}
uv pip install -U agno openai
```

Use `Siliconflow` with your `Agent`:

```python agent.py theme={null}
from agno.agent import Agent
from agno.models.siliconflow import Siliconflow

agent = Agent(model=Siliconflow(), markdown=True)

# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story")

```

> [!NOTE]
>
> View more examples [here](https://agno-v2.mintlify.site/models/providers/gateways/siliconflow/usage/basic-stream.md).

## Params

| Parameter | Type | Default | Description |
| - | - | - | - |
| `id` | `str` | `"Qwen/QwQ-32B"` | The id of the SiliconFlow model to use |
| `name` | `str` | `"Siliconflow"` | The name of the model |
| `provider` | `str` | `"Siliconflow"` | The provider of the model |
| `api_key` | `Optional[str]` | `None` | The API key for SiliconFlow (defaults to SILICONFLOW\_API\_KEY env var) |
| `base_url` | `str` | `"https://api.siliconflow.cn/v1"` | The base URL for the SiliconFlow API |

`Siliconflow` also supports the params of [OpenAI](https://agno-v2.mintlify.site/reference/models/openai.md).


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