Authentication
Set theN1N_API_KEY environment variable:
Parameters
N1N extends the OpenAI-compatible interface and supports most parameters from OpenAILike.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
N1N_API_KEY environment variable:
export N1N_API_KEY=your-api-key
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "gpt-4o" | The ID of the model to use |
name | str | "N1N" | The name of the model |
provider | str | "N1N" | The provider of the model |
api_key | Optional[str] | None | The API key (defaults to N1N_API_KEY env var) |
base_url | str | "https://api.n1n.ai/v1" | The base URL for the N1N API |
from agno.agent import Agent
from agno.models.n1n import N1N
agent = Agent(model=N1N(id="gpt-4o"), markdown=True)
agent.print_response("Share a 2 sentence horror story.")
from agno.agent import Agent
from agno.models.n1n import N1N
from agno.tools.websearch import WebSearchTools
agent = Agent(
model=N1N(id="gpt-5-mini"),
markdown=True,
tools=[WebSearchTools()],
)
agent.print_response("What is happening in France?", stream=True)