Skip to main content
POST
Create Job

Body

application/json
parameters
object
required
title
string
required
max_timeout_run_ms
number
required

The maximum time in milliseconds to execute a BATCH Job.

Required range: x >= 60000
Example:

900000

task
enum<string>
required

BATCH Jobs run to completion or until max_timeout_run_ms elapses, whichever comes first. max_timeout_run_ms is required.

Available options:
BATCH
cpu_count
integer

Legacy alias for min_cpu_count. Prefer min_cpu_count for new clients.

Required range: x >= 0
Example:

4

min_cpu_count
integer

Minimum CPU cores on the assigned node. The assigned Node must have at least this many CPU cores available. Defaults to zero.

Required range: x >= 0
Example:

4

description
string | null

An optional description for the Job.

gpu_count
integer

Legacy alias for min_gpu_count. Prefer min_gpu_count for new clients.

Required range: x >= 0
Example:

1

min_gpu_count
integer

Inclusive minimum total GPUs installed on the assigned node, across all GPU models. Defaults to zero. Set min_gpu_count and max_gpu_count to the same value for an exact count. If the legacy gpu_count alias is also supplied, it must match.

Required range: x >= 0
Example:

1

max_gpu_count
integer | null

Inclusive maximum total GPUs installed on the assigned node, across all models. Must be at least min_gpu_count. Omit or use null for no upper limit; use 0 for CPU-only hardware (with no GPU model or VRAM requirement).

Required range: x >= 0
Example:

2

gpu_name
string | null
deprecated

DEPRECATED (ZER-2071): free-text GPU targeting is deprecated; send gpu_registry_uuid from GET /v1/gpu-registry instead. Requests carrying this field are answered with Deprecation and Sunset headers and will be rejected with 400 after the sunset date. Mutually exclusive with gpu_registry_uuid.

Example:

"NVIDIA RTX 4090"

gpu_registry_uuid
string<uuid> | null

UUID of a GPU from the GpuRegistry for exact GPU targeting. Mutually exclusive with gpu_name.

Example:

"01234567-89ab-cdef-0123-456789abcdef"

max_node_count
number
default:1

The maximum number of Nodes that can be assigned to run the Job. Default is 1.

max_retry_count
number
default:0

The maximum number of times to retry the Job if it fails. Default is 0 (no retries).

Required range: x >= 0
max_timeout_assign_ms
number
default:300000

The maximum time in milliseconds to wait for the the Job to be assigned to a Node. Default: 5 minutes.

Required range: x >= 300000
max_timeout_start_ms
number
default:300000

The maximum time in milliseconds to wait for the the Node to finish preparing the assigned Job. Default: 5 minutes.

Required range: x >= 120000
min_ram_gb
number
default:0

The minimum RAM in gigabytes required for the Job. The assigned Node must have at least this much RAM available.

Required range: x >= 0
min_storage_gb
number
default:0

The minimum storage in gigabytes required for the Job. The assigned Node must have at least this much storage available.

Required range: x >= 0
min_vram_gb
number
default:0

The minimum VRAM in gigabytes required for the Job. The assigned Node must have at least this much VRAM available.

Required range: x >= 0
allowed_region_codes
enum<string>[]

Restrict this Job to nodes in the given region codes. Empty = no per-Job restriction.

Maximum array length: 36
Available options:
ca-central-1,
ca-west-1,
mx-central-1,
sa-east-1,
us-east-1,
us-east-2,
us-west-1,
us-west-2,
eu-central-1,
eu-central-2,
eu-north-1,
eu-south-1,
eu-south-2,
eu-west-1,
eu-west-2,
eu-west-3,
ap-east-1,
ap-east-2,
ap-northeast-1,
ap-northeast-2,
ap-northeast-3,
ap-south-1,
ap-south-2,
ap-southeast-1,
ap-southeast-2,
ap-southeast-3,
ap-southeast-4,
ap-southeast-5,
ap-southeast-6,
ap-southeast-7,
cn-north-1,
cn-northwest-1,
af-south-1,
il-central-1,
me-central-1,
me-south-1
Example:

Response

Job created successfully

object
enum<string>
required
Available options:
job
created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required
status
enum<string>
required
Available options:
PENDING,
ASSIGNED,
RUNNING,
COMPLETED,
CANCELLED,
FAILED
task
enum<string>
required
Available options:
BATCH,
PERSISTENT
title
string
required
cpu_count
number | null
required

Legacy alias for min_cpu_count.

gpu_count
number | null
required

Legacy alias for min_gpu_count.

min_ram_gb
number
required
min_vram_gb
number
required
min_storage_gb
number
required
parameters
object
required
timeout_assign_at_ms
number | null
required
stop_action
object
uuid
string | null
started_at
string<date-time> | null
completed_at
string<date-time> | null
description
string | null
min_cpu_count
number | null

Minimum CPU cores required on the node.

min_gpu_count
number | null

Minimum total GPUs required on the node.

max_gpu_count
integer | null

Inclusive maximum total GPUs on the node; null means unlimited.

Required range: x >= 0
gpu_name
string | null
gpu_registry_uuid
string | null
max_timeout_assign_ms
number | null
max_timeout_run_ms
number | null
max_timeout_start_ms
number | null
max_retry_count
number | null
max_node_count
number | null
image_size_bytes
number | null
allowed_region_codes
(enum<string> | null)[]

Coarse geographic-network region identifier (AWS-style naming).

Available options:
ca-central-1,
ca-west-1,
mx-central-1,
sa-east-1,
us-east-1,
us-east-2,
us-west-1,
us-west-2,
eu-central-1,
eu-central-2,
eu-north-1,
eu-south-1,
eu-south-2,
eu-west-1,
eu-west-2,
eu-west-3,
ap-east-1,
ap-east-2,
ap-northeast-1,
ap-northeast-2,
ap-northeast-3,
ap-south-1,
ap-south-2,
ap-southeast-1,
ap-southeast-2,
ap-southeast-3,
ap-southeast-4,
ap-southeast-5,
ap-southeast-6,
ap-southeast-7,
cn-north-1,
cn-northwest-1,
af-south-1,
il-central-1,
me-central-1,
me-south-1,
null
Example:

"us-west-2"

container_access_tokens
object[]
status_reason
string | null
source_recipe_uuid
string | null