A deep dive into how ARKAbrain selects the optimal model for each request through classification, complexity assessment, and intelligent fallbacks.
When you send a request to ARKA-AI, ARKAbrain performs a multi-step routing process to select the best model. This process considers your task type, input complexity, available providers, and plan tier.
The first step is identifying what type of task you're performing. ARKAbrain uses a two-stage classifier:
Fast pattern matching using regex rules. Detects keywords like "summarize", "rewrite", "explain", etc. with weighted confidence scores.
If heuristics have low confidence (<70%), a lightweight LLM call provides more accurate classification.
The main task types are below. ARKAbrain also recognizes fast coding questions, architecture and refactoring, structured JSON, deep reasoning, and comparisons, which route to the CODING, ARCHITECTURE, JSON_STRUCTURED and REASONING roles:
| Task Type | Detection Patterns |
|---|---|
| rewrite_editing | rewrite, rephrase, improve, polish, make better |
| summarization | summarize, tl;dr, key points, condense |
| explain_simple | explain, ELI5, break down, simplify |
| seo_marketing | SEO, meta description, title tag, marketing |
| prompt_optimization | improve prompt, prompt engineering, optimize |
| coding_debugging | code blocks, error, debug, implement, function |
| general_chat | Fallback for unclassified requests |
After identifying the task type, ARKAbrain assesses the complexity of your request. This determines whether to use a fast/cheap model or a powerful/premium one.
Based on task type and complexity, ARKAbrain assigns a model role. Each role has a primary model and fallback chain:
| Task | Low | Medium | High |
|---|---|---|---|
| Rewrite/Edit | FAST_CHEAP | BALANCED | BALANCED |
| Summarize | FAST_CHEAP | FAST_CHEAP | BALANCED |
| Explain | FAST_CHEAP | BALANCED | BALANCED |
| SEO/Marketing | BALANCED | SEO_WRITER | SEO_WRITER |
| Prompts | BALANCED | REASONING | REASONING |
| Coding | FAST_CHEAP | CODING | CODING |
| General | FAST_CHEAP | BALANCED | BALANCED |
ARKAbrain maintains a registry of 12 current models: four from OpenAI (used directly with your OpenAI key) and eight from Anthropic, Google, DeepSeek, Mistral and xAI (used through OpenRouter). Each model is configured with its capabilities, costs, and strengths. Older model IDs, such as GPT-4o or Claude 3.5 Sonnet, are automatically redirected to their current successors.
| Model | Provider | Context | Speed | Strengths |
|---|---|---|---|---|
| GPT-6.2 Astra | OpenAI | 1M | Slow | Complex reasoning, Coding, Analysis |
| GPT-6.2 Sol | OpenAI | 1M | Medium | General, Coding, Structured output |
| GPT-6.1 Terra | OpenAI | 1M | Medium | General, Writing |
| GPT-6 Luna | OpenAI | 1M | Fast | Fast, Cheap, General |
| Claude Opus 5.5 | OpenRouter | 1M | Slow | Complex reasoning, Architecture |
| Claude Sonnet 5.5 | OpenRouter | 1M | Medium | Coding, Writing |
| Claude Haiku 5.5 | OpenRouter | 1M | Fast | Fast, Cheap, General |
| Gemini 4 Argon | OpenRouter | 1M | Medium | Reasoning, Long context |
| Gemini 3.8 Flash | OpenRouter | 1M | Fast | Fast, Long context |
| DeepSeek V4.1 Flash | OpenRouter | 1M | Fast | Cheap, Coding |
| Mistral Large 4 | OpenRouter | 1M | Medium | Structured output, Writing |
| Grok 4.7 | OpenRouter | 500K | Medium | Coding, Reasoning |
Each role has a primary model and a chain of fallbacks. If the primary model fails (rate limit, error, etc.), ARKAbrain automatically tries the next model in the chain. Models from a provider you haven't added a key for are skipped, and on a team workspace only the team's approved models are used:
ARKAbrain sets optimal temperature for each task type. Lower temperature means more focused output; higher means more creative:
| Task Type | Temperature Range | Why |
|---|---|---|
| Coding/Debugging | 0.1 - 0.3 | Precision is critical |
| Summarization | 0.2 - 0.3 | Accuracy over creativity |
| Rewrite/Edit | 0.2 - 0.4 | Preserve meaning |
| Prompt Optimization | 0.3 - 0.5 | Balance precision and exploration |
| Explain Simply | 0.4 - 0.6 | Allow creative analogies |
| General Chat | 0.5 - 0.7 | Natural conversation |
| SEO/Marketing | 0.6 - 0.8 | Encourage creativity |
Your subscription plan affects which roles are available:
Automatic Downgrades
On the Free plan, premium roles are automatically routed to BALANCED, which uses GPT-6.1 Terra, a strong all-around model.