> For the complete documentation index, see [llms.txt](https://developers.gamma.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gamma.app/images/get-image-generation-status.md).

# GET /images/{id}

Poll this endpoint until status is completed or failed.

Poll an image generation until `status` is `completed` or `failed`. When complete, the response includes the image URL, dimensions, and `savedMediaId` for the workspace media library.

## Get image generation status

> Retrieves the current status of an image generation job. Poll this endpoint until status is "completed" or "failed".

```json
{"openapi":"3.0.0","info":{"title":"Gamma Public API","version":"1.0"},"tags":[{"name":"public-api","description":"Public API endpoints for external integrations"}],"servers":[{"url":"https://public-api.gamma.app","description":"Production"}],"security":[{"api-key":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key for authentication"}},"schemas":{"ImageGenerationStatusResponse":{"type":"object","properties":{"imageGenerationId":{"type":"string","description":"Unique identifier for the image generation job"},"status":{"type":"string","description":"Current status of the image generation job","enum":["completed","failed","pending"]},"image":{"description":"The generated image (present when completed)","allOf":[{"$ref":"#/components/schemas/GeneratedImage"}]},"warnings":{"description":"Warnings about how the request was interpreted (e.g. a skipped style or\ntheme)","type":"array","items":{"$ref":"#/components/schemas/ImageGenerationWarning"}},"error":{"description":"Error details (when failed)","allOf":[{"$ref":"#/components/schemas/ErrorResponse"}]},"credits":{"description":"Credit usage information","allOf":[{"$ref":"#/components/schemas/CreditsResponse"}]}},"required":["imageGenerationId","status"]},"GeneratedImage":{"type":"object","properties":{"url":{"type":"string","description":"CDN URL of the generated image"},"width":{"type":"number","description":"Image width in pixels"},"height":{"type":"number","description":"Image height in pixels"},"format":{"type":"string","description":"File format of the generated image. Output is model-native (commonly\n\"png\" or \"webp\") — it is not converted."},"mimeType":{"type":"string","description":"MIME type of the generated image"},"transparency":{"type":"boolean","description":"Whether the image has an alpha channel"},"aspectRatioUsed":{"type":"string","description":"The aspect ratio the image was generated at"},"savedMediaId":{"type":"string","description":"Identifier of the image in the Gamma media library"}},"required":["url","width","height","format","mimeType","transparency","aspectRatioUsed"]},"ImageGenerationWarning":{"type":"object","properties":{"code":{"description":"Machine-readable warning code","enum":["curated_style_skipped_for_references","no_brand_theme_applied","theme_ignored_for_type","theme_skipped_for_references"],"type":"string"},"message":{"type":"string","description":"Human-readable explanation"}},"required":["code","message"]},"ErrorResponse":{"type":"object","properties":{"message":{"type":"string","description":"Human-readable error message"},"statusCode":{"type":"number","description":"HTTP status code"}},"required":["message","statusCode"]},"CreditsResponse":{"type":"object","properties":{"deducted":{"type":"number","description":"Number of credits deducted for this operation"},"remaining":{"type":"number","description":"Remaining credits in the workspace"}},"required":["deducted","remaining"]}}},"paths":{"/v1.0/images/{id}":{"get":{"description":"Retrieves the current status of an image generation job. Poll this endpoint until status is \"completed\" or \"failed\".","operationId":"getImageGenerationStatus","parameters":[{"name":"id","required":true,"in":"path","description":"The unique image generation ID returned from the create endpoint","schema":{"type":"string"}}],"responses":{"200":{"description":"Image generation status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationStatusResponse"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Invalid or missing API key"},"404":{"description":"Image generation not found"}},"summary":"Get image generation status","tags":["public-api"]}}}}
```

{% hint style="info" %}
Poll every 5 seconds until `status` is `completed` or `failed`. Use `image.savedMediaId` with [POST /images/media/{savedMediaId}/archive](/images/archive-image.md) to remove the item from the media library without deleting the underlying file.
{% endhint %}

## Related

* [POST /images](/images/create-image-generation.md) to start a new image generation
* [POST /images/media/{savedMediaId}/archive](/images/archive-image.md) to archive a generated image from the media library
* [Poll for results](/guides/async-patterns-and-polling.md) for complete polling implementations


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.gamma.app/images/get-image-generation-status.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
