-
Notifications
You must be signed in to change notification settings - Fork 25.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: add API method to get LoRA models #7865
Comments
/sdapi/v1/cmd-flags you can get the main path with "data_dir" value |
and then? With the Lora path in hand, how do I enumerate the lora files and thumbnails through the api? |
You can't at the moment via the API. You'll need to build your own list using the Lora path. For my own application, I just assume that all files in that directory with a valid lora extension are loras. It's not perfect but it should work fine unless users drop non-lora files that are named like loras there. |
how to get the lora api at file path "models\Lora" |
Is there any progress now? I need to access the machine remotely, so I can't get the lora model list even if I get the folder path. |
Is there an existing issue for this?
What would your feature do ?
I see there are API methods to fetch models, embeddings, samplers, hypernetworks, upscalers, etc - but there currently seems to be no way to fetch a list of available LoRA models via the API. Would be great to have!
Proposed workflow
If it worked exactly like the existing /sdapi/v1/hypernetworks API method, that'd be perfect IMO. Just a simple request that returns a list of available LoRA models.
Additional information
No response
The text was updated successfully, but these errors were encountered: