Models

Get a list of all available image generation models. Use the id from this response as the model_version_id when creating generations.

Endpoint

GET /api/v1/models

Authentication

Requires a valid API key in the Authorization header.

Authorization: Bearer bw_your_api_key_here

Request

No request body required.

Example Request

curl https://betterwaifu.com/api/v1/models \
  -H "Authorization: Bearer bw_your_api_key_here"

Response

Success Response (200)

{
  "models": [
    {
      "id": 814910,
      "name": "v6.5",
      "model_name": "tPonynai3",
      "base_model": "Pony",
      "type": "Checkpoint",
      "filename": "tPonynai3_v65.safetensors",
      "cover_image": "https://example.com/cover.jpg",
      "nsfw": false
    },
    {
      "id": 1496755,
      "name": "V1.1",
      "model_name": "Amanatsu (Illustrious)",
      "base_model": "Illustrious",
      "type": "Checkpoint",
      "filename": "amanatsuIllustrious_v11.safetensors",
      "cover_image": null,
      "nsfw": false
    }
  ],
  "count": 25
}

Response Fields

FieldTypeDescription
modelsarrayList of available models
models[].idnumberModel version ID (use this as model_version_id in generate)
models[].namestringVersion name
models[].model_namestringParent model name
models[].base_modelstringBase model architecture (e.g., "Pony", "Illustrious")
models[].typestringModel type (e.g., "Checkpoint")
models[].filenamestringModel filename
models[].cover_imagestring | nullURL to model cover image
models[].nsfwbooleanWhether the model is marked as NSFW
countnumberTotal number of models returned

Error Responses

401 Unauthorized

{
  "error": "Invalid or missing API key"
}

Notes

  • Only models with generation enabled are returned
  • Models are sorted alphabetically by model name, then by version name
  • The id field is what you pass as model_version_id when generating images