Authentication
Set yourNEOSANTARA_API_KEY environment variable. Get your key from Neosantara here.
Example
UseNeosantara with your Agent:
View more examples here.
Params
Neosantara also supports the params of OpenAI.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Neosantara models in Agno agents.
NEOSANTARA_API_KEY environment variable. Get your key from Neosantara here.
export NEOSANTARA_API_KEY=***
setx NEOSANTARA_API_KEY ***
Neosantara with your Agent:
from agno.agent import Agent
from agno.models.neosantara import Neosantara
agent = Agent(
model=Neosantara(id="grok-4.1-fast-non-reasoning"),
markdown=True,
)
# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story")
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "grok-4.1-fast-non-reasoning" | The ID of the Neosantara model to use |
name | str | "Neosantara" | The name of this chat model instance |
provider | str | "Neosantara" | The provider of the model |
api_key | Optional[str] | None | The API key for Neosantara (defaults to NEOSANTARA_API_KEY env var) |
base_url | str | "https://api.neosantara.xyz/v1" | The base URL for the Neosantara API |
Neosantara also supports the params of OpenAI.Was this page helpful?