cURL
curl --request GET \ --url https://api.novita.ai/gpu-instance/openapi/v1/templates \ --header 'Authorization: <authorization>' \ --header 'Content-Type: <content-type>'
{ "template": [ { "Id": "<string>", "name": "<string>", "readme": "<string>", "type": "<string>", "channel": "<string>", "image": "<string>", "imageAuth": "<string>", "startCommand": "<string>", "entrypoint": "<string>", "rootfsSize": 123, "ports": [ { "type": "<string>", "ports": {} } ], "envs": [ { "key": "<string>", "value": "<string>" } ], "tools": [ { "name": "<string>", "describe": "<string>", "port": 123, "type": "<string>" } ], "createdAt": "<string>", "recommendCards": [ { "gpuSpecId": "<string>", "cardNum": "<string>" } ], "minCudaVersion": "<string>" } ], "total": 123 }
Documentation IndexFetch the complete documentation index at: https://novita.ai/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://novita.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
application/json
official
community
private
true
false
Show properties
instance
http, tcp
http
tcp
curl --request GET \ --url 'https://api.novita.ai/gpu-instance/openapi/v1/templates' \ --header 'Authorization: Bearer {{API Key}}'
{ "template": [ { "Id": "100", "name": "name", "readme": "```\nreadme\n```\n# uiohiu\n68686", "type": "instance", "channel": "official", "image": "image", "imageAuth": "", "startCommand": "startCommand", "entrypoint": "", "rootfsSize": 10, "ports": [ { "type": "tcp", "ports": [8080, 8090] }, { "type": "http", "ports": [6000, 60001] } ], "envs": [ { "key": "testkey", "value": "123" } ], "tools": [ { "name": "Jupyter", "describe": "Start Jupyter Notebook", "port": 8888, "type": "http" } ], "createdAt": "1711995567", "recommendCards": [ { "gpuSpecId": "4090.18c.60g", "cardNum": "2" } ], "minCudaVersion": "11.8" } ], "total": 10 }
Was this page helpful?