Skip to main content
POST
Deploy a Container

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
resource_private_name
string
required

Must be a unique string identifying the deployment.

duration_hours
integer<int32>
required

Duration of the deployment in hours.

gpus_per_container
integer<int32>
required

Must be set to 8.

hardware_id
integer<int32>
required

Use values from the Inventory Browsing API.

location_ids
integer<int32>[]
required

Array of region/location IDs. Use values from the Inventory Browsing API.

container_config
object
required

Configuration of the container to deploy. See below.

registry_config
object
required

Docker image registry credentials and image details. See below.

replica_count
integer<int32>
required

Number of container replicas to run.

entrypoint
string[]
required

Array of strings in exec form that overrides the container’s default entrypoint. Example: ["python3", "-m", "my.app"].

traffic_port
integer<int32>
required

Port on which the container exposes its HTTP service. Used for internal health checks.

env_variables
object

Key-value pairs of environment variables.

secret_env_variables
object

Same as env_variables, but securely stored. Only visible in actual deployments.

args
string[]

Array of strings to append to the entrypoint. Must contain at least one item.

image_url
string

Full Docker image path (e.g., ghcr.io/org/image:tag).

registry_username
string

Username for container registry.

registry_secret
string

Access token or password for container registry.

Response

200

status
string
Example:

"string"

deployment_id
string
Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"