OpenRouter
OpenRouter is a unified AI gateway that provides access to 480+ AI models from multiple providers including Google Gemini, Anthropic Claude, OpenAI GPT, xAI Grok, DeepSeek, and many more through a single API. This package enables you to build powerful multi-model AI automation workflows in Robomotion.
Key Features
- Multi-Model Access: Access 480+ AI models from leading providers through one unified API
- Text Generation: Generate text with support for reasoning mode and structured outputs
- Chat Completions: Build conversational AI with conversation history support
- Image Generation: Create images using models like Gemini Nano Banana and FLUX.2
- Streaming Support: Real-time token streaming for responsive AI interactions
- Robomotion AI Credits: Use Robomotion's AI credits without managing your own API keys
- Account Management: Monitor usage, credits, and manage API keys programmatically
- Model Discovery: List available models and their provider endpoints
Available Models
The package provides easy access to popular models including:
- Google: Gemini 2.5 Flash, Gemini 2.5 Pro, Gemini 3 Pro Preview
- Anthropic: Claude Sonnet 4, Claude Sonnet 4.5, Claude Opus 4, Claude Opus 4.5
- OpenAI: GPT-4.1, GPT-4.1 Mini, GPT-5, GPT-5 Mini, o3, o3 Mini, o4 Mini
- xAI: Grok 4, Grok 4.1
- DeepSeek: DeepSeek Chat v3
- Image Models: Gemini 2.5 Flash Image, Gemini 3 Pro Image, FLUX.2 Pro, FLUX.2 Flex
- Custom Models: Support for any OpenRouter-compatible model
Use Cases for RPA
- Document Processing: Extract and analyze data from documents with vision-capable models
- Customer Support: Build intelligent chatbots with conversation history
- Content Generation: Generate emails, reports, and marketing content
- Data Validation: Use AI reasoning to validate complex business logic
- Image Analysis: Process screenshots, invoices, and visual content
- Multi-Model Workflows: Compare outputs from different models for better results
- Cost Optimization: Route requests to the most cost-effective model for each task
Getting Started
- Connect: Use the Connect node to establish a session with OpenRouter
- Generate: Use Generate Text, Chat Completion, or Generate Image nodes for AI operations
- Disconnect: Clean up the connection when done
Alternatively, you can use individual nodes with direct API key credentials without the Connect/Disconnect pattern.
Authentication Options
The package supports three authentication methods:
- OpenRouter API Key: Use your own OpenRouter API key for full control
- Robomotion AI Credits: Use Robomotion's managed credits (no API key needed)
- Provisioning API Key: For programmatic API key management operations
Chat Completion
Robomotion.OpenRouter.Content.ChatCompletion
Connect
Robomotion.OpenRouter.Connect
Create API Key
Robomotion.OpenRouter.APIKeys.Create
Delete API Key
Robomotion.OpenRouter.APIKeys.Delete
Disconnect
Robomotion.OpenRouter.Disconnect
Generate Image
Robomotion.OpenRouter.Images.GenerateImage
Generate Text
Robomotion.OpenRouter.Content.GenerateText
Get API Key
Robomotion.OpenRouter.APIKeys.Get
Get Credits
Robomotion.OpenRouter.Account.GetCredits
Get Current API Key
Robomotion.OpenRouter.APIKeys.GetCurrent
Get Generation
Robomotion.OpenRouter.Inference.GetGeneration
List API Keys
Robomotion.OpenRouter.APIKeys.List
List Model Endpoints
Robomotion.OpenRouter.Models.ListEndpoints
List Models
Robomotion.OpenRouter.Models.List
Update API Key
Robomotion.OpenRouter.APIKeys.Update