Skip to content

[Feature] Work as an HTTP service. #1028

@TkskKurumi

Description

@TkskKurumi

Feature Summary

Work as an HTTP service.

Detailed Description

Thanks for building this project, this is a fast and clean implementation.

I'd like to suggest adding a server API mode to help with workflows that involve generating many images with different prompts and settings.

Right now with the sd executable, every run reloads the model, which has much overhead on loading models when inferring with variations. A persistent server would allow:

  • Loading the model once, then handling multiple generation task via API
  • Rapid iteration over different prompts, sizes, steps, etc. without the relaunching overhead
  • Easier integration into apps, web UIs, or as a tool for LLM agents

This would make the project much more practical for my personal use case.

Alternatives you considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions