Model catalog
List Collections
Published model collections — curated groupings of related models. Private member models are withheld, and modelCount counts only the models actually returned.
GET
/
collections
List Collections
curl --request GET \
--url https://api.modelrunner.run/collectionsimport requests
url = "https://api.modelrunner.run/collections"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.modelrunner.run/collections', 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.modelrunner.run/collections",
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.modelrunner.run/collections"
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.modelrunner.run/collections")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modelrunner.run/collections")
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[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"heroImageUrl": "<string>",
"isPublished": true,
"sortBy": "newest",
"displayOrder": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"modelCount": 123,
"models": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownerName": "<string>",
"alias": "<string>",
"name": "<string>",
"variantName": "<string>",
"shortDescription": "<string>",
"category": "<string>",
"inputModalities": [
"<string>"
],
"outputModalities": [
"<string>"
],
"thumbnailUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]Response
200 - application/json
Published collections.
URL-safe identifier used by GET /collections/{slug}.
Always true on these public reads.
How the collection orders its members for display.
Available options:
newest, name, category Number of models returned in models — private members are withheld and are not counted.
Show child attributes
Show child attributes
⌘I
List Collections
curl --request GET \
--url https://api.modelrunner.run/collectionsimport requests
url = "https://api.modelrunner.run/collections"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.modelrunner.run/collections', 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.modelrunner.run/collections",
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.modelrunner.run/collections"
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.modelrunner.run/collections")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modelrunner.run/collections")
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[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"heroImageUrl": "<string>",
"isPublished": true,
"sortBy": "newest",
"displayOrder": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"modelCount": 123,
"models": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownerName": "<string>",
"alias": "<string>",
"name": "<string>",
"variantName": "<string>",
"shortDescription": "<string>",
"category": "<string>",
"inputModalities": [
"<string>"
],
"outputModalities": [
"<string>"
],
"thumbnailUrl": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]
