List the values each filter column takes
curl --request GET \
--url https://hub.oxen.ai/api/ai/generations/_filtersimport requests
url = "https://hub.oxen.ai/api/ai/generations/_filters"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hub.oxen.ai/api/ai/generations/_filters', 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://hub.oxen.ai/api/ai/generations/_filters",
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://hub.oxen.ai/api/ai/generations/_filters"
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://hub.oxen.ai/api/ai/generations/_filters")
.asString();require 'uri'
require 'net/http'
url = URI("https://hub.oxen.ai/api/ai/generations/_filters")
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_body{
"filters": {},
"status": "success",
"status_message": "resource_found"
}{}API Reference
List the values each filter column takes
Distinct values for each requested filter column, so a client can populate filter dropdowns with choices that actually match rows. Scope params (namespace, user_id) apply; the list endpoint’s own filter params do not, so a selected value never narrows its own column.
GET
/
api
/
ai
/
generations
/
_filters
List the values each filter column takes
curl --request GET \
--url https://hub.oxen.ai/api/ai/generations/_filtersimport requests
url = "https://hub.oxen.ai/api/ai/generations/_filters"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hub.oxen.ai/api/ai/generations/_filters', 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://hub.oxen.ai/api/ai/generations/_filters",
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://hub.oxen.ai/api/ai/generations/_filters"
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://hub.oxen.ai/api/ai/generations/_filters")
.asString();require 'uri'
require 'net/http'
url = URI("https://hub.oxen.ai/api/ai/generations/_filters")
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_body{
"filters": {},
"status": "success",
"status_message": "resource_found"
}{}Query Parameters
Comma-separated filter columns. Allowed: repo, folder, model, media_type, status, user_id — the same keys the list endpoint filters on.
Response
Filter values
Distinct values for each requested filter column, keyed by the column name the caller passes back to the list endpoint. truncated says the column has more values than the response carries.