cURL
curl --request GET \ --url https://www.chenyu.cn/api/open/v2/pod/list \ --header 'Authorization: Bearer <token>'
{ "code": 123, "msg": "<string>", "data": { "pod_list": [ { "title": "<string>", "uuid": "<string>", "remark": "<string>", "pod_tag": [ {} ], "price": { "hour": 123, "day": 123, "week": 123, "month": 123, "year": 123 } } ], "total": 123 } }
查询应用市场中可用的Pod列表
Documentation IndexFetch the complete documentation index at: https://chenyu.mintlify.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://chenyu.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Show data
Show pod_list
Show price
import requests url = "https://www.chenyu.cn/api/open/v2/pod/list" headers = { "Content-Type": "application/json" } params = { "page": 1, "page_size": 10, "name": "pytorch" } response = requests.get(url, headers=headers, params=params) result = response.json() print(f"总共找到 {result['data']['total']} 个Pod") for pod in result['data']['pod_list']: print(f"Pod名称: {pod['title']}") print(f"描述: {pod['remark']}") print(f"按小时价格: {pod['price']['hour']} 元") print("---")
{ "code": 0, "msg": "success", "data": { "pod_list": [ { "title": "PyTorch 深度学习环境", "uuid": "pod_12345678-1234-1234-1234-123456789012", "remark": "预装PyTorch 2.0,支持CUDA 11.8,适合深度学习训练", "pod_tag": ["v1.0", "v1.1", "v2.0"], "price": { "hour": 2.5, "day": 50.0, "week": 300.0, "month": 1200.0, "year": 12000.0 } } ], "total": 1 } }