All technologies

AI & automation

Integrate language models with OpenRouter

Through OpenRouter, we use many language models via one API. This lets us choose the right model for each task, switch without rebuilding and keep costs under control.

OpenRouter offers a unified API through which many language models from a wide range of different providers can be accessed.

Data flow

How OpenRouter & language models fits into your processes

  1. Application
  2. Rules
  3. OpenRouter
  4. Language model
  5. Review
The application sends the task and rules to OpenRouter, and the result is checked before it is used.

Use cases

What we build with OpenRouter & language models

  • Write copy

    Articles and drafts following fixed editorial rules.

  • Extract receipts

    Recognize and categorize invoices and receipts.

  • Review and assess

    Rate listings, inquiries or content against criteria.

  • Costs in view

    Budget per tenant and model changes based on price and quality.

Typical projects

Why companies bring us in

  1. 01

    AI newsroom for a specialist news service

    Starting point
    A specialist news service wants to prepare articles faster without risking errors in figures, names and quotes.
    Solution
    An AI newsroom writes drafts via OpenRouter following fixed rules for numbers, names and quotes.
    Result
    The editorial team receives drafts that follow the house rules and can be reviewed in a targeted way.
  2. 02

    Accounting assistant

    Starting point
    Receipts are typed in by hand and categories assigned one by one.
    Solution
    An assistant scans receipts, extracts the details with a language model and suggests a category.
    Result
    Data entry is faster, and people only review the suggestions.
  3. 03

    Switch models without rebuilding

    Starting point
    Typical project: a new model delivers better results for a task or is cheaper.
    Solution
    Since all calls go through OpenRouter, we swap the model via configuration and compare using real examples.
    Result
    The choice of model is based on your data instead of marketing claims.

From practice

OpenRouter & language models in our projects

  • An AI newsroom for a specialist news service writes articles via OpenRouter, with fixed rules for numbers, names and quotes.
  • An accounting assistant scans and categorizes receipts.

Approach

How we introduce OpenRouter & language models

  1. 1

    Task and data

    What the AI should do and which data it may see.

  2. 2

    Model choice

    Compare models using your examples.

  3. 3

    Integration

    Build in rules, checks and human approval.

  4. 4

    Measure

    Continuously evaluate quality and costs.

Result

What you get from us

  • Task description with prompts and fixed rules
  • Model comparison based on your real examples
  • Integration into your software via the OpenRouter API
  • Structured outputs, validated before further processing
  • Cost limits and logging per task
  • Human approval step for critical results
const res = await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.OPENROUTER_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: process.env.OPENROUTER_MODEL,
    messages: [
      { role: "system", content: "Lies Betrag und Fälligkeit aus. Antworte als JSON." },
      { role: "user", content: belegText },
    ],
  }),
});
const data = await res.json();
const antwort = data.choices[0].message.content;
An OpenAI-compatible call via OpenRouter, with the model set in the configuration.

Quality

What we watch for with OpenRouter & language models

  1. 1

    Contain hallucinations

    Statements must reference a source, otherwise they are flagged or discarded.

  2. 2

    Defend against prompt injection

    Text from emails or documents is treated as data and cannot override instructions.

  3. 3

    Set cost limits

    Budgets and caps prevent an error from silently generating high costs.

  4. 4

    Check data sharing

    We define which data may go to which provider and choose models accordingly.

  5. 5

    Validate outputs

    Structured responses are validated against a schema before they reach your system.

Comparison

OpenRouter or Local model?

OpenRouter

Model selection
Open and proprietary models from many providers
Data path
Data goes to external providers
Hardware
No hardware of your own needed
Costs
Usage-based billing
Performance
Access to very large models

Local model

Model selection
Open models
Data path
Data stays on your own hardware
Hardware
Requires your own hardware
Costs
Hardware and operations
Performance
Limited by hardware and model size

For sensitive data, a local model has a lot going for it; for demanding tasks with changing requirements, OpenRouter is more flexible.

OpenRouter & language models

Common questions

Tap a question.