Images
Submit image generation tasks, poll for terminal state, and move to webhook delivery when needed.
Use the Images API when you want a simple first integration path into Yeehoo.
Typical flow
- Call
/v1/generationsand choose an image model throughmodel - Get back a
task_id - Poll
/v1/tasks/{task_id}or wait for webhook - Read the final result after the task reaches terminal state
Best practice
- Always send an
Idempotency-Keyon create requests - Treat image generation as async, not sync
- Use polling first during integration, then add webhook for production