Skip to content

🔑 RunPod API

Useful when the web console is out (examples are outages from AWS and Cloudflare).

Using RunPod API

  • Docs.
  • Install with "sudo apt install curl" on Ubuntu.
curl --request GET \
  --url https://rest.runpod.io/v1/pods \
  --header 'Authorization: Bearer <api-key>'

curl --request POST \
  --url https://rest.runpod.io/v1/pods/{podId}/stop \
  --header 'Authorization: Bearer <api-key>'

curl --request DELETE \
  --url https://rest.runpod.io/v1/pods/{podId} \
  --header 'Authorization: Bearer <api-key>'

Using runpodctl to start/stop your pod with your API key.

  • Docs.
  • Install client on local computer.
  • Use PowerShell or Bash.

Usage

runpodctl doctor

runpodctl pod list
runpodctl pod stop <pod_id>
runpodctl pod delete <pod_id>