Skip to content
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

How to use /rp-api/runsync on pod model. #47

Open
ultimatech-cn opened this issue Feb 25, 2024 · 4 comments
Open

How to use /rp-api/runsync on pod model. #47

ultimatech-cn opened this issue Feb 25, 2024 · 4 comments

Comments

@ultimatech-cn
Copy link

I deployed the image on runpod by adding GPU Pod.
I can access comfyUI directly by browser. But I was confused how to access it by api mode.
The following statement in doc. Could anyone kindly explained it , or provide some sample code for me.

ComfyUI RP API
This service is available on port 8188 and is used to test the [RunPod serverless](https://link.ai-dock.org/runpod-serverless) API.

You can access the api directly at /rp-api/runsync or you can use the Swager/openAPI playground at /rp-api.

There are several [example payloads](https://github.com/ai-dock/comfyui/tree/main/build/COPY_ROOT/opt/serverless/docs/example_payloads) included in this repository.

Your help is most appreciated.

@robballantyne
Copy link
Member

robballantyne commented Feb 25, 2024

@ultimatech-cn when you've opened the ComfyUI URL, you can manually append rp-api to load the API playground. It should look something like this:

https://xxxx-8188.proxy.runpod.net/rp-api

I'll eventually add a link to this to make it a little easier to find.

@ultimatech-cn
Copy link
Author

Thanks a lot. I will try it.

@ultimatech-cn
Copy link
Author

@robballantyne I have another question for that.
Why the api is design to call the webhook, not response the output directly like serverless api? and any webhook sample available in this repo?
I am totally new for the development of API

@yarcat
Copy link

yarcat commented Aug 16, 2024

To ensure it stays recorded somewhere: it seems the swagger now is at /ai-dock/api/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants