Agents
OpenRouter
Using OpenRouter as your AI agent
OpenRouter is the recommended agent for quick setup. It provides access to multiple AI models through a single API.
Setup
- Create an account at openrouter.ai
- Generate an API key from the dashboard
- In Unreal, go to Project Settings > Plugins > Agent Integration Kit
- Paste your API key in the OpenRouter API Key field
- Select a default model
Supported Models
OpenRouter provides access to many models. Recommended options:
| Model | ID | Best For |
|---|---|---|
| Claude Sonnet 4 | anthropic/claude-sonnet-4 | Complex tasks, coding |
| Claude Haiku | anthropic/claude-3.5-haiku | Fast responses |
| GPT-4o | openai/gpt-4o | General purpose |
| Gemini Pro | google/gemini-pro-1.5 | Long context |
Configuration
Project Settings
| Setting | Description |
|---|---|
| API Key | Your OpenRouter API key |
| Default Model | Model ID to use by default |
Per-Session Settings
In the chat window, you can:
- Switch models from the dropdown
- View token usage
- Adjust temperature (if supported)
Pricing
OpenRouter charges per token. Pricing varies by model:
- Check openrouter.ai/models for current pricing
- Monitor usage in your OpenRouter dashboard
- Set spending limits in your account settings
Troubleshooting
"Invalid API Key"
- Verify the key is correctly copied (no extra spaces)
- Check the key hasn't been revoked
- Ensure you have credits available
"Model not found"
- Check the model ID is correct
- Some models require additional approval
- Try a different model
Slow Responses
- OpenRouter routes to the best available endpoint
- During high demand, responses may be slower
- Consider using a faster model like Haiku