/relay/<name>/... on Bifrost with a virtual key, and Bifrost forwards the call to the API, signs it in with the stored secret, prices it and records it.

How it works
On every call, Bifrost does five things:- Sends it to one fixed address. The call goes to the relay’s base URL plus the path the caller asked for. A caller cannot point it at any other host.
- Signs in for you. Credential headers the caller sends (
Authorization,x-api-keyand similar) are removed, and the relay’s stored credential is added instead. Your application never holds the API’s key. - Allows only the operations you listed. Each operation you expose is a route, such as
POST /search. A call that matches no route is refused, unless Relay Any Path is on. - Checks access and limits. The caller’s virtual key must be allowed to use the relay, and its budgets and rate limits must have room left. This requires a credential: with
client.enforce_auth_on_inferenceoff, a call with no credential at all is forwarded without this check. - Prices and records the call. Bifrost works out the cost from the pricing you set, charges it to the caller’s budgets and writes a row to Relay Logs.
What a relay is not
A relay forwards plain HTTP requests. It does not translate formats, pick between keys or fall back to another API. Use the feature that matches the job:Quick start
1
Create the relay
Give it a name, the API’s base URL and its secret. See Create a relay.
2
Add routes
List the operations callers may use, such as
POST /search, or import them from an OpenAPI file. See Routes.3
Set the price
Set a fee per call, a price per unit, or both, and check it with Test Pricing. See Pricing.
4
Give a virtual key access
Add the relay under Relay access on the virtual key. See Virtual keys: relay access.
5
Send a request
Call
/relay/<name>/<path> with the virtual key in x-bf-vk. The reply is the upstream API’s reply, unchanged. See Relay a POST request in the API reference.See every call
Every relayed call is listed under Observability → Relay Logs, a log page of its own next to LLM Logs and MCP Logs.
Next steps
Create a relay
Base URL, credential, extra headers, timeouts and proxy.
Routes
Which operations callers may use, which are charged, and which stream.
Pricing
How each call is priced, with examples and a way to test.
Troubleshooting
What each error means and how to fix it.

