Crossplay Integration Kit
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

  1. Create an account at openrouter.ai
  2. Generate an API key from the dashboard
  3. In Unreal, go to Project Settings > Plugins > Agent Integration Kit
  4. Paste your API key in the OpenRouter API Key field
  5. Select a default model

Supported Models

OpenRouter provides access to many models. Recommended options:

ModelIDBest For
Claude Sonnet 4anthropic/claude-sonnet-4Complex tasks, coding
Claude Haikuanthropic/claude-3.5-haikuFast responses
GPT-4oopenai/gpt-4oGeneral purpose
Gemini Progoogle/gemini-pro-1.5Long context

Configuration

Project Settings

SettingDescription
API KeyYour OpenRouter API key
Default ModelModel 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

On this page