Skip to main content

Before you begin

  1. Sign up for a free account at verlon.ai/signup
  2. Get your API key from the Dashboard
  3. Create your first gate with your desired model configuration

Install the SDK

npm install @verlon-ai/sdk
pnpm add @verlon-ai/sdk
yarn add @verlon-ai/sdk

Make your first request

import { Verlon } from '@verlon-ai/sdk';

const verlon = new Verlon({
  apiKey: process.env.VERLON_API_KEY
});

const response = await verlon.chat({
  gateId: 'your-gate-id',
  data: {
    messages: [
      { role: 'user', content: 'Explain quantum computing in simple terms' }
    ]
  }
});

console.log(response.content);
const { Verlon } = require('@verlon-ai/sdk');

const verlon = new Verlon({
  apiKey: process.env.VERLON_API_KEY
});

const response = await verlon.chat({
  gateId: 'your-gate-id',
  data: {
    messages: [
      { role: 'user', content: 'Explain quantum computing in simple terms' }
    ]
  }
});

console.log(response.content);
from verlon import Verlon

verlon = Verlon(api_key=os.environ.get("VERLON_API_KEY"))

response = verlon.chat(
    gate_id="your-gate-id",
    messages=[
        {"role": "user", "content": "Explain quantum computing in simple terms"}
    ]
)

print(response.content)

What’s Next?

Integration Guides

Learn about all SDK methods for chat, images, audio, and video

Gates & Routing

Understand how gates provide smart routing and fallbacks

Dashboard Guide

Deep dive into creating and configuring gates

Cost Tracking

Monitor and optimize your AI spending