Prerequisites
To start using Vercel AI SDK with Orq, you need an API Key ready within your Orq.ai account.To setup your API key, see API keys & Endpoints.
To use libraries with private models, see Onboarding Private Models.
Using Orq.ai as AI Gateway
Using the Vercel AI SDK with the Orq.ai provider, you can seamlessly integrate AI models from the Orq AI platform with full Vercel AI SDK compatibility. Using the Orq.ai AI Gateway, you benefit from the Platform Traces, Cost and Usage Monitoring, keeping full compatibility and a unified API with all models while using the Vercel AI SDK.
Installation: npm install @orq-ai/vercel-provider ai
Text Generation
Streaming Responses
Structured Output
Configuration Options
The Orq.ai provider supports the following configuration options:Supported Model Types
- Chat models: For conversational AI applications
- Completion models: For text generation tasks
- Text embeddings: For semantic search and similarity
- Image generation: For creating images from text prompts