santa hat
deerdeer nosedeer glow
Sign In

CivitAi API Sort by Inpaint model

Hey, i am using this API Documentation (https://github.com/civitai/civitai/wiki/REST-API-Reference#get-apiv1modelsmodelid) and wanted to ask if i can sort the modelversion after inpaint and normal

1 Answer

Not sure I fully understand what "sort the modelversion after..." means. Inpaint is not an indication as far as I'm aware (very few loras and checkpoints nowadays even have that), but you could read each model version via https://civitai.com/api/v1/model-versions/:id , and check if the basemodeltype (unreliable) or name contain inpaint then move those to the back or whatever.

Your answer