Spaces:
Running
on
Zero
Can i use your model as a api?
Hello jamesliu1217, i have use your model and it's very good similar to gpt4o model so i am creating ai image convertor app so i like your ai model so how can i use your model as api? i need your help for it can you please hlp me.
Hello jamesliu1217, i have use your model and it's very good similar to gpt4o model so i am creating ai image convertor app so i like your ai model so how can i use your model as api? i need your help for it can you please hlp me.
hi sagartest, there are many potential ways to use it as api. If I'm you, I'll rent some gpus
and serve the model there. Or you can try huggingface api, which I have zero experience about. check this out: https://x.com/abidlabs/status/1907090121129947185?s=46&t=ordUIrXPjVut1HKuW2N1_Q
Hi jamesliu1217, thank you for the quick response! 🙌
I’ve tried your suggestion I cloned your repo into my Hugging Face Space and under the API section below the model page, I found the POST API. I passed the necessary data, and in the response I received an event_id
. Then I used the GET API with that event_id
and got a response containing the output image URL.
The issue is: the URL returned is not publicly accessible.
I tested it in two browsers:
- In one browser (logged into the Hugging Face account that owns the Space), the image shows fine ✅
- But in another browser (with a different Hugging Face account), the image doesn’t open ❌
So it seems the image is private to the account that created the Space.
How can I make the output URL public, so that anyone can access the generated image regardless of their Hugging Face login status?
Would really appreciate your help on this 🙏
Thanks again!
Well. This one's beyond my experience. Let’s find some help.
if you give some help it will be very helpful.
if you give some help it will be very helpful.
I've already forwarded this discussion to the people at HuggingFace. Maybe they will look into this issue later.
i hope we get response fast.
Hi sagartest,
We build a simple API implementation to deploy the model on your own machines. Test it out:
https://github.com/Xiaojiu-z/EasyControl/tree/simple_api/Ghibli_simple_API
Hey thanks for sharing this @jamesliu1217 , let me know if you do consulting services, we also want to put this up on a server but we don't know how. We are willing to pay for your time :D
Hey thanks for sharing this @jamesliu1217 , let me know if you do consulting services, we also want to put this up on a server but we don't know how. We are willing to pay for your time :D
Hey! You can try the above api code directly. If you encounter any problem, you can reach us out at [email protected]