Siliconflow is a platform for providing endpoints for Large Language models. Explore Siliconflow’s models here.

Authentication

Set your SILICONFLOW_API_KEY environment variable. Get your key from Siliconflow here.
export SILICONFLOW_API_KEY=***

Example

Use Siliconflow with your Agent:
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")

View more examples here.

Params

ParameterTypeDefaultDescription
idstr"openai/gpt-oss-120b"The specific model ID used for generating responses.
namestr"SiliconFlow"The name identifier for the SiliconFlow agent.
providerstr"SiliconFlow" + idThe provider of the model, combining "SiliconFlow" with the model ID.
api_keyOptional[str]-The API key for authenticating requests to the SiliconFlow service. Retrieved from the environment variable SILICONFLOW_API_KEY.
base_urlstr"https://api.siliconflow.com/v1"The base URL for making API requests to the SiliconFlow service.
Siliconflow also supports the params of OpenAI.