Save Image
curl --request POST \
--url https://api.novita.ai/gpus/v2/jobs/save-image \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"instance_id": "instance-id",
"image": "registry.example.com/team/image:tag",
"registry_auth_id": "registry-auth-id"
}
'import requests
url = "https://api.novita.ai/gpus/v2/jobs/save-image"
payload = {
"instance_id": "instance-id",
"image": "registry.example.com/team/image:tag",
"registry_auth_id": "registry-auth-id"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
instance_id: 'instance-id',
image: 'registry.example.com/team/image:tag',
registry_auth_id: 'registry-auth-id'
})
};
fetch('https://api.novita.ai/gpus/v2/jobs/save-image', 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/gpus/v2/jobs/save-image",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'instance_id' => 'instance-id',
'image' => 'registry.example.com/team/image:tag',
'registry_auth_id' => 'registry-auth-id'
]),
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novita.ai/gpus/v2/jobs/save-image"
payload := strings.NewReader("{\n \"instance_id\": \"instance-id\",\n \"image\": \"registry.example.com/team/image:tag\",\n \"registry_auth_id\": \"registry-auth-id\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.novita.ai/gpus/v2/jobs/save-image")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"instance_id\": \"instance-id\",\n \"image\": \"registry.example.com/team/image:tag\",\n \"registry_auth_id\": \"registry-auth-id\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novita.ai/gpus/v2/jobs/save-image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"instance_id\": \"instance-id\",\n \"image\": \"registry.example.com/team/image:tag\",\n \"registry_auth_id\": \"registry-auth-id\"\n}"
response = http.request(request)
puts response.read_body{
"job_id": "job-id"
}Jobs
Save Image
POST
/
gpus
/
v2
/
jobs
/
save-image
Save Image
curl --request POST \
--url https://api.novita.ai/gpus/v2/jobs/save-image \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"instance_id": "instance-id",
"image": "registry.example.com/team/image:tag",
"registry_auth_id": "registry-auth-id"
}
'import requests
url = "https://api.novita.ai/gpus/v2/jobs/save-image"
payload = {
"instance_id": "instance-id",
"image": "registry.example.com/team/image:tag",
"registry_auth_id": "registry-auth-id"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
instance_id: 'instance-id',
image: 'registry.example.com/team/image:tag',
registry_auth_id: 'registry-auth-id'
})
};
fetch('https://api.novita.ai/gpus/v2/jobs/save-image', 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/gpus/v2/jobs/save-image",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'instance_id' => 'instance-id',
'image' => 'registry.example.com/team/image:tag',
'registry_auth_id' => 'registry-auth-id'
]),
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novita.ai/gpus/v2/jobs/save-image"
payload := strings.NewReader("{\n \"instance_id\": \"instance-id\",\n \"image\": \"registry.example.com/team/image:tag\",\n \"registry_auth_id\": \"registry-auth-id\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.novita.ai/gpus/v2/jobs/save-image")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"instance_id\": \"instance-id\",\n \"image\": \"registry.example.com/team/image:tag\",\n \"registry_auth_id\": \"registry-auth-id\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novita.ai/gpus/v2/jobs/save-image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"instance_id\": \"instance-id\",\n \"image\": \"registry.example.com/team/image:tag\",\n \"registry_auth_id\": \"registry-auth-id\"\n}"
response = http.request(request)
puts response.read_body{
"job_id": "job-id"
}Headers
Allowed value: application/json.
Bearer authentication format, e.g.: Bearer {{API_KEY}}.
Body
application/json
Instance ID. String, length: 1-255 characters.
Example:
"instance-id"
Target image name or address. String, length: 1-4095 characters.
Example:
"registry.example.com/team/image:tag"
Saved registry authentication ID. String, length: 0-255 characters.
Example:
"registry-auth-id"
Last modified on June 23, 2026
Was this page helpful?
⌘I