API for AI personas

Add AI personas to your product in 30 minutes

Get a Project API Key, mint an End‑User Token, and chat with a selected persona. Context, memory, and scenarios are managed on our side.

  • Fast integrationToken → persona → chat.
  • Personas out of the boxCoach, teacher, support — plus your custom personas.
  • Control & safetySeparate test/live keys, context versioning, consistent behavior.
// Base URL: ваш домен (пример ниже)
const BASE_URL = "https://riser.chat";

const projectKey = process.env.RISER_PROJECT_KEY; // rk_live_...
const externalUserId = "user_123";

// 1) Issue End-User Token (Project API Key)
const tokenRes = await fetch(`${BASE_URL}/api/v1/end-user-token`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${projectKey}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ externalUserId })
});
const { endUserToken } = await tokenRes.json();

// 2) Set Persona for this end-user (обычно делается один раз)
await fetch(`${BASE_URL}/api/v1/end-users/persona`, {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${projectKey}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    externalUserId,
    personaId: "PERSONA_DOCUMENT_ID"
  })
});

// 3) Chat (End-User Token)
const chatRes = await fetch(`${BASE_URL}/api/v1/chat`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${endUserToken}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    message: "Hi!",
    locale: "en",
    webSearchEnabled: false
  })
});

console.log(await chatRes.json());
99.9%
Uptime (target)
SSE
SSE streaming
RBAC
Role-based access
REST APIWebhooksTracing-readyRate limits

Meet our AI assistants

Why It's Convenient for Everyone

Choose a persona for your task and start working immediately

Clear Roles Instead of Models

Choose a persona for your task—don't waste time comparing settings and providers.

Fixed Price in Sparks

Transparent cost per request. No subscriptions or surprises with your bill.

Best Models Behind the Scenes

Each persona uses optimal models (e.g., Gemini 3, Claude Sonnet; Athena uses GPT-5 Pro).

Ready Scenarios and Prompts

One-click start: preset requests, prompt chains, and clear dialogue structure.

One Interface—Many Tasks

Study, career, text, design, code, analytics—switch between personas as needed.

Expense Control

See the price before sending. Buy Spark packages and plan your budget.

Athena—Analyst on ChatGPT-5 Pro

Complex analytics and strategies. Higher Spark cost—but maximum power.

GPT-5 Pro
PRO

For Professionals and Teams

Advanced features for power users and collaborative work

Pay-as-You-Go

Charges for tokens of specific models—full transparency for advanced users.

Your Own API Keys

Connect keys (OpenAI, Gemini, Claude, DeepSeek, etc.)—fixed rate per 1000 requests.

Team Collaboration

Team chats with AI, member invitations, shared projects, and centralized expenses.

Multi-Provider in One Window

Switch between different models without changing your familiar interface.

Plans

Choose a plan that suits you best, based on the volume of communication with AI offered

Spark Packages

Pick a bundle — spend sparks on any persona.

Package
100sparks
$1.00
Includes (avg.)
Approximate estimate. Actual usage depends on the persona and prompt options.
Text (Q&A)Estimate: 1 Q&A from 3 ⚡. Can vary by persona.
up to 33
Images (1K)Estimate: 1 image (1K) ≈ 30 ⚡ (Iris example). Depends on settings.
up to 3
Valid for: 6 months
Package
500sparks
$5.00
Includes (avg.)
Approximate estimate. Actual usage depends on the persona and prompt options.
Text (Q&A)Estimate: 1 Q&A from 3 ⚡. Can vary by persona.
up to 166
Images (1K)Estimate: 1 image (1K) ≈ 30 ⚡ (Iris example). Depends on settings.
up to 16
Valid for: 6 months
-10%
Popular
Package
2,500sparks
$25.00
$22.50
Includes (avg.)
Approximate estimate. Actual usage depends on the persona and prompt options.
Text (Q&A)Estimate: 1 Q&A from 3 ⚡. Can vary by persona.
up to 833
Images (1K)Estimate: 1 image (1K) ≈ 30 ⚡ (Iris example). Depends on settings.
up to 83
Valid for: 6 months
-15%
Package
6,500sparks
$64.71
$55.00
Includes (avg.)
Approximate estimate. Actual usage depends on the persona and prompt options.
Text (Q&A)Estimate: 1 Q&A from 3 ⚡. Can vary by persona.
up to 2,166
Images (1K)Estimate: 1 image (1K) ≈ 30 ⚡ (Iris example). Depends on settings.
up to 216
Valid for: 6 months
-20%
Package
12,500sparks
$125.00
$100.00
Includes (avg.)
Approximate estimate. Actual usage depends on the persona and prompt options.
Text (Q&A)Estimate: 1 Q&A from 3 ⚡. Can vary by persona.
up to 4,166
Images (1K)Estimate: 1 image (1K) ≈ 30 ⚡ (Iris example). Depends on settings.
up to 416
Valid for: 6 months

Corporate

If you need an individual IT solution for more effective communication of colleagues in your company, please write your request via the feedback form. We will contact you during the nearest working hours and offer the best options for solving the problem.

We are often asked