v1

latestOpenAPI 3.0.02026-07-228239173.7 KB
Client API v2

List all available inference models.

get/api/v2/models

Query parameters

per_pageinteger
pageinteger
filter[inference_types]string[]

Comma-separated list of inference types to filter by. Example: txt2img,txt2audio

Headers

Accept'application/json' required

Response

List of available models.

Example response

{
  "data": [
    {
      "info": {
        "limits": {
          "min_width": 64,
          "max_width": 2048,
          "min_height": 64,
          "max_height": 2048,
          "min_steps": 1,
          "max_steps": 150,
          "min_cfg_scale": 1,
          "max_cfg_scale": 30,
          "min_duration": 0.5,
          "max_duration": 10,
          "min_fps": 8,
          "max_fps": 30
        },
        "features": {
          "supports_last_frame": true,
          "supports_negative_prompt": true,
          "supports_controlnet": false,
          "supports_lora": true,
          "supports_voice_presets": true,
          "supports_custom_voice": false
        },
        "defaults": {
          "width": 512,
          "height": 512,
          "steps": 20,
          "cfg_scale": 7.5,
          "negative_prompt": "no disfigurations",
          "fps": 24,
          "duration": 4,
          "voice": "alloy"
        }
      }
    }
  ]
}