Deploy Update
curl --request PUT \
--url https://api.deepinfra.com/deploy/{deploy_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settings": {
"min_instances": 1,
"max_instances": 1
},
"standard_args": {
"max_context_size": 5000000,
"max_concurrent_requests": 512,
"gpu_memory_fraction": 0.735,
"max_prefill_tokens": 65792,
"enable_prefix_caching": true
},
"extra_args": [
"<string>"
]
}
'import requests
url = "https://api.deepinfra.com/deploy/{deploy_id}"
payload = {
"settings": {
"min_instances": 1,
"max_instances": 1
},
"standard_args": {
"max_context_size": 5000000,
"max_concurrent_requests": 512,
"gpu_memory_fraction": 0.735,
"max_prefill_tokens": 65792,
"enable_prefix_caching": True
},
"extra_args": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
settings: {min_instances: 1, max_instances: 1},
standard_args: {
max_context_size: 5000000,
max_concurrent_requests: 512,
gpu_memory_fraction: 0.735,
max_prefill_tokens: 65792,
enable_prefix_caching: true
},
extra_args: ['<string>']
})
};
fetch('https://api.deepinfra.com/deploy/{deploy_id}', 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.deepinfra.com/deploy/{deploy_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'settings' => [
'min_instances' => 1,
'max_instances' => 1
],
'standard_args' => [
'max_context_size' => 5000000,
'max_concurrent_requests' => 512,
'gpu_memory_fraction' => 0.735,
'max_prefill_tokens' => 65792,
'enable_prefix_caching' => true
],
'extra_args' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.deepinfra.com/deploy/{deploy_id}"
payload := strings.NewReader("{\n \"settings\": {\n \"min_instances\": 1,\n \"max_instances\": 1\n },\n \"standard_args\": {\n \"max_context_size\": 5000000,\n \"max_concurrent_requests\": 512,\n \"gpu_memory_fraction\": 0.735,\n \"max_prefill_tokens\": 65792,\n \"enable_prefix_caching\": true\n },\n \"extra_args\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.deepinfra.com/deploy/{deploy_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settings\": {\n \"min_instances\": 1,\n \"max_instances\": 1\n },\n \"standard_args\": {\n \"max_context_size\": 5000000,\n \"max_concurrent_requests\": 512,\n \"gpu_memory_fraction\": 0.735,\n \"max_prefill_tokens\": 65792,\n \"enable_prefix_caching\": true\n },\n \"extra_args\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepinfra.com/deploy/{deploy_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"settings\": {\n \"min_instances\": 1,\n \"max_instances\": 1\n },\n \"standard_args\": {\n \"max_context_size\": 5000000,\n \"max_concurrent_requests\": 512,\n \"gpu_memory_fraction\": 0.735,\n \"max_prefill_tokens\": 65792,\n \"enable_prefix_caching\": true\n },\n \"extra_args\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"deploy_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Dedicated Models
Deploy Update
PUT
/
deploy
/
{deploy_id}
Deploy Update
curl --request PUT \
--url https://api.deepinfra.com/deploy/{deploy_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"settings": {
"min_instances": 1,
"max_instances": 1
},
"standard_args": {
"max_context_size": 5000000,
"max_concurrent_requests": 512,
"gpu_memory_fraction": 0.735,
"max_prefill_tokens": 65792,
"enable_prefix_caching": true
},
"extra_args": [
"<string>"
]
}
'import requests
url = "https://api.deepinfra.com/deploy/{deploy_id}"
payload = {
"settings": {
"min_instances": 1,
"max_instances": 1
},
"standard_args": {
"max_context_size": 5000000,
"max_concurrent_requests": 512,
"gpu_memory_fraction": 0.735,
"max_prefill_tokens": 65792,
"enable_prefix_caching": True
},
"extra_args": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
settings: {min_instances: 1, max_instances: 1},
standard_args: {
max_context_size: 5000000,
max_concurrent_requests: 512,
gpu_memory_fraction: 0.735,
max_prefill_tokens: 65792,
enable_prefix_caching: true
},
extra_args: ['<string>']
})
};
fetch('https://api.deepinfra.com/deploy/{deploy_id}', 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.deepinfra.com/deploy/{deploy_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'settings' => [
'min_instances' => 1,
'max_instances' => 1
],
'standard_args' => [
'max_context_size' => 5000000,
'max_concurrent_requests' => 512,
'gpu_memory_fraction' => 0.735,
'max_prefill_tokens' => 65792,
'enable_prefix_caching' => true
],
'extra_args' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.deepinfra.com/deploy/{deploy_id}"
payload := strings.NewReader("{\n \"settings\": {\n \"min_instances\": 1,\n \"max_instances\": 1\n },\n \"standard_args\": {\n \"max_context_size\": 5000000,\n \"max_concurrent_requests\": 512,\n \"gpu_memory_fraction\": 0.735,\n \"max_prefill_tokens\": 65792,\n \"enable_prefix_caching\": true\n },\n \"extra_args\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.deepinfra.com/deploy/{deploy_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settings\": {\n \"min_instances\": 1,\n \"max_instances\": 1\n },\n \"standard_args\": {\n \"max_context_size\": 5000000,\n \"max_concurrent_requests\": 512,\n \"gpu_memory_fraction\": 0.735,\n \"max_prefill_tokens\": 65792,\n \"enable_prefix_caching\": true\n },\n \"extra_args\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deepinfra.com/deploy/{deploy_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"settings\": {\n \"min_instances\": 1,\n \"max_instances\": 1\n },\n \"standard_args\": {\n \"max_context_size\": 5000000,\n \"max_concurrent_requests\": 512,\n \"gpu_memory_fraction\": 0.735,\n \"max_prefill_tokens\": 65792,\n \"enable_prefix_caching\": true\n },\n \"extra_args\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"deploy_id": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Show child attributes
Show child attributes
Engine tuning knobs. Replaces the whole set; omitted knobs are cleared.
Show child attributes
Show child attributes
Extra engine-specific command-line args (custom-weight deploys only). Replaces the whole list; omitted args are cleared.
Response
Successful Response
Deploy Id
Example:
"fkj843kjh8"
⌘I