Documentation
OpenRouter

OpenRouter Setup

Create an OpenRouter account and API key to access Claude, Gemini, Llama, and many other AI models through ARKA-AI.

Why OpenRouter?

OpenRouter is a unified API that provides access to 100+ AI models from different providers (Anthropic, Google, Meta, etc.) through a single API key. It often has lower prices than going direct to providers.

Create an OpenRouter Account

1

Visit OpenRouter

2

Sign up

Click Sign In and create an account using Google, GitHub, or email.

3

Add credits

Navigate to Credits and add funds to your account. Start with $5-10 to test.

Generate an API Key

1

Go to Keys

Navigate to openrouter.ai/keys

2

Create a key

Click Create Key. Name it something like "ARKA-AI" for easy identification.

3

Copy the key

Copy your new API key. It will look like:

sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Key Visibility

Unlike OpenAI, OpenRouter lets you view your existing API keys at any time from the Keys page. You can also set spending limits per key.

Available Models

With an OpenRouter API key, ARKA-AI can route to these models:

ModelCost (per 1K tokens)ContextBest For
Claude 3.5 Sonnet$0.003 in / $0.015 out200KWriting, coding, reasoning
Claude 3 Haiku$0.00025 in / $0.00125 out200KFast, cheap, simple tasks
Gemini 1.5 Flash$0.000075 in / $0.0003 out1MUltra-cheap, long context
Gemini 1.5 Pro$0.00125 in / $0.005 out2MComplex reasoning, huge documents
Llama 3.1 70B$0.00052 in / $0.00075 out131KGeneral purpose, budget-friendly
DeepSeek Coder$0.00014 in / $0.00028 out128KCode-focused, very cheap

Huge Context Windows

OpenRouter gives you access to models with massive context windows. Gemini 1.5 Pro supports up to 2 million tokens - enough to analyze entire codebases or books.

OpenRouter Pricing

OpenRouter uses a credit-based system similar to OpenAI. Key differences:

  • Often 10-50% cheaper than going directly to providers
  • One account for all providers (Anthropic, Google, Meta, etc.)
  • Can set per-key spending limits
  • Free models available for testing

Connect to ARKA-AI

1

Open Settings

In ARKA-AI, go to SettingsAPI Keys.

2

Add OpenRouter Key

Click Add Key, select OpenRouter as the provider.

3

Paste and Save

Paste your API key and click Save. ARKA-AI will validate the key.

Unlock More Models

With both OpenAI and OpenRouter keys connected, ARKAbrain can choose from 11 different models to find the perfect fit for each task.