X-API-Key header.X-API-Key: sk_your_api_key_hereimage_name and ssh_key)volume_id and boot_from_volume: true)curl --location --request POST 'https://barrack.ai/api/deploy-server/' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"gpu_model": "RTX-A6000",
"gpu_count": 1,
"region": "CANADA-1",
"instance_name": "string",
"image_name": "string",
"volume_id": "string",
"boot_from_volume": false,
"ssh_key": "string",
"public_ip": true,
"security_rules": [
{
"direction": "ingress",
"protocol": "tcp",
"ethertype": "IPv4",
"port_range_min": 1,
"port_range_max": 1,
"remote_ip_prefix": "string"
}
],
"cloud_init": "string",
"os_volume": {
"size": 100
},
"existing_volumes": [
"string"
],
"volumes": [
{
"name": "string",
"size": 100,
"volume_type": "HDD"
}
],
"script_id": "string"
}'{
"success": true,
"message": "VM deployed successfully",
"request_id": "a1b2c3d4",
"timestamp": "2025-01-15T10:30:00Z",
"data": {
"instance_id": "BRK-A1B2C3D",
"vm_name": "barrack-h100s-xyz",
"region": "FINLAND-1",
"ip_address": null,
"ip_status": "pending",
"billing": {
"breakdown": {
"compute": {
"gpu": {
"model": "H100-SXM5-80GB",
"count": 4,
"hourly_rate": 9.96
}
},
"storage": {
"os_volume": {
"size_gb": 100,
"type": "NVMe",
"hourly_rate": 0.0293
},
"data_volumes": [],
"data_volumes_total": 0
}
},
"total_hourly_rate": 9.9893,
"currency": "USD"
},
"specs": {
"gpu_type": "H100-SXM5-80GB",
"gpu_count": 4,
"ram_gb": 740,
"vcpus": 176,
"storage_gb": 100
},
"status": "CREATING",
"boot_source": "image",
"operating_system": "Ubuntu 24.04 + CUDA 12.8 Open + Docker",
"features": {
"startup_script_configured": false
},
"created_at": "2025-01-15T10:30:00Z"
},
"tier": "advanced"
}