Installation
Quick Start
Configuration
Initialize the Client
Get Your API Key
- Sign up at verlon.ai/signup
- Get your API key from the Dashboard
- Store it in an environment variable
.env
Available Methods
The SDK provides methods for different AI capabilities:Chat
Text generation with streaming, vision, and function calling
Images
Generate images from text prompts
Video
Create videos from text descriptions
Embeddings
Generate vector embeddings for text
Audio
Convert text to speech
OCR
Extract text from images
Response Structure
All SDK methods return aVerlonResponse object:
Error Handling
Wrap SDK calls in try-catch blocks:Common Error Messages
TypeScript Support
The SDK is fully typed:Environment Variables
Best practice for managing credentials:Next Steps
Explore specific capabilities:Chat
Images
Video
Embeddings
Audio
OCR
Gates & Routing
How Verlon routes requests to models
Creating Gates
Configure gates in the dashboard

