# 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="../../../all-images.ai-api/api-reference/images-generation#update-image-generation">modify the generation</a> and <a href="../../../all-images.ai-api/api-reference/images-generation#retry-image-generation">try again</a>.</td></tr></tbody></table>

Status is indicated in the ImageGeneration object.
