Skip to main content

What it’s good for

Widest model selection available — access Claude, GPT-4, Llama, Mistral, and hundreds more through one API key. Good for trying different models without managing separate accounts, or for accessing models not directly supported by Spaceduck’s other providers.

Requirements

Configure in Spaceduck

Chat

1

Set your API key

In Settings > Chat, select OpenRouter as the provider, then enter your API key.Or via CLI:
2

Select a model

In Settings > Chat:
  • Provider: OpenRouter
  • Model: use the OpenRouter model ID, e.g.:
    • anthropic/claude-3.5-sonnet
    • meta-llama/llama-3.1-70b-instruct
    • mistralai/mistral-large-latest
Or via CLI:
Browse available models and pricing at openrouter.ai/models.
3

Verify

Send a message in the chat. You should see a streaming response.

Embeddings

OpenRouter does not provide an embeddings API. If you want semantic recall, pair OpenRouter with a separate embedding provider: This is the two-server pattern — chat on OpenRouter, embeddings elsewhere.

Test and troubleshoot