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
3. Read the result
Poll untilstatus is completed, failed or cancelled:
output is the result of the last step.
Next steps
- Copy one of the tested examples
- Learn the workflow structure and step types
- Add fallback models for resilience
- Use webhooks instead of polling