Documentation
ARKAbrain

Intelligent Model Routing

ARKAbrain is the brain behind ARKA-AI - an intelligent system that automatically selects the best AI model for each task.

What is ARKAbrain?

Instead of manually choosing which AI model to use (GPT? Claude? Gemini?), ARKAbrain analyzes your request and automatically routes it to the optimal model. This saves you time, money, and delivers better results.

Automatic Selection

No need to understand model differences - ARKAbrain picks the best one.

Cost Optimization

Uses cheaper models for simple tasks, so you only pay for a premium model when the task needs one.

Automatic Fallback

If a model fails, ARKAbrain automatically tries alternatives.

Multi-Provider

Works across OpenAI and OpenRouter for maximum model coverage.

How It Works

ARKAbrain handles each request in four steps:

1

Task Classification

ARKAbrain first identifies what type of task you're performing:

rewrite_editingsummarizationexplain_simpleseo_marketingprompt_optimizationcoding_debugginggeneral_chat
2

Complexity Assessment

The system evaluates complexity based on input length, vocabulary, and task requirements. This determines whether to use a fast/cheap model or a powerful/premium one.

3

Model Selection

Based on task + complexity, ARKAbrain assigns a role (FAST_CHEAP, BALANCED, CODING, etc.) and picks the best available model from your configured providers.

4

Execution with Fallback

The request is sent to the selected model. If it fails (rate limit, error, etc.), ARKAbrain automatically retries with fallback models until it succeeds.

Model Roles

ARKAbrain groups models into 8 roles based on their strengths. Each role has a primary model and a chain of fallbacks:

RolePrimaryBest For
FAST_CHEAPGPT-6 LunaQuick, simple tasks
BALANCEDGPT-6.1 TerraGeneral purpose (the default)
REASONINGClaude Opus 5.5Complex analysis and planning
CODINGClaude Sonnet 5.5Code generation, debugging
ARCHITECTUREClaude Opus 5.5System design, refactoring
JSON_STRUCTUREDGPT-6.2 SolStructured data and JSON output
LONG_CONTEXTGemini 4 ArgonVery long documents (about 1M tokens)
SEO_WRITERClaude Sonnet 5.5Marketing copy, SEO content

Pro Plan Advantage

Pro and team plans get every role. On the Free plan (and the older Starter plan), premium roles (REASONING, CODING, ARCHITECTURE, JSON_STRUCTURED, LONG_CONTEXT, SEO_WRITER) are routed to BALANCED instead.

Learn More