invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.77k stars 2.44k forks source link

[enhancement]: REST API endpoint to queue specific workflow with data provided #5719

Open Smoria opened 9 months ago

Smoria commented 9 months ago

Is there an existing issue for this?

Contact Details

smoria@live.com

What should this feature add?

It would be great to have API endpoint to add specific workflow (by ID of saved workflow, or by workflow JSON) to queue, instead of always providing generated graph i.e. calling enqueue_batch without graph but only workflow and data fields.

This is very useful for creating custom API users that use workflows that could be changed anytime.

Alternatives

No response

Additional Content

No response

Trismegiste commented 3 months ago

This feature would be great, I agree, mainly because, outside of the entry point URL enqueue_batch, there's no documentation about the JSON to POST in the body, specially for describing the "linearized" fields of a workflow.

Have you some insights/examples/repo to explore ? Or did I just need to reverse-engineer the API calls ?