List models
curl --request GET \
--url https://fanifyai.com/api/v1/hub/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://fanifyai.com/api/v1/hub/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://fanifyai.com/api/v1/hub/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://fanifyai.com/api/v1/hub/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://fanifyai.com/api/v1/hub/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://fanifyai.com/api/v1/hub/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://fanifyai.com/api/v1/hub/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "nano-banana-2",
"name": "Nano Banana 2",
"description": "Fanify image model, 1K/2K/4K.",
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"image"
],
"currency": "EUR",
"is_llm": false,
"parameters_schema": {
"type": "object",
"required": [
"prompt"
],
"properties": {}
},
"pricing_tiers": [
{
"match": {
"resolution": "1K"
},
"price_usd": 0.036
},
{
"match": {
"resolution": "2K"
},
"price_usd": 0.048
},
{
"match": {
"resolution": "4K"
},
"price_usd": 0.072
}
],
"input_cost_per_million": null,
"output_cost_per_million": null,
"context_length": null,
"max_output_tokens": null,
"supports_vision": false,
"supports_tools": false,
"supports_structured_output": false,
"supports_reasoning": false
},
{
"id": "deepseek-v4-flash-0731",
"name": "DeepSeek V4 Flash",
"description": null,
"input_modalities": [
"text"
],
"output_modalities": [
"text"
],
"currency": "EUR",
"is_llm": true,
"parameters_schema": {
"type": "object",
"properties": {}
},
"pricing_tiers": null,
"input_cost_per_million": 0.0837,
"output_cost_per_million": 0.3348,
"context_length": 163840,
"max_output_tokens": 32768,
"supports_vision": true,
"supports_tools": true,
"supports_structured_output": true,
"supports_reasoning": true
}
]
}{
"type": "https://fanifyai.com/docs/hub/errors#unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized"
}{
"type": "https://fanifyai.com/docs/hub/errors#rate_limited",
"title": "Rate limit reached",
"status": 429,
"code": "rate_limited"
}Models
List models
Lists the models and prices available to your account.
GET
/
api
/
v1
/
hub
/
models
List models
curl --request GET \
--url https://fanifyai.com/api/v1/hub/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://fanifyai.com/api/v1/hub/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://fanifyai.com/api/v1/hub/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://fanifyai.com/api/v1/hub/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://fanifyai.com/api/v1/hub/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://fanifyai.com/api/v1/hub/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://fanifyai.com/api/v1/hub/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "nano-banana-2",
"name": "Nano Banana 2",
"description": "Fanify image model, 1K/2K/4K.",
"input_modalities": [
"text",
"image"
],
"output_modalities": [
"image"
],
"currency": "EUR",
"is_llm": false,
"parameters_schema": {
"type": "object",
"required": [
"prompt"
],
"properties": {}
},
"pricing_tiers": [
{
"match": {
"resolution": "1K"
},
"price_usd": 0.036
},
{
"match": {
"resolution": "2K"
},
"price_usd": 0.048
},
{
"match": {
"resolution": "4K"
},
"price_usd": 0.072
}
],
"input_cost_per_million": null,
"output_cost_per_million": null,
"context_length": null,
"max_output_tokens": null,
"supports_vision": false,
"supports_tools": false,
"supports_structured_output": false,
"supports_reasoning": false
},
{
"id": "deepseek-v4-flash-0731",
"name": "DeepSeek V4 Flash",
"description": null,
"input_modalities": [
"text"
],
"output_modalities": [
"text"
],
"currency": "EUR",
"is_llm": true,
"parameters_schema": {
"type": "object",
"properties": {}
},
"pricing_tiers": null,
"input_cost_per_million": 0.0837,
"output_cost_per_million": 0.3348,
"context_length": 163840,
"max_output_tokens": 32768,
"supports_vision": true,
"supports_tools": true,
"supports_structured_output": true,
"supports_reasoning": true
}
]
}{
"type": "https://fanifyai.com/docs/hub/errors#unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized"
}{
"type": "https://fanifyai.com/docs/hub/errors#rate_limited",
"title": "Rate limit reached",
"status": 429,
"code": "rate_limited"
}Was this page helpful?
