> ## Documentation Index
> Fetch the complete documentation index at: https://tryunsora.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get image generation

> Fetch one basic image generation by id, including output assets.

Returns the full **basic** image generation record for the authenticated user.

**`GET /image-generations/{generationId}`**

## Path parameter

<ParamField path="generationId" type="string" required>
  Generation id from [Create](/api-reference/image-generations/create) or [List](/api-reference/image-generations/list).
</ParamField>

## Response

```json theme={null}
{
  "success": true,
  "generation": {
    "id": "cm123abc",
    "status": "COMPLETED",
    "prompt": "Product photo on marble surface",
    "model": "nano-banana-2",
    "error": null,
    "createdAt": "2026-06-02T12:00:00.000Z",
    "updatedAt": "2026-06-02T12:00:45.000Z",
    "outputAsset": { "id": "...", "url": "https://files.tryunsora.com/....png" },
    "thumbnailAsset": null
  }
}
```

## Example

```bash theme={null}
curl "https://mvp.tryunsora.com/api/v1/image-generations/GENERATION_ID" \
  -H "Authorization: Bearer uns_live_YOUR_API_KEY"
```

## Errors

| HTTP  | When                         |
| ----- | ---------------------------- |
| `400` | Missing generation id        |
| `401` | Invalid auth                 |
| `404` | User or generation not found |
| `500` | Server error                 |


## OpenAPI

````yaml GET /image-generations/{generationId}
openapi: 3.1.0
info:
  title: Unsora API
  version: 1.2.0
  description: >-
    Public API for Unsora integrations. Authenticate with Clerk JWT or
    uns_live_* API key. API keys are rate-limited to 60 requests/minute and
    support idempotency keys. Async jobs complete via polling GET
    /image/status/{id}.
servers:
  - url: https://mvp.tryunsora.com/api/v1
    description: Versioned API (recommended)
security: []
tags:
  - name: Clippings
  - name: Connect
  - name: Image Generations
  - name: Music Generations
  - name: Influencer Studio
  - name: Posts
  - name: Thumbnails
  - name: User
  - name: Video Generations
paths:
  /image-generations/{generationId}:
    get:
      tags:
        - Image Generations
      summary: Get image generation
      description: Full image generation record including assets.
      parameters:
        - name: generationId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Generation record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageGenerationGetResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ImageGenerationGetResponse:
      type: object
      properties:
        success:
          type: boolean
        generation:
          $ref: '#/components/schemas/ImageGenerationRecord'
      required:
        - success
        - generation
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - error
    ImageGenerationRecord:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        status:
          type: string
        prompt:
          type: string
        model:
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        outputAsset:
          type: object
          additionalProperties: true
        thumbnailAsset:
          type: object
          additionalProperties: true
      required:
        - id
        - status
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Clerk session JWT or Unsora API key (uns_live_*)

````