Skip to main content
POST
/
model_list
Get Public Models List
curl --request POST \
  --url https://modelslab.com/api/v4/dreambooth/model_list \
  --header 'Content-Type: application/json' \
  --data '{
  "key": ""
}'
import requests

url = "https://modelslab.com/api/v4/dreambooth/model_list"

payload = { "key": "" }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({key: ''})
};

fetch('https://modelslab.com/api/v4/dreambooth/model_list', 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://modelslab.com/api/v4/dreambooth/model_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://modelslab.com/api/v4/dreambooth/model_list"

payload := strings.NewReader("{\n \"key\": \"\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://modelslab.com/api/v4/dreambooth/model_list")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://modelslab.com/api/v4/dreambooth/model_list")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "model_id": "midjourney",
    "status": "model_ready",
    "created_at": null,
    "instance_prompt": "mdjrny-v4 style",
    "model_name": "MidJourney V4",
    "description": "Openjourney is an open source Stable Diffusion fine tuned model on Midjourney images, by PromptHero",
    "screenshots": "https://d1okzptojspljx.cloudfront.net/generations/14853540911669470514.png"
  },
  {
    "model_id": "anything-v3",
    "status": "model_ready",
    "created_at": null,
    "instance_prompt": null,
    "model_name": "Anything V3",
    "description": "This model is intended to produce high-quality, highly detailed anime style with just a few prompts.",
    "screenshots": "https://d1okzptojspljx.cloudfront.net/generations/8589140601669473451.png"
  },
  {
    "model_id": "wifu-diffusion",
    "status": "model_ready",
    "created_at": null,
    "instance_prompt": null,
    "model_name": "Wifu Diffusion",
    "description": "waifu-diffusion is a latent text-to-image diffusion model that has been conditioned on high-quality anime images through fine-tuning.",
    "screenshots": "https://d1okzptojspljx.cloudfront.net/generations/21468819471669474933.png"
  }
]
{
"status": "error",
"message": "<string>",
"code": 123
}

Request

Send a POST request to below endpoint to obtain a list with the available public models and their IDs.
curl
--request POST 'https://modelslab.com/api/v4/dreambooth/model_list' \

Body

json
{ 
    "key": "your_api_key"
}

Body

application/json
key
string
required

Your API Key used for request authorization

Example:

""

Response

Successful response with list of public models

model_id
string

Unique identifier for the model

Example:

"midjourney"

status
string

Current status of the model

Example:

"model_ready"

created_at
string | null

Creation timestamp of the model

Example:

null

instance_prompt
string | null

Prompt to use this model effectively

Example:

"mdjrny-v4 style"

model_name
string

Display name of the model

Example:

"MidJourney V4"

description
string

Description of the model's capabilities

Example:

"Openjourney is an open source Stable Diffusion fine tuned model on Midjourney images, by PromptHero"

screenshots
string<uri>

URL to preview image showcasing the model's output

Example:

"https://d1okzptojspljx.cloudfront.net/generations/14853540911669470514.png"