[Feature Request]: API endpoint to get user metadata for Extra Networks and Checkpoints #16176
Open
1 task done
Labels
enhancement
New feature or request
Is there an existing issue for this?
What would your feature do ?
In the WebUI users can set things like Activation Text, Preferred Weight, and Notes for Loras, Hypernetworks, etc. The
.json
files also contain details for which version of Stable Diffusion the Lora can be used for. It would be extremely valuable for projects with different frontends if that information could be accessed via the API. Plugins for Krita or addons for Blender could access presets the user had already saved on the server, without the user needing to remember all the activation text.The current
/sdapi/v1/loras
endpoint returns ametadata
section, but it doesn't include any of theuser_metadata
fields.Proposed workflow
/sdapi/v1/sd-models
would include an "sd version" field for the models./sdapi/v1/loras
,/sdapi/v1/hypernetworks
,/sdapi/v1/embeddings
, and/sd_extra_networks/metadata
could all include the metadata that's saved in the.json
files for these extra networks.json
metadata - likely `/sd_extra_networks/user_metadata/'. Parameters would be a file path or the name of the Lora, as well as a post body.For reference, here's what the
.json
documents currently look likeWith those pieces of information, tools that interact with the API can give users a much better
Additional information
No response
The text was updated successfully, but these errors were encountered: