Prerequisites
Before you start, get a W&B API key — this is the upstream credential the gateway will inject on every request.Create a W&B API key
Go to your W&B settings page at wandb.ai/settings and open the API keys section under your user account. Click + New key to create a key, then copy it.

This key is stored as the upstream credential in TrueFoundry (Step 2 below). Clients calling the gateway never see it.
Adding the Endpoint
This section walks through registering CoreWeave (W&B Inference) as a Custom Endpoint and configuring access control.Navigate to Custom Endpoints
From the TrueFoundry dashboard, go to AI Gateway → Models, open the Custom Endpoints tab, and click + Add Custom Endpoint.

Custom Endpoints let you securely proxy any HTTP endpoint through the Model Gateway with centralized authentication, access control, and tracing. Clients use only a TrueFoundry API key, while upstream credentials stay configured in the gateway.
Step 1 — Configure Account
In the Configure Account step of the wizard, set:
- Name:
coreweave-model— this becomes theproviderAccountNamesegment in your proxy URL. - Endpoint Type:
None. - Header Auth: leave OFF — upstream auth is configured at the integration level in the next step.

Step 2 — Configure the Endpoint Integration
On the Endpoints step, add one Custom Endpoint integration:
-
Display Name:
inference— this becomes theendpointNamesegment in your proxy URL. -
Base URL:
https://api.inference.wandb.ai/v1— the W&B Inference API base. Do not add a trailing slash. -
Custom Headers: toggle ON and add the W&B API key as a bearer token:
Header name Header value AuthorizationBearer <YOUR-WANDB-API-KEY> - Header Auth and TLS Settings: leave OFF.

Step 3 — Access Control
Configure who can manage and use this endpoint. For example:
- Manager (can edit, update, delete): the owning team members.
- User (can view and access): everyone, or a specific set of teams.

Inference
After saving, TrueFoundry shows a Usage code snippet modal for theinference endpoint with the Base URL, Model ID, and a TrueFoundry API key.

chat/completions) to the proxy base URL yourself.
Python
Add
"Accept-Encoding": "identity" to your request headers to avoid gzip decompression issues through the proxy.Endpoint structure
Requests use the standard Custom Endpoint URL shape:| Segment | Value | Source |
|---|---|---|
providerAccountName | coreweave-model | Name field from Step 1 — Configure Account |
endpointName | inference | Display Name field from Step 2 — Endpoints |
upstream-path | chat/completions | W&B Inference API suffix, appended manually |
providerAccountName (coreweave-model) and endpointName (inference) must match exactly what you set in the wizard. For more on the proxy URL, authentication, and configuration fields, see Custom Endpoints.