Skip to content
Docs navigation: Open models / Overview

Open models

RightNow AIOpen models Updated

The open models API serves hosted open-weight models through chat-completions-compatible and Messages-compatible protocols. One workspace API key reaches them all, and credits pay for usage.

two protocols, one key
Text
Illustration of one workspace key reaching the open models through two protocols.

Two protocols, chat completions at /v1/chat/completions and Messages at /v1/messages, take the same workspace key. Both reach the open models through one base URL. Usage is paid from one credit balance, drawn as a bar.

ConnectionValue
API basehttps://api.rightnowai.co/v1
Chat completionsPOST /v1/chat/completions
MessagesPOST /v1/messages
Workspace keyrp_...
Process variableRIGHTNOW_API_KEY

The RightNow decision model has its own docs.

Call a hosted model

Set the base URL to https://api.rightnowai.co/v1, use a workspace API key and pass a model id.

Replace MODEL_ID with an available id from Open models; read current capabilities, limits and prices from GET /v1/models.

TypeScript
import OpenAI from "openai";

// Server side only: never expose this key in browser code.
const client = new OpenAI({
  baseURL: "https://api.rightnowai.co/v1",
  apiKey: process.env.RIGHTNOW_API_KEY,
});
const response = await client.chat.completions.create({
  model: "MODEL_ID",
  messages: [{ role: "user", content: "Write a TypeScript retry helper." }],
  max_tokens: 16384,
});
console.log(response.choices[0]?.message?.content);

GET /v1/models is the authoritative list of hosted chat models. It also reports when one is temporarily paused.

Pricing, access and help