> For the complete documentation index, see [llms.txt](https://developer.all-images.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.all-images.ai/integration-guide/image-generation/lifecycle-of-image-generation.md).

# Lifecycle of Image generation

Image generation follows a life cycle defined by its status:&#x20;

<table><thead><tr><th width="156">Status</th><th width="224" align="center">Status value</th><th>Description</th></tr></thead><tbody><tr><td>Create</td><td align="center"><code>0</code></td><td>The generation has been created and will automatically change to the next status "Pending"</td></tr><tr><td>Pending</td><td align="center"><code>1</code></td><td>The generation has been taken into account and is awaiting processing.</td></tr><tr><td>Processing</td><td align="center"><code>2</code></td><td>The generation is being processed</td></tr><tr><td>Done</td><td align="center"><code>3</code></td><td>Generation is complete, and images are available.</td></tr><tr><td>Error</td><td align="center"><code>4</code></td><td>An error occurred during generation. This may be due to the image description not being accepted. You can <a href="/pages/ob9zO9XiAxdOav5njrnn#update-image-generation">modify the generation</a> and <a href="/pages/ob9zO9XiAxdOav5njrnn#retry-image-generation">try again</a>.</td></tr></tbody></table>

Status is indicated in the ImageGeneration object.
