Model gateway

Any model through one API

Switch models in configuration instead of in your agent’s code. Use your own provider keys at no markup, or let Adapt hold the keys.

Use cases

What you can build with model gateway.

  • Switch models without rewrites

    Change the model in configuration instead of in your agent’s code.

  • Bring your own keys

    Keep your provider accounts and their prices, with no markup from Adapt.

  • A model for each step

    Send routine classification and in-depth investigation to different models.

How it works

Use different models within one workflow.

Choose the tradeoffs instead of sending every task to the same model.

  1. Define the tasks

    Separate routine classification from deeper investigation or writing.

  2. Choose the requirements

    Pick the model for each task based on quality, response time and cost.

  3. Evaluate and adjust

    Test on your own workload and adjust the configuration as needs evolve.

gateway.ts
import { Adapt } from '@adapt/sdk'

const reply = await new Adapt().models.chat({
  model: 'anthropic/claude-sonnet-5.5',
  keys: 'yours',
  messages: [{ role: 'user', content: prompt }],
})
Illustrative API · final SDK may differ

Pricing

What it costs to run.

No markup on your own keys, or let Adapt hold them and bill models with your usage.

  • 0%markup on your own provider keys
  • +5.5%on provider list price through Adapt’s keys

Works with

Use it with the rest of Adapt.

The company agent combines all four with your tools, knowledge and team’s apps.

Start building with Model gateway