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.
// 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());Choose a persona for your task and start working immediately
Choose a persona for your task—don't waste time comparing settings and providers.
Transparent cost per request. No subscriptions or surprises with your bill.
Each persona uses optimal models (e.g., Gemini 3, Claude Sonnet; Athena uses GPT-5 Pro).
One-click start: preset requests, prompt chains, and clear dialogue structure.
Study, career, text, design, code, analytics—switch between personas as needed.
See the price before sending. Buy Spark packages and plan your budget.
Complex analytics and strategies. Higher Spark cost—but maximum power.
Advanced features for power users and collaborative work
Charges for tokens of specific models—full transparency for advanced users.
Connect keys (OpenAI, Gemini, Claude, DeepSeek, etc.)—fixed rate per 1000 requests.
Team chats with AI, member invitations, shared projects, and centralized expenses.
Switch between different models without changing your familiar interface.
Choose a plan that suits you best, based on the volume of communication with AI offered
Pick a bundle — spend sparks on any persona.
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.
Stay updated with our insights and news

12/2/2025
In the last few days two headlines landed almost at once: OpenAI mobilising to avoid losing ground to Google yet an…

11/24/2025
We are excited to announce a major update to Riser. Following the integration of the latest neural network engines, we h…

11/21/2025
We continue to integrate the most advanced technologies into our aggregator. Today, we are rolling out a massive update …