List models
curl --request GET \
--url https://dev.hub.oxen.ai/api/ai/modelsimport requests
url = "https://dev.hub.oxen.ai/api/ai/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.hub.oxen.ai/api/ai/models', 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://dev.hub.oxen.ai/api/ai/models",
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://dev.hub.oxen.ai/api/ai/models"
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://dev.hub.oxen.ai/api/ai/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.hub.oxen.ai/api/ai/models")
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{
"data": [
{
"created": 123,
"id": "<string>",
"object": "model",
"owned_by": "<string>",
"capabilities": {
"input": [
"<string>"
],
"output": [
"<string>"
]
},
"deployments": [
{}
],
"description": "<string>",
"developer": {
"logo": "<string>",
"name": "<string>"
},
"display_name": "<string>",
"fine_tuning": {
"actions": [
"<string>"
],
"cost_per_second": 123
},
"image_url": "<string>",
"pricing": {
"cost_per_image": 123,
"cost_per_second": 123,
"cost_per_second_high_res": 123,
"cost_per_second_with_audio": 123,
"input_cost_per_token": 123,
"output_cost_per_token": 123
},
"released_at": "<string>",
"request_schema": {},
"showcase": {
"gallery": [
{
"alt": "<string>",
"src": "<string>",
"category": "<string>",
"details": "<string>",
"prompt": "<string>",
"title": "<string>"
}
],
"hero_image": "<string>",
"tagline": "<string>"
},
"source_model": "<string>",
"summary": "<string>"
}
],
"object": "list"
}API Reference
List models
Lists all available models. OpenAI-compatible.
GET
/
api
/
ai
/
models
List models
curl --request GET \
--url https://dev.hub.oxen.ai/api/ai/modelsimport requests
url = "https://dev.hub.oxen.ai/api/ai/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.hub.oxen.ai/api/ai/models', 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://dev.hub.oxen.ai/api/ai/models",
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://dev.hub.oxen.ai/api/ai/models"
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://dev.hub.oxen.ai/api/ai/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.hub.oxen.ai/api/ai/models")
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{
"data": [
{
"created": 123,
"id": "<string>",
"object": "model",
"owned_by": "<string>",
"capabilities": {
"input": [
"<string>"
],
"output": [
"<string>"
]
},
"deployments": [
{}
],
"description": "<string>",
"developer": {
"logo": "<string>",
"name": "<string>"
},
"display_name": "<string>",
"fine_tuning": {
"actions": [
"<string>"
],
"cost_per_second": 123
},
"image_url": "<string>",
"pricing": {
"cost_per_image": 123,
"cost_per_second": 123,
"cost_per_second_high_res": 123,
"cost_per_second_with_audio": 123,
"input_cost_per_token": 123,
"output_cost_per_token": 123
},
"released_at": "<string>",
"request_schema": {},
"showcase": {
"gallery": [
{
"alt": "<string>",
"src": "<string>",
"category": "<string>",
"details": "<string>",
"prompt": "<string>",
"title": "<string>"
}
],
"hero_image": "<string>",
"tagline": "<string>"
},
"source_model": "<string>",
"summary": "<string>"
}
],
"object": "list"
}⌘I