Skip to main content
Model Gateway map with the heading All your models behind one gateway, connecting coding tools such as REST API, Claude, OpenCode, Codex, Cursor and GitHub Copilot through the Langdock gateway, turned on for everyone, to model providers such as OpenAI, Anthropic, Google, DeepSeek and Meta
The Model Gateway lets members use your workspace’s models in coding tools like Claude Code, Codex and Cursor, and in their own code, with a personal Model Gateway key. Every request runs under the member’s account, counts toward their spend limit and shows up in your analytics. You find it under Settings > Workspace > Model Gateway, next to Platform API, which holds the keys for Langdock’s own APIs. See API keys for how the two kinds of keys differ.
The Model Gateway is rolling out. Until it is enabled for your workspace, you manage all API keys under Settings > Workspace > Products > API. It is not available on dedicated deployments yet.

Turn it on

The first time you open Model Gateway > Access, you choose Turn on for everyone or Just for me to try it yourself first. On Langdock Cloud, gateway requests are paid from extra usage, so the page asks you to enable extra usage if it is off. On BYOK workspaces, requests run on your own model keys and count toward your usage limits.
Turn on the gateway card with the buttons Turn on for everyone and Just for me
Then create your own key and send a first request from the page. When you are ready, Let users know publishes a short info box in chat or copies a link to Account > API keys for you to share.

Access

  • General access lets everyone in the workspace create a Model Gateway key.
  • Allow specific users or groups to create Model Gateway keys limits it to the people and groups you add.
  • Members without access can ask for it from their keys page. Open requests show up here with a count on the tab. Approve gives the member access right away.
Model Gateway Access tab with General access turned on and the option to allow only specific users or groups
This list is separate from who can create Platform API keys, which you set on the Platform API page. Until you change it here for the first time, Model Gateway access follows the access you gave for personal API keys. Model Gateway keys always include model access (Completion API). Run agents and Embedding are optional and need your approval. Members never get workspace wide admin scopes on a personal key.

Limits

People get the higher of their seat and group limit, unless they have a personal limit. On BYOK workspaces a personal limit adds to the seat or group limit. When a person or the workspace reaches a limit, their gateway requests fail with 429 until the limit resets or you raise it. Requests never fall back to another model. See Limits and usage for rate limits and how cached tokens count.
Model Gateway Limits tab with the workspace extra usage limit and forecast, per person seat defaults, group limits set for 1 of 4 groups and personal limits, and per model quotas with requests and tokens per minute, one marked Requested

Manage

Manage lists every key with model access: members’ personal keys and workspace keys, with owner, expiry, last use and spend this month. A + Agents badge marks keys that can also run agents. Gateway + Platform marks combined keys created before the split. Revoking one of those also stops its Platform API access.
Model Gateway Manage tab listing keys with their owner, expiry, last use and spend, two marked + Agents and one marked Gateway + Platform
  • Revoke stops a key immediately, for example when someone leaves. This cannot be undone.
  • Create key creates your own personal key or a workspace key for an app or automation. Workspace Model Gateway keys use the classic endpoint on api.langdock.com for now and count toward the monthly spend limit for workspace API keys.

Analytics

Analytics shows what your API keys cost, including agent runs, for a period you choose, and can be filtered by group:
  • Spend, tokens, model calls and active users, and spend over time split into models, agent runs and other runs.
  • A spend breakdown by person, model and API key.
  • Model usage with cost and tokens by model, tokens by type (input, output, cache reads, cache writes), cache hit rate and latency.
  • A CSV export of usage by user.
Model Gateway Analytics tab with spend, tokens, model calls and active users for the last 30 days, a spend chart split into models, agent runs and other runs, a model calls chart and a spend breakdown by person
Gateway request history is kept for 90 days. Per person figures are hidden when User level data is off in your privacy settings. Workflows are not run by keys, so their cost counts toward your total in Extra usage instead.