OpenRouter integration

AI: chat completions from many model makers through one API key

Help Centre › Connectors

Overview

OpenRouter gives one API key for chat models from many makers: OpenAI, Anthropic, Google, Meta, Mistral and more. Its API works like OpenAI's, so a step names the model it wants, e.g. openai/gpt-4o-mini.

  • Regions: Global.
  • Plans: Pay as you go with credits bought on openrouter.ai. Some models are free.

Setting up the connection

Auth type: Bearer Token.

  1. Sign in at openrouter.ai and buy credits, or use a free model.
  2. Open Keys and create a key. It starts with sk-or-.
  3. In Automize, open Settings → Connectors → OpenRouter → Add connection and paste the key in API key.

Rate limits

Set per key and per model by OpenRouter; free models have lower limits.


Data model

Model ─── Chat completion

    messages: [{"role": "system", "content": "…"},
               {"role": "user", "content": "…"}]

Available operations

2 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
Chat completionGeneralAsk a model for a reply. Name the model as OpenRouter does, e.g. openai/gpt-4o-mini or anthropic/claude-3.5-sonnet.
List modelsGeneralList the models OpenRouter offers, with their prices and context sizes.

Operations

Chat completion

Ask a model for a reply. Name the model as OpenRouter does, e.g. openai/gpt-4o-mini or anthropic/claude-3.5-sonnet.

ParameterRequiredTypeDescription
Model modelYestextThe model id from openrouter.ai/models, e.g. openai/gpt-4o-mini.
Messages messagesYeslistThe conversation, e.g. [{"role": "user", "content": "Summarise this"}].
Temperature temperatureNonumber0 for steady answers, up to 2 for varied ones.
Max tokens max_tokensNonumberThe longest reply allowed, in tokens.

Tips

  • The reply is in choices[0].message.content.
  • Model ids are listed at openrouter.ai/models, or with List models.

List models

List the models OpenRouter offers, with their prices and context sizes.

No input parameters.

Tips

  • Each model has its id, its price per token and how much text it takes.

FAQ

Which key pays?
Yours: OpenRouter charges your credits. Automize's own AI steps use a different key.

Related connectors

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.