Chat
Think, write, and build — all in one conversation.
Nia Chat is a multi-model AI workspace built for depth. Every conversation supports streaming responses, rich markdown rendering, code highlighting, and inline artifacts. Switch between models mid-conversation, branch any reply into alternate paths, and let Nia pick the best model for your task automatically.
Multi-Model Routing
Nia automatically selects the best model (GPT-4o, Claude, Gemini, Llama) based on your prompt — or pick one yourself.
Streaming Responses
Responses stream in real-time with sub-200ms first-token latency. No waiting for full generation.
Branching & Forking
Fork any assistant reply into alternate timelines. Compare outputs side-by-side and merge the best.
Artifacts
Nia generates live documents, code files, charts, and diagrams inline. Export to MDX, PDF, PNG, or JSON.
Image Understanding
Drop images into chat — Nia analyzes screenshots, diagrams, documents, and photos with vision models.
Image Generation
Generate images from text prompts directly in chat. Powered by DALL-E and Flux.
POST /api/v1/completionsVoice
A real conversation. Latency under 200ms.
Nia Voice turns your AI into a real-time conversational partner. Powered by WebRTC, it delivers sub-200ms latency voice interactions with natural turn-taking. Use it for brainstorming, dictation, language practice, or just talking through a problem. Voice mode supports 41 languages with built-in translation.
Real-time WebRTC
True duplex audio over WebRTC — not a record-and-send loop. Interrupt naturally, just like a real conversation.
Speech-to-Text
Transcribe audio files or live speech in 38+ languages. Auto-detect language or enforce a specific one.
Voice Translation
Speak in one language, get responses in another. Supports 41 language pairs for real-time translation.
Multiple Voices
Choose from natural-sounding voices (Sage, Alloy, Echo, and more) that match the tone you need.
Push-to-Talk
Press space to talk, release to let Nia respond. Simple, fast, no accidental triggers.
Session Transcripts
Every voice session is transcribed and saved to your chat history for later reference.
GET /api/v1/voice/tokenSpaces
Workspaces with persistent memory.
Spaces are persistent knowledge containers. Upload PDFs, documents, spreadsheets, and web URLs — Nia indexes everything and references it when answering questions. Each Space has its own instructions, memory, and context window. No contamination between projects. Think of it as giving Nia a dedicated brain for each topic.
Document Upload
Drop in PDFs, DOCX, PPTX, XLSX, TXT, CSV, images — up to 25MB per file. Nia extracts and indexes the content.
Web URLs
Add any web page as a knowledge source. Nia scrapes, cleans, and indexes the content automatically.
Custom Instructions
Set per-Space system prompts. Tell Nia how to behave, what tone to use, and what to focus on.
Isolated Context
Each Space is a separate knowledge silo. Conversations in one Space never leak into another.
RAG-Powered Answers
Nia uses retrieval-augmented generation to ground responses in your uploaded documents — reducing hallucination.
Team Sharing
Share Spaces with your team. Everyone gets the same knowledge base and instructions.
POST /api/v1/spaces/{id}/documents/uploadBattle Mode
Two AIs. One prompt. Best answer wins.
Battle Mode lets you pit two AI models against each other on the same prompt. Responses stream side-by-side in real-time. Pick the winner, and Nia learns your preferences over time. It's the fastest way to find the right model for your use case — and it's surprisingly addictive.
Side-by-Side Streaming
Both models respond simultaneously. Watch them race in real-time and compare quality, speed, and style.
Any Model Pair
Battle GPT-4o vs Claude, Gemini vs Llama, or any combination from Nia's model lineup.
Vote & Learn
Pick the winner after each battle. Nia tracks your preferences and learns which models you favor.
ELO Rankings
Models earn ELO scores based on your votes. See a personalized leaderboard of which models work best for you.
Blind Mode
Hide model names during battles for unbiased evaluation. Reveal after voting.
Battle History
Review past battles, re-run them with different models, or share results with your team.
POST /api/v1/completions