Basic
Model APIs
- Introduction
- LLM API
- Image, Audio and Video
GPUs
- GPU Instance
- Cluster
- Instance
- Template
- Product
- Network
- Image Registry
- Storage
- Serverless GPUs
Template
List Templates
GET
/
gpu-instance
/
openapi
/
v1
/
templates
Copy
Ask AI
curl --request GET \
--url https://api.novita.ai/gpu-instance/openapi/v1/templates \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
Copy
Ask AI
{
"template": [
{
"Id": "<string>",
"createTime": "<string>",
"user": "<string>",
"tools": [
"<string>"
],
"name": "<string>",
"readme": "<string>",
"type": "<string>",
"channel": "<string>",
"image": "<string>",
"imageAuth": "<string>",
"startCommand": "<string>",
"rootfsSize": 123,
"volumes": [
{
"type": "<string>",
"size": 123,
"mountPath": "<string>"
}
],
"ports": [
{
"type": "<string>",
"ports": {}
}
],
"envs": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"pageSize": 123,
"pageNum": 123,
"total": 123
}
Request Headers
Enum: application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Query Parameters
Maximum number of entries returned on one page.
Current page index.
Filter the templates by name.
Filter the templates by type.
Filter the templates by channel.
Response
Template ID.
Template creation time.
ID of the user who created the template.
Template name.
Template README content (in Markdown format).
Template type.Enum: instance
Template channel.Enum: private
Docker image address for instance startup.
Credentials for the Docker image registry to pull private images.
Startup command for the instance.
Rootfs storage (GB).
Maximum number of entries returned on one page.
Current page index.
Total number of templates.
Example
Request
Copy
Ask AI
curl --request GET \
--url 'https://api.novita.ai/gpu-instance/openapi/v1/templates' \
--header 'Authorization: Bearer {{API Key}}'
Response
Copy
Ask AI
{
"template": [
{
"Id": "100",
"user": "1032922317920824",
"name": "name",
"readme": "```\nreadme\n```\n# uiohiu\n68686",
"logo": "",
"type": "instance",
"channel": "private",
"image": "image",
"imageAuth": "",
"startCommand": "startCommand",
"rootfsSize": 10,
"volumes": [
{
"type": "local",
"size": 20,
"mountPath": "localVolumeMount"
}
],
"ports": [
{
"type": "tcp",
"ports": [8080, 8090]
},
{
"type": "http",
"ports": [6000, 60001]
}
],
"envs": [
{
"key": "testkey",
"value": "123"
}
],
"tools": [],
"createTime": "1711995567"
}
],
"pageSize": 1,
"pageNum": 0,
"total": 10
}
Was this page helpful?
Copy
Ask AI
curl --request GET \
--url https://api.novita.ai/gpu-instance/openapi/v1/templates \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'
Copy
Ask AI
{
"template": [
{
"Id": "<string>",
"createTime": "<string>",
"user": "<string>",
"tools": [
"<string>"
],
"name": "<string>",
"readme": "<string>",
"type": "<string>",
"channel": "<string>",
"image": "<string>",
"imageAuth": "<string>",
"startCommand": "<string>",
"rootfsSize": 123,
"volumes": [
{
"type": "<string>",
"size": 123,
"mountPath": "<string>"
}
],
"ports": [
{
"type": "<string>",
"ports": {}
}
],
"envs": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"pageSize": 123,
"pageNum": 123,
"total": 123
}
Assistant
Responses are generated using AI and may contain mistakes.