R
Runpod2mo ago
Taha

401 when attempting to call the create pod endpoint

I get a 401 when I try creating a pod through the REST API. Is anything wrong with my request?
curl -X POST https://rest.runpod.io/v1/pods \
-H "Authorization: Bearer $RUNPOD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cloudType": "COMMUNITY",
"computeType": "GPU",
"gpuCount": 1,
"volumeInGb": 0,
"containerDiskInGb": 50,
"gpuTypeIds": ["NVIDIA GeForce RTX 3090"],
"imageName": "vllm/vllm-openai:latest",
"name": "vllm",
"ports": ["8000/http", "22/tcp"],
"supportPublicIp": true,
"dockerEntrypoint": ["--model", "Qwen/Qwen3-4B", "--enable-auto-tool-choice", "--tool-call-parser", "hermes", "--max-model-len", "8128"],
"interruptible": false,
"locked": false,
"minDownloadMbps": 800
}'
curl -X POST https://rest.runpod.io/v1/pods \
-H "Authorization: Bearer $RUNPOD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cloudType": "COMMUNITY",
"computeType": "GPU",
"gpuCount": 1,
"volumeInGb": 0,
"containerDiskInGb": 50,
"gpuTypeIds": ["NVIDIA GeForce RTX 3090"],
"imageName": "vllm/vllm-openai:latest",
"name": "vllm",
"ports": ["8000/http", "22/tcp"],
"supportPublicIp": true,
"dockerEntrypoint": ["--model", "Qwen/Qwen3-4B", "--enable-auto-tool-choice", "--tool-call-parser", "hermes", "--max-model-len", "8128"],
"interruptible": false,
"locked": false,
"minDownloadMbps": 800
}'
Solution:
Message Not Public
Sign In & Join Server To View
Jump to solution
2 Replies
Solution
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Taha
TahaOP2mo ago
this was it, thanks

Did you find this page helpful?