RivenAI

Developers

Build on the Riven platform.

The Riven API is OpenAI-compatible and gives you access to the full Riven platform. Keys, usage controls, model routing, and a clean integration surface for building your own products.

Quick start

Drop-in compatible with the OpenAI SDK.

The Riven API speaks the same language as the tools you already know. Change the base URL and your API key, and you are running on the Riven platform.

See full integration guide
Node.js · TypeScript
import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.RIVEN_API_KEY,
  baseURL: 'https://api.rivenai.io/v1',
})

const response = await client.chat.completions.create({
  model: 'riven-reasoning-v1',
  messages: [{ role: 'user', content: 'Analyse this dataset...' }],
  stream: true,
})

Official SDKs

npm · TypeScript@rivenai/sdk
npm install @rivenai/sdk

import { RivenClient } from '@rivenai/sdk'

const client = new RivenClient({ apiKey: 'rvn_...' })
const response = await client.chat.completions.create({
  model: 'riven-chat-sm',
  messages: [{ role: 'user', content: 'Hello!' }],
})
pip · Pythonrivenai
pip install rivenai

from rivenai import RivenClient

async with RivenClient(api_key='rvn_...') as client:
    response = await client.chat_completion({
        'model': 'riven-chat-sm',
        'messages': [{'role': 'user', 'content': 'Hello!'}],
    })

Resources

Documentation

Full API reference, integration guides, and platform documentation.

Read docs

API Reference

Complete endpoint reference for the Riven API — models, completions, streaming, and more.

View reference

API Keys

Generate and manage your API keys from the Riven console.

Get keys

Examples

Starter code, integration examples, and workflow templates for the Riven platform.

Browse examples