Authentication
Nexus requires API keys for the underlying model providers. Set the appropriate environment variables for the models you plan to use:Example
UseNexus with your Agent:
View more examples here.
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "gpt-4o-mini" | The id of the model to use through Nexus |
name | str | "Nexus" | The name of the model |
provider | str | "Nexus" | The provider of the model |
api_key | Optional[str] | None | The API key for Nexus (defaults to NEXUS_API_KEY env var) |
base_url | str | "https://api.nexusflow.ai/v1" | The base URL for the Nexus API |
Nexus also supports the params of OpenAI.