[GH-ISSUE #52] [Feature Request] : Ext through API #47

Closed
opened 2026-10-31 21:16:22 +00:00 by bsakaguchi · 13 comments
Owner

Originally created by @MeinDeutschkurs on GitHub (Jun 3, 2023).
Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/52

Hi everyone,
I'm stuck I cannot figure out, how to submit the model "fast" instead of the default one:

Bildschirmfoto 2023-06-03 um 18 08 43 Has this feature not been implemented yet, or am I overlooking something?

Greetings from Austria,
Johannes

Originally created by @MeinDeutschkurs on GitHub (Jun 3, 2023). Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/52 Hi everyone, I'm stuck I cannot figure out, how to submit the model "fast" instead of the default one: <img width="1249" alt="Bildschirmfoto 2023-06-03 um 18 08 43" src="https://github.com/pharmapsychotic/clip-interrogator-ext/assets/129950466/d2ab7dbc-361a-4bbc-9e3b-bf45e70301f0"> Has this feature not been implemented yet, or am I overlooking something? Greetings from Austria, Johannes
bsakaguchi 2026-10-31 21:16:22 +00:00
Author
Owner

@pharmapsychotic commented on GitHub (Jun 11, 2023):

Oh that API is using the version of CLIP Interrogator that is builtin to stable-diffusion-webui and doesn't have all the modes of the extension. You can use the CLIP Interrogator library directly from https://github.com/pharmapsychotic/clip-interrogator if you are writing scripts and want to generate prompts.

<!-- gh-comment-id:1586240779 --> @pharmapsychotic commented on GitHub (Jun 11, 2023): Oh that API is using the version of CLIP Interrogator that is builtin to stable-diffusion-webui and doesn't have all the modes of the extension. You can use the CLIP Interrogator library directly from https://github.com/pharmapsychotic/clip-interrogator if you are writing scripts and want to generate prompts.
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 12, 2023):

I see, the API endpoint has nothing to do with your extension. If so, sorry for the mix up. So, I should use the command line version.

I will loose the queue, but I‘ll try it. Thx.

<!-- gh-comment-id:1588024001 --> @MeinDeutschkurs commented on GitHub (Jun 12, 2023): I see, the API endpoint has nothing to do with your extension. If so, sorry for the mix up. So, I should use the command line version. I will loose the queue, but I‘ll try it. Thx.
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 13, 2023):

@pharmapsychotic , according to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11190#issuecomment-1588636208 I'd suggest/want to ask to make the extension available through API. That would be fantastic.

<!-- gh-comment-id:1589936584 --> @MeinDeutschkurs commented on GitHub (Jun 13, 2023): @pharmapsychotic , according to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11190#issuecomment-1588636208 I'd suggest/want to ask to make the extension available through API. That would be fantastic.
Author
Owner

@pharmapsychotic commented on GitHub (Jun 13, 2023):

ooh that's cool, didn't know you could do that!

<!-- gh-comment-id:1590078476 --> @pharmapsychotic commented on GitHub (Jun 13, 2023): ooh that's cool, didn't know you could do that!
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 13, 2023):

Yeah that rocks! The big advantage is the queue, which is on board with all the other tasks. That's amazing and for sure an enhancement! WOOHOO!

<!-- gh-comment-id:1590139430 --> @MeinDeutschkurs commented on GitHub (Jun 13, 2023): Yeah that rocks! The big advantage is the queue, which is on board with all the other tasks. That's amazing and for sure an enhancement! WOOHOO!
Author
Owner

@cpietsch commented on GitHub (Jun 21, 2023):

Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.

<!-- gh-comment-id:1600980693 --> @cpietsch commented on GitHub (Jun 21, 2023): Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 21, 2023):

Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.

I was asking for doing this. I'm not a programmer, I'm keen to test and play.

<!-- gh-comment-id:1601498766 --> @MeinDeutschkurs commented on GitHub (Jun 21, 2023): > Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same. I was asking for doing this. I'm not a programmer, I'm keen to test and play.
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 22, 2023):

Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same.

