Quick Setup
- Sign up for an Nordlys API key
- Install the OpenAI SDK (if you haven’t already):
- Change two lines in your existing code:
Key Features
Same API
All OpenAI methods, parameters, and responses work identically
Model Model selection
Set
model to nordlys/hypernova for the Nordlys modelStreaming
Streaming responses work exactly like OpenAI
Function Calling
Function calling and tools work without changes
Streaming Example
Response Format
Nordlys returns standard OpenAI responses:Error Handling
Handle common errors gracefully:- 401: Check your Nordlys API key
- 429: Rate limit exceeded - implement retry logic
- 400: Invalid request parameters



