Add the credential
Open Settings > Model Providers, click Add Model Provider and select Custom (OpenAI-compatible). Give the row a name, pick the organization, team or project it belongs to, and fill in:
Save the row. Every virtual key whose scope can see the row can now dispatch to it, unless the key restricts its providers. See Virtual keys.

The Custom (OpenAI-compatible) row: the optional CUSTOM_API_KEY, the required CUSTOM_BASE_URL, Add Header and the routing handle custom.
GET /v1/models lists those names.
The endpoint must be reachable from the gateway. The gateway always refuses link-local and cloud metadata addresses, and refuses private and loopback addresses when it runs with BLOCK_LOCAL_HTTP_CALLS=true.
On LangWatch Cloud the endpoint must use https: a hosted gateway refuses to start without REQUIRE_HTTPS_CUSTOM_ENDPOINTS=true, and with it an http endpoint is refused. A self-hosted gateway accepts http while that setting stays false.
Model names
Writecustom/<model>, for example custom/qwen3-14b. Give the row a Routing handle when you have several custom endpoints: acme-gpu/qwen3-14b pins that row.
Send a request
Endpoints
Streaming, tools and other features depend on what the endpoint implements. A feature the endpoint does not support comes back as the endpoint’s own error.