Skip to main content
GET
/
gpu-instance
/
openapi
/
v1
/
image
/
prewarm
List Image Prewarm Tasks
curl --request GET \
  --url https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
import requests

url = "https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm"

headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'}
};

fetch('https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.novita.ai/gpu-instance/openapi/v1/image/prewarm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "id": "<string>",
      "imageName": "<string>",
      "imageUrl": "<string>",
      "repositoryAuth": "<string>",
      "clusterId": "<string>",
      "clusterName": "<string>",
      "products": [
        {
          "productId": "<string>",
          "productName": "<string>"
        }
      ],
      "imageSize": "<string>",
      "createTime": "<string>",
      "state": "<string>",
      "completeTime": "<string>",
      "note": "<string>",
      "reason": [
        "<string>"
      ]
    }
  ],
  "total": 123
}

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Query Parameters

page
integer
Page number. Default: 1.
pageSize
integer
Page size. Default: 10.
state
string
Prewarm task state. Valid values: Pending, Running, Succeeded, Failed.
clusterId
string
Cluster ID.
name
string
Image name or task note for fuzzy matching.

Response

data
object[]
required
List of prewarm tasks.
total
integer
required
Total number of tasks.
Last modified on September 15, 2025