Start here
List available CometAPI models
Use GET /api/models to fetch the CometAPI model catalog with model IDs, providers, and capabilities for routing chat, image, and video requests.
GET
/
api
/
models
cURL
curl https://api.cometapi.com/api/modelsimport requests
response = requests.get("https://api.cometapi.com/api/models")
models = response.json()["data"]
for model in models[:10]:
print(model["id"], "-", model.get("provider", ""))
const response = await fetch("https://api.cometapi.com/api/models");
const { data: models } = await response.json();
for (const model of models.slice(0, 10)) {
console.log(model.id, "-", model.provider ?? "");
}
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/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://api.cometapi.com/api/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://api.cometapi.com/api/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/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{
"success": true,
"page": 0,
"page_size": 0,
"total": 301,
"data": [
{
"created": 1776391310,
"id": "gpt-image-2",
"code": "gpt-image-2",
"provider": "OpenAI",
"provider_code": "openai",
"description": "Image generation model for text-to-image and editing workflows.",
"tags": [],
"name": "GPT Image 2",
"model_type": "image",
"context_length": null,
"max_completion_tokens": null,
"features": [
"text-to-image"
],
"endpoints": "{\n \"openai-image\": {\n \"path\": \"/v1/images/generations\",\n \"method\": \"POST\"\n }\n}",
"pricing": {
"currency": "USD / M Tokens",
"input": 4,
"output": 24,
"per_request": null,
"per_second": null
},
"api_doc_url": "https://apidoc.cometapi.com/api/image/openai/images",
"upcoming": false
}
]
}Last modified on June 23, 2026
⌘I
cURL
curl https://api.cometapi.com/api/modelsimport requests
response = requests.get("https://api.cometapi.com/api/models")
models = response.json()["data"]
for model in models[:10]:
print(model["id"], "-", model.get("provider", ""))
const response = await fetch("https://api.cometapi.com/api/models");
const { data: models } = await response.json();
for (const model of models.slice(0, 10)) {
console.log(model.id, "-", model.provider ?? "");
}
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/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://api.cometapi.com/api/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://api.cometapi.com/api/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/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{
"success": true,
"page": 0,
"page_size": 0,
"total": 301,
"data": [
{
"created": 1776391310,
"id": "gpt-image-2",
"code": "gpt-image-2",
"provider": "OpenAI",
"provider_code": "openai",
"description": "Image generation model for text-to-image and editing workflows.",
"tags": [],
"name": "GPT Image 2",
"model_type": "image",
"context_length": null,
"max_completion_tokens": null,
"features": [
"text-to-image"
],
"endpoints": "{\n \"openai-image\": {\n \"path\": \"/v1/images/generations\",\n \"method\": \"POST\"\n }\n}",
"pricing": {
"currency": "USD / M Tokens",
"input": 4,
"output": 24,
"per_request": null,
"per_second": null
},
"api_doc_url": "https://apidoc.cometapi.com/api/image/openai/images",
"upcoming": false
}
]
}