mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
567 stars 152 forks source link

How to generate images? (NOOB Question) #240

Closed kilegence closed 6 months ago

kilegence commented 6 months ago

Hi, sorry for the noob question, it's probably an easy fix. I successfully opened the API at the URL: http://127.0.0.1:8888 and clicked on docs, and this opened up: image

Next I've opened up examples.ipynp and tried to write the prompt on the line where it says "image prompt" but when I run the command I get this error: [Task Queue] Finish task with error, seq=bfb51913-cfa7-44a5-ae2c-e994b7ffc660

Did I do something wrong? How do I actually open Foocus with it to get it running and generate images? Can I do it locally on my PC or I need to use Replicate?

Thanks, btw I'm not a coder so this is so confusing to me haha

mrhan1993 commented 6 months ago

Image Prompt using image to generate image. if you want to generate image by text, use /v1/generate/text-to-image endpoint