DOCUMENTATION
Everything you need to deploy GPU clusters and run AI workloads.
Get a GPU cluster running in under 60 seconds.
Sign up at nilegpu.com and retrieve your API key from the dashboard.
export NILE_API_KEY=nk_live_your_key_here
pip install nile-compute
import nile
client = nile.Client(api_key="nk_live_...")
cluster = client.clusters.create(
gpu="h100",
count=8,
region="addis-1",
image="pytorch-2.4-cuda12.4"
)
print(f"Status: {cluster.status}")
print(f"SSH: {cluster.ssh_command}")
print(f"Cost: ${cluster.cost_per_hour}/hr")ssh ubuntu@203.0.113.42 python -c "import torch; print(torch.cuda.device_count())" # 8
result = client.clusters.terminate(cluster.id)
print(f"Runtime: {result['runtime_hours']:.2f} hours")
print(f"Cost: ${result['total_cost']:.2f}")