1
Set your key
2
Generate an image and wait for it
?wait=30 holds the call open for up to 30 seconds, so the answer already contains the result.3
Read the result
result.images[0].url[0]. The link is temporary, so save the file rather than storing the link.status is still pending or processing when the wait ends, keep the task_id and call GET /v1/tasks/{id}?wait=60 until it finishes. See Tasks and waiting.
Next
- Generate a video
- Use the command line
- Every route and field is in the API reference tab