Create a route
Creates a route that maps a name to a Model API target. Dedicated deployment targets are not supported.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Body
Immutable, globally unique route name using an organization-owned prefix.
1"my-org/assistant"
Upstream target for the route.
- RouteTargetBasetenModelAPIV1
- RouteTargetAnthropicV1
- RouteTargetOpenAIV1
- RouteTargetXAIV1
- RouteTargetVertexV1
- RouteTargetOpenAICompatibleV1
Identifier of the team that owns the route. When omitted, uses your organization's default team.
1"abc1234"
Display label. Omit to use the route name; null is not accepted.
1 - 255"Assistant"
Short description of the route. Omit for no description; null is not accepted.
1000"Assistant for code review and debugging."
Response
Stable route identifier.
Immutable name to send in the inference request's model field.
Identifier of the owning team.
Name of the owning team.
Display label, defaulting to the route name.
Short description of the route, empty when unset.
Configured upstream target.
- RouteTargetBasetenModelAPIV1
- RouteTargetAnthropicV1
- RouteTargetOpenAIV1
- RouteTargetXAIV1
- RouteTargetVertexV1
- RouteTargetOpenAICompatibleV1
Base URL for inference requests using this route.
Creation time, ISO 8601.