Get Your Nordlys API Key
Sign up here to create an account and generate your API key.Overview
The Vercel AI SDK works seamlessly with Nordlys through two methods:- Nordlys SDK (Recommended): Use the native
@nordlys-llm/nordlys-ai-providerpackage. - OpenAI-Compatible Client: Use Nordlys via
@ai-sdk/openaiwith a custom base URL.
Method 1: Nordlys SDK
Installation
Basic Setup
Method 2: OpenAI-Compatible Client
Installation
Configuration
Text Generation
Streaming
React Chat Component
Configuration
Nordlys keeps advanced tuning internal. Use a Nordlys model ID and focus on your product logic.
Tool/Function Calling
Environment Variables
Environment Setup
Error Handling
Nordlys retries transient errors automatically. For comprehensive error handling patterns, see the Error Handling Guide.What You Get
Mixture of Models Activation
The right specialists activate per prompt
Built-in Streaming
Real-time response streaming with React components
Cost Optimization
Significant cost savings through lab‑tuned models
Response Metadata
Inspect latency and quality signals per request
Next Steps
More Examples
See complete working examples
API Reference
Explore all available options and parameters