I watched yesterday some videos about FastAPI and grado. It‘s amazing, how Interfaces and endpoints can be knitted with it. At the weekend I try to combine all my local models with it.

As mentioned, I love the queue system. Who knows, maybe I‘m then able to understand the above code. I don‘t want to exclude it. But first I have to understand all of this.

<!-- gh-comment-id:1602052662 --> @MeinDeutschkurs commented on GitHub (Jun 22, 2023): > Hey @MeinDeutschkurs, are you making progress on the the API integration ? I am thinking of doing the same. I watched yesterday some videos about FastAPI and grado. It‘s amazing, how Interfaces and endpoints can be knitted with it. At the weekend I try to combine all my local models with it. As mentioned, I love the queue system. Who knows, maybe I‘m then able to understand the above code. I don‘t want to exclude it. But first I have to understand all of this.
Author
Owner

@cpietsch commented on GitHub (Jun 27, 2023):

Working on it and will make a pull request soon.
Is there a rule/convention for naming an extension api endpoint ?

For now I went with /interrogator/models and /interrogator/analyze

image

<!-- gh-comment-id:1609365752 --> @cpietsch commented on GitHub (Jun 27, 2023): Working on it and will make a pull request soon. Is there a rule/convention for naming an extension api endpoint ? For now I went with `/interrogator/models` and `/interrogator/analyze` ![image](https://github.com/pharmapsychotic/clip-interrogator-ext/assets/129529/80cf39f4-4cdd-4315-b57b-6a1885f79685)
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 27, 2023):

Working on it and will make a pull request soon. Is there a rule/convention for naming an extension api endpoint ?

For now I went with /interrogator/models and /interrogator/analyze

That is amazing! Thank you so much for your efforts!!! At the weekend I was able to get in touch with python and FastAPI. I came not that far, I'm scratching on the very top of the ice-plate. I have no idea about conventions, but maybe /clip-interrogator-ext/models and /clip-interrogator-ext/analyse makes sense, to avoid mixing it up with the stock-one (as happened to me as I created the initial post).

<!-- gh-comment-id:1609463470 --> @MeinDeutschkurs commented on GitHub (Jun 27, 2023): > Working on it and will make a pull request soon. Is there a rule/convention for naming an extension api endpoint ? > > For now I went with `/interrogator/models` and `/interrogator/analyze` That is amazing! Thank you so much for your efforts!!! At the weekend I was able to get in touch with python and FastAPI. I came not that far, I'm scratching on the very top of the ice-plate. I have no idea about conventions, but maybe `/clip-interrogator-ext/models` and `/clip-interrogator-ext/analyse` makes sense, to avoid mixing it up with the stock-one (as happened to me as I created the initial post).
Author
Owner

@cpietsch commented on GitHub (Jun 27, 2023):

I went for the /interrogator/* path since the internal one is exposed via /sdapi/v1/interrogate

<!-- gh-comment-id:1609829868 --> @cpietsch commented on GitHub (Jun 27, 2023): I went for the /interrogator/* path since the internal one is exposed via /sdapi/v1/interrogate
Author
Owner

@pharmapsychotic commented on GitHub (Jun 27, 2023):

Thanks for the PR this will be great!

<!-- gh-comment-id:1609907300 --> @pharmapsychotic commented on GitHub (Jun 27, 2023): Thanks for the PR this will be great!
Author
Owner

@MeinDeutschkurs commented on GitHub (Jun 28, 2023):

Thank you so much! That's awesome! I did the update through webui and I can't wait to test it later that day! 👏👏👏👏

<!-- gh-comment-id:1610706676 --> @MeinDeutschkurs commented on GitHub (Jun 28, 2023): Thank you so much! That's awesome! I did the update through webui and I can't wait to test it later that day! 👏👏👏👏
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pharmapsychotic/clip-interrogator-ext#47
No description provided.