Skip to content

API to convert workflow format to prompt format #1112

Open
@jamesWalker55

Description

When using the API, it uses a different format than workflow JSON files. This format can be retrieved from EXIF data in saved images, however it can be inconvenient to 1) build a workflow, then 2) generate an image, 3) load the EXIF data from the image, finally 4) use the new prompt in the API.

I would like to suggest an API endpoint that receives a workflow JSON object, converts it to a prompt and returns it. This way, the whole process can be easily automated with a Python script by making a request to that endpoint, then using the returned JSON to make API requests.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions