Model Search API

Search and discover AI models available in the Runware platform. Filter and find the perfect model for your image generation needs.

Introduction

The Model Search API enables discovery of available models on the Runware platform, providing powerful search and filtering capabilities. Whether exploring public models from the community or managing private models within your organization, this API helps find the perfect model for any image generation task.

Models discovered through this API can be immediately used in image generation tasks by referencing their AIR identifiers. This enables dynamic model selection in applications and helps discover new models for specific artistic styles. For optimal search performance, consider using specific filters to narrow results and combining multiple criteria to find the most relevant models.

Search capabilities

The search functionality works across model names, versions, tags, and other fields, allowing users to both find specific models and discover related ones that match their search terms.

Multiple filters are available to narrow down results based on technical aspects of the models such as their category, type, architecture, and specific capabilities, making it easy to find exactly what you need.

The visibility filter helps manage which models appear in the results: choose between your organization's public models, private models, or all available models including those from the community.

Search results

Search queries return comprehensive information about matching models. A unique AIR identifier is provided for each model, which is essential for image generation requests. The metadata includes the model's name, version and tags, while technical-related fields detail the model's category, type and architecture, along with its visibility status.

Results are returned in a paginated format to ensure efficient processing of large result sets. The default limit is 20 models per page, though this can be customized using the limit parameter. Navigation through the results is handled through the offset parameter, allowing you to move through the complete set of matches if needed.

Request

Our API always accepts an array of objects as input, where each object represents a specific task to be performed. The structure of the object varies depending on the type of the task. For this section, we will focus on the parameters related to the model search task.

The following JSON snippet shows the basic structure of a request object. All properties are explained in detail in the next section.

[
  {
    "taskType": "modelSearch",
    "taskUUID": "50836053-a0ee-4cf5-b9d6-ae7c5d140ada",
    "search": "realistic",
    "tags": "photorealistic",
    "category": "checkpoint",
    "type": "base",
    "architecture": "sdxl",
    "visibility": "all",
    "offset": 0,
    "limit": 20
  }
]

taskType

string required

The type of task to be performed. For this task, the value should be modelSearch.

taskUUID

string required UUID v4

When a task is sent to the API you must include a random UUID v4 string using the taskUUID parameter. This string is used to match the async responses to their corresponding tasks.

If you send multiple tasks at the same time, the taskUUID will help you match the responses to the correct tasks.

The taskUUID must be unique for each task you send to the API.

tags

string[]

Filter models by matching any of the provided tags in this array. Models that contain at least one of these tags will be included in the results.

category

string

Filter models by their category.

Possible values:

  • checkpoint: Base models that serve as the foundation for image generation.
  • lora: LoRA (Low-Rank Adaptation) models used to add specific styles or concepts.
  • lycoris: Alternative to LoRA models, offering different adaptation techniques.
  • controlnet: Models designed for guided image generation with specific conditions.
  • vae: Variational Autoencoders used for improving image quality and details.
  • embedding: Textual embeddings used to add new concepts to the model's vocabulary.

type

string

Filter checkpoint models by their type.

Possible values:

  • base: Standard models for general image generation.
  • inpainting: Models for filling in or modifying parts of existing images.
  • refiner: Models that improve the quality and details of generated images.

Note: This parameter is only applicable when category is set to checkpoint.

architecture

string

Filter models by their architecture.

Possible values:

  • flux1d: FLUX.1 Dev
  • flux1s: FLUX.1 Schnell
  • pony: Pony
  • sd1x: SD 1.5
  • sdhyper: SD 1.5 Hyper
  • sd1xlcm: SD 1.5 LCM
  • sd3: SD 3
  • sdxl: SDXL 1.0
  • sdxllcm: SDXL 1.0 LCM
  • sdxldistilled: SDXL Distilled
  • sdxlhyper: SDXL Hyper
  • sdxllightning: SDXL Lightning
  • sdxlturbo: SDXL Turbo

conditioning

string

Filter ControlNet models by their conditioning type.

