Create VPC
Create a new CoreWeave VPC with optional host prefixes, VPC prefixes, and ingress/egress policy.
Documentation Index
Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
Use this file to discover all available pages before exploring further.
- 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.
hostPrefix and hostPrefixes fields are mutually exclusive;
if neither is set, the server applies a Zone-specific default.
About the Host Prefix type field
The type field on a Host Prefix controls network connectivity
from the prefix to the host. Values are uppercase: PRIMARY,
ROUTED, or ATTACHED.
PRIMARYis the main IP range used for Node addresses in a VPC. Each VPC must have exactly onePRIMARYhost prefix. It supports IPv4 and IPv6; for a dual-stack VPC, both address families must be configured on the same Host Prefix. When you create a VPC without overriding this range, CoreWeave automatically applies the default host prefix for the selected Zone.ROUTEDis an additional (secondary) host prefix that the VPC routes to the host. It supports one address family per prefix; for dual-stack, each family must be a separate Host Prefix. Any number ofROUTEDprefixes are supported. From the host’s perspective, this network is Layer 3-adjacent to the DPU or underlying network fabric.ROUTEDprefixes are typically used for advanced container or tenant networks, where per-Node sub-prefixes are allocated and advertised separately from thePRIMARYNode addresses.ATTACHEDrepresents an IP range that behaves like a Layer 2 network segment spanning the host and the DPU. It supports one address family per prefix. Any number ofATTACHEDprefixes are supported. Workloads see it as a directly connected segment, with gateway behavior controlled by the prefix’s IP address management policy.
PRIMARY host prefix
that the Cloud Console configures automatically. Additional
ROUTED or ATTACHED host prefixes are used for specialized
workloads and are configured through the VPC API or Terraform
provider, not directly in the Cloud Console.
About the IPAM gatewayAddressPolicy field
The gatewayAddressPolicy on the ipam object describes
which IP address from the prefix is allocated to the network
gateway. Values are uppercase:
EUI64: The gateway IP is generated using the IPv6 EUI-64 (Extended Unique Identifier) scheme. Only valid when allprefixesare IPv6. The host must accept IPv6 Router Advertisements to learn the gateway’s address; the generated address is not returned by any other API.FIRST_IP: The first IP address in the prefix is the gateway.LAST_IP: The last IP address in the prefix is the gateway.
Authorizations
CoreWeave API access token sent as a bearer token.
Body
The name of the VPC. Must not be longer than 30 characters.
The Availability Zone in which the VPC is located.
An array of additional prefixes associated with the VPC. Must be given in CIDR notation. For example, CKS clusters use these prefixes for Pod and service CIDR ranges.
A single IPv4 CIDR range used to allocate host addresses when
booting compute into a VPC. Must meet the Availability Zone's
minimum mask size (typically /18 or larger). If unspecified,
a Zone-specific default is applied by the server. Immutable
once set.
The Host Prefixes of the VPC. If configured, each IPv4 prefix must meet the Availability Zone's minimum mask size (typically /18 or larger, for example /17 or /16), and each IPv6 prefix must be /51 or larger (for example, /50 or /49). If not explicitly configured, a Zone-specific default is applied by the server. This field is mutually exclusive with hostPrefix and is immutable once set.
The ingress configuration of the VPC.
The egress configuration of the VPC.
The DHCP configuration of the VPC.
Response
OK
The VPC.