Create gateway
Create a CoreWeave inference gateway with one authentication type and one routing strategy.
- The API server is
https://api.coreweave.com. - Replace
{API_ACCESS_TOKEN}with your CoreWeave API access token. - For required permissions, see IAM Access Policies.
coreWeaveAuth or weightsAndBiasesAuth)
and exactly one routing strategy (bodyBasedRouting,
headerBasedRouting, or pathBasedRouting). The available
zones for zones are returned by
GET /v1alpha1/inference/gateways/parameters.
Authentication
coreWeaveAuth: validate inference requests using the same CoreWeave API access tokens used to call the management API. No additional configuration is required.weightsAndBiasesAuth: validate inference requests using Weights & Biases SaaS credentials. Optional fields includeenableUsageReportsandenableRateLimiting. W&B self-hosted is not currently supported.
Routing strategies
bodyBasedRouting: the model name is read from themodelfield in the JSON request body. SetapiType: API_TYPE_OPENAIfor OpenAI-compatible behavior.pathBasedRouting: the model name is the first segment of the URL path. URL-encode model names that contain special characters.headerBasedRouting: the model name is read from a custom HTTP header you specify inheaderName(1–100 characters).
Authorizations
CoreWeave API access token sent as a bearer token.
Body
Request for CreateGateway
The human readable name of the gateway
The zones to make the gateway available in, limits where deployments associated with the gateway may exist, no zones means all may be used, case insensitive.
The unique identifier of the gateway, UUID format
CoreWeave IAM
Weights & Biases
Additional endpoint configuration options
Body based routing
Header based routing
Path based routing
Response
OK
Response for CreateGateway
The gateway that was created