Get Model
This API endpoint is designed to retrieve information on both public and private models. It allows users to access details such as model specifications, status, and usage guidelines, ensuring comprehensive insights into the available modeling resources.
Request Headers
Enum: application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Query Parameters
Model types: public
or private
. If not set, the interface will query all types of models.
Source of the model.
Enum: civitai
, training
, uploading
Specifies the types of models to include in the query.
Enum: checkpoint
, lora
, vae
, controlnet
, upscaler
, textualinversion
Whether the model is SDXL or not. Setting this parameter to true
includes only SDXL models in the query results, which are typically large-scale, high-performance models designed for extensive data processing tasks. Conversely, setting it to false
excludes these models from the results. If left unspecified, the filter will not discriminate based on the SDXL classification, including all model types in the search results.
Searches the content of sd_name, name, and tags.
If set to true, it will filter out the checkpoints used for inpainting. The default is false.
Number of models to query per request, range (0, 100].
pagination.cursor is used to specify which record to start returning from. If it is empty, it means to get it from the beginning. Generally, the content of the next page is obtained by passing in the next_cursor field value from the response packet.
Response
Example
request
response
Was this page helpful?