Possible values:

  • blur: Uses blurred images to guide the generation.
  • canny: Follows edge detection maps as reference.
  • depth: Creates images based on depth map information.
  • gray: Takes grayscale images as input reference.
  • hed: Works with holistic edge detection patterns.
  • inpaint: Uses masks to control generation areas.
  • inpaintdepth: Combines both masks and depth information.
  • lineart: Takes line art as reference input.
  • lowquality: References low quality images for generation.
  • normal: Works with normal map information.
  • openmlsd: Guided by line segment detection.
  • openpose: Creates images following human pose guides.
  • outfit: Works with clothing and outfit patterns.
  • pix2pix: Takes reference images as guidance.
  • qrcode: Uses QR codes as structural reference.
  • scribble: Follows simple sketches or scribbles.
  • seg: Based on segmentation map guides.
  • shuffle: Works with rearranged content as reference.
  • sketch: Uses sketch drawings as guidance.
  • softedge: Follows soft edge detection patterns.
  • tile: Based on tiling and pattern references.

visibility

string Default: all

Filter models by their visibility status and ownership:

  • public: Show only your organization's public models.
  • private: Show only your organization's private models.
  • all: Show both community models and all your organization's models (public and private).

limit

integer Min: 1 Max: 100 Default: 20

Maximum number of items to return in a single request. Used for pagination in combination with offset.

offset

integer Min: 0 Default: 0

Number of items to skip in the result set. Used for pagination in combination with limit.

Response

Results will be delivered in the format below.

{
  "data": [
    {
      "results": [
        {
          "name": "Promissing_Realistic_XL",
          "air": "civitai:305149@392545",
          "tags": [
            "photorealistic",
            "base model",
            "sci-fi",
            "photo",
            "woman",
            "fantasy",
            "photorealism",
            "rpg",
            "general use",
            "close up",
            "close up shot",
            "promissing_realistic_xl"
          ],
          "heroImage": "https://mim.runware.ai/r/66a70a0bb7c38-450x450.jpg",
          "category": "checkpoint",
          "private": false,
          "comment": "",
          "version": "v22",
          "architecture": "sdxl",
          "type": "base",
          "defaultWidth": 1024,
          "defaultHeight": 1024,
          "defaultSteps": 20,
          "defaultScheduler": "Default",
          "defaultCFG": 7.5
        },
      ],
      "taskUUID": "50836053-a0ee-4cf5-b9d6-ae7c5d140ada",
      "taskType": "modelSearch",
      "totalResults": 2
      }
    }
  ]
}

taskType

string

The API will return the taskType you sent in the request. In this case, it will be modelSearch. This helps match the responses to the correct task type.

taskUUID

string UUID v4

The API will return the taskUUID you sent in the request. This way you can match the responses to the correct request tasks.

totalResults

integer

The total number of models that match your search criteria, including those beyond the current page limit.

Use this value in combination with offset and limit parameters to implement pagination.

results

object[]

An array containing the matching models for your search. Each object in the array includes the model's metadata such as AIR identifier, name, tags, preview image, default parameters and others.

For detailed information about each field in the results object, check the parameters below.

air

string

We make use of the AIR (Artificial Intelligence Resource) system to identify models. This identifier is a unique string that represents a specific model.

You can use the AIR identifier to reference this model in other API calls, such as image generation requests.

name

string

The display name of the model.

version

string

The version label of the model.

category

string

The category of the model. See possible values.

architecture

string

The architecture of the model. See possible values.

type

string

The type of checkpoint model. See possible values.

Note: This parameter is only returned when the model's category is checkpoint.

tags

string[]

Array of tags associated with the model.

heroImage

string

URL of the model's preview image.

private

boolean

Indicates whether this is a private model (true) or a public one (false).

comment

string

Additional notes or comments about the model.

defaultWidth

integer

The recommended width for image generation with this model.

Note: This parameter is only returned when the model's category is checkpoint.

defaultHeight

integer

The recommended height for image generation with this model.

Note: This parameter is only returned when the model's category is checkpoint.

defaultSteps

integer

The default number of steps to use with this model when not specified during inference.

Note: This parameter is only returned when the model's category is checkpoint.

The default scheduler to use with this model when not specified during inference.

Note: This parameter is only returned when the model's category is checkpoint.

defaultCFG

float

The default CFG (Classifier Free Guidance) scale to use with this model when not specified during inference.

Note: This parameter is only returned when the model's category is checkpoint.

The default strength value to use with this inpainting model when not specified during inference.

Note: This parameter is only returned when the model's category is checkpoint and type is inpainting.

Words or phrases that need to be included in the prompt to properly activate this LoRA model. Not all LoRA models have trigger words.

Note: This parameter is only returned when the model's category is lora, lycoris, or embedding.

conditioning

string

The conditioning type of the ControlNet model. See possible values.

Note: This parameter is only returned when the model's category is controlnet.