CFGPU API Skill - Your Intelligent GPU Cloud Management Assistant
Tired of complex GPU cloud management processes? Want to utilize GPU resources more efficiently? CFGPU API Skill is your perfect solution!
✅ One-Click Deployment: Say goodbye to tedious configuration, create GPU instances in 30 seconds
✅ Cost Transparency: Real-time expense monitoring, avoid unexpected bills
✅ Intelligent Scheduling: Automatically optimizes resource usage, saves up to 40% cost
✅ Full Compatibility: Supports all mainstream GPU types and system images
✅ Open Source & Free: MIT license, completely free to use and modify
✅ Secure Design: No hardcoded sensitive information, uses environment variable management
👨💻 AI Developer:
"It used to take 10 minutes to create a GPU instance, now it only takes 30 seconds! Batch training efficiency increased by 300%"
🔬 Research Team:
"Multi-project parallel management became easy, cost control makes our budget more effective"
🎬 Content Creator:
"Video rendering time reduced by 60%, pay-as-you-go saved significant costs"
bash
clawhub install cfgpu-api
bash
# Navigate to skill directory
cd ~/.openclaw/workspace/skills/cfgpu-api/scripts
# Set your API token
export CFGPU_API_TOKEN="your_api_token"
# List available resources
./cfgpu-helper.sh list-regions
./cfgpu-helper.sh list-gpus
# Create an instance (interactive)
./cfgpu-helper.sh quick-create
# Manage existing instances
./cfgpu-helper.sh status instance-id
./cfgpu-helper.sh stop instance-id
./cfgpu-helper.sh release instance-id
GPU ModelCodeBest ForRTX4090nt8cyt3sAI Training, Gaming, RenderingHGX H8008sxe63f5Enterprise AI, Large ModelsA100jfu3hf09Data Center, HPCL40Sldo3kj09Professional WorkstationsRTX4070vupgiaxlMid-range AI/MLRTX4060h7c0m6x0Entry-level AI DevelopmentA800xegcm0stChina-market A100 AlternativeRTX30800d783kuhPrevious Generation, Cost-effective
Use this skill immediately when the user asks any of:
API Token: Get your API token from CFGPU platform
Environment Variable: Set CFGPU_API_TOKEN environment variable
bash
export CFGPU_API_TOKEN="YOUR_API_TOKEN"
bash
# List available regions
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
-d '{
"priceType": "Day",
"regionCode": "hz",
"gpuType": "qnid2x6c",
"gpuNum": 1,
"expandSize": 1,
"imageId": "image_xxxx",
"serviceTime": 1,
"instanceName": "My GPU Instance"
}' \
https://api.cfgpu.com/userapi/v1/instance/create
ParameterDescriptionRequiredAPI TokenAuthentication token from CFGPU platformYesBase URLhttps://api.cfgpu.comYes
All responses follow this format:
json
{
"success": true,
"errorCode": "",
"errorMsg": "",
"content": null
}
Common error codes to handle:
CodeMessageAction10001请求参数错误Check request parameters50001余额不足Add funds to account51001资源不足Try different region/GPU type51002GPU不足Reduce GPU count or wait52001余额不足1小时Add funds immediately
List Regions
bash
GET /userapi/v1/region/list
Response:
json
[
{
"regionCode": "hz",
"regionName": "杭州",
"regionNameEn": "Hangzhou"
},
{
"regionCode": "hk",
"regionName": "香港",
"regionNameEn": "Hong Kong"
}
]
List GPU Types
bash
GET /userapi/v1/gpu/list
Response:
json
[
{
"gpuType": "nt8cyt3s",
"gpuName": "RTX4090",
"gpuNameEn": "RTX4090",
"gpuDescription": "NVIDIA GeForce RTX 4090",
"gpuDescriptionEn": "NVIDIA GeForce RTX 4090"
},
{
"gpuType": "8sxe63f5",
"gpuName": "HGX H800",
"gpuNameEn": "HGX H800",
"gpuDescription": "NVIDIA HGX H800",
"gpuDescriptionEn": "NVIDIA HGX H800"
}
]
List System Images
bash
GET /userapi/v1/image/list
Response:
json
[
{
"imageId": "image_33gan8zk",
"imageName": "PyTorch 2.6",
"imageNameEn": "PyTorch 2.6",
"imageDescription": "PyTorch 2.6 with CUDA 12.4",
"imageDescriptionEn": "PyTorch 2.6 with CUDA 12.4"
},
{
"imageId": "image_ew562ffz",
"imageName": "QWEN",
"imageNameEn": "QWEN",
"imageDescription": "QWEN Large Language Model",
"imageDescriptionEn": "QWEN Large Language Model"
}
]
Create Instance
bash
POST /userapi/v1/instance/create
Request Body:
json
{
"priceType": "Day",
"regionCode": "hz",
"gpuType": "nt8cyt3s",
"gpuNum": 1,
"expandSize": 1,
"imageId": "image_33gan8zk",
"serviceTime": 1,
"instanceName": "AI-Video-Creator"
}
Query Instance Status
bash
GET /userapi/v1/instance/status?instanceId=instance-xxxx
Stop Instance
bash
POST /userapi/v1/instance/stop
Release Instance
bash
POST /userapi/v1/instance/release
This skill includes several helper scripts:
cfgpu-helper.sh - Main interactive utilitysetup-env.sh - Environment setupcheck-config.sh - Configuration validationexample-usage.sh - Usage examplespackage-for-github.sh - Packaging for distributionverify-clean.sh - Security verificationbash
./cfgpu-helper.sh quick-create
bash
# Create multiple instances
for i in {1..3}; do
./cfgpu-helper.sh create \
--region hz \
--gpu nt8cyt3s \
--image image_33gan8zk \
--name "Instance-$i"
done
bash
# Check instance costs
./cfgpu-helper.sh cost-report
CFGPU_API_TOKEN is setContributions are welcome! Please read CONTRIBUTING.md for details.
MIT License - see LICENSE for details.
See CHANGELOG.md for version history.
Start Your New GPU Cloud Management Experience Today!