Skip to main content

1. Create a workflow

This workflow has two steps: an LLM turns a short idea into a detailed prompt, then an image model draws it.
$.inputs.prompt is the workflow input. $.write_prompt.primary.choices[0].message.content is the text the LLM step returned. See parameter references. Response:

2. Run it

Response:

3. Read the result

Poll until status is completed, failed or cancelled:
Response (shortened):
output is the result of the last step.

Next steps

Last modified on October 7, 2026