List loaded adapters
curl --request GET \
--url https://api.fireworks.ai/v1/accounts/{account_id}/deployedModelsimport requests
url = "https://api.fireworks.ai/v1/accounts/{account_id}/deployedModels"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fireworks.ai/v1/accounts/{account_id}/deployedModels', 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.fireworks.ai/v1/accounts/{account_id}/deployedModels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.fireworks.ai/v1/accounts/{account_id}/deployedModels"
req, _ := http.NewRequest("GET", url, nil)
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.fireworks.ai/v1/accounts/{account_id}/deployedModels")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fireworks.ai/v1/accounts/{account_id}/deployedModels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodySpecialized Model Inference
List loaded adapters
List every loaded copy of your adapters, on serverless and dedicated deployments.
GET
/
v1
/
accounts
/
{account_id}
/
deployedModels
List loaded adapters
curl --request GET \
--url https://api.fireworks.ai/v1/accounts/{account_id}/deployedModelsimport requests
url = "https://api.fireworks.ai/v1/accounts/{account_id}/deployedModels"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fireworks.ai/v1/accounts/{account_id}/deployedModels', 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.fireworks.ai/v1/accounts/{account_id}/deployedModels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.fireworks.ai/v1/accounts/{account_id}/deployedModels"
req, _ := http.NewRequest("GET", url, nil)
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.fireworks.ai/v1/accounts/{account_id}/deployedModels")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fireworks.ai/v1/accounts/{account_id}/deployedModels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyPreview
The firectl equivalent:
curl "https://api.fireworks.ai/v1/accounts/$ACCOUNT_ID/deployedModels" \
-H "Authorization: Bearer $FIREWORKS_API_KEY"
firectl deployed-model list
Path parameters
string
required
Your account ID.
Query parameters
string
Filter results. For example,
serverless=true returns only serverless copies.integer
Maximum results per page.
string
The
nextPageToken from a previous response.string
Sort order, for example
createTime desc.Response
{
"deployedModels": [
{
"name": "accounts/your-account-id/deployedModels/abc123",
"model": "accounts/your-account-id/models/my-lora",
"serverless": true,
"default": true,
"state": "DEPLOYED"
}
],
"nextPageToken": ""
}
Find the deployed model ID for an adapter
You need this ID to get or unload over REST. This uses jq:DEPLOYED_MODEL_ID=$(curl -s "https://api.fireworks.ai/v1/accounts/$ACCOUNT_ID/deployedModels" \
-H "Authorization: Bearer $FIREWORKS_API_KEY" |
jq -r --arg m "accounts/$ACCOUNT_ID/models/my-lora" \
'.deployedModels[] | select(.model == $m and .serverless == true) | .name | split("/") | last')
echo "$DEPLOYED_MODEL_ID"
Was this page helpful?
⌘I