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

# Get Gallery Image

> Fetch details of a curated gallery image by ID

```
GET /api/images/:id
```

Returns a single curated gallery image (not your own generation result). The `id` is what the gallery's search returns. Public endpoint, no authentication required, briefly cached.

<Note>
  To get **your own** generation result, poll the [status endpoint](/en/api-reference/endpoint/generate#check-generation-status). This endpoint only serves curated gallery items.
</Note>

## Path Parameters

<ParamField path="id" type="string" required>
  Gallery image ID.
</ParamField>

## Response

<ResponseField name="success" type="boolean" />

<ResponseField name="data" type="object">
  Gallery image fields:

  | Field                                                           | Type           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | --------------------------------------------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `id`                                                            | string         | Gallery image ID                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | `text`                                                          | string         | The original prompt — may be plain text or a structured JSON prompt; parse on your side if you intend to reuse it                                                                                                                                                                                                                                                                                                                                                            |
  | `prompt_ready`                                                  | boolean        | Whether a usable prompt is available for this image                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | `prompt_segments`                                               | array \| null  | When the prompt has multiple labelled parts, the structured segments; `null` for single-part prompts                                                                                                                                                                                                                                                                                                                                                                         |
  | `media_urls`                                                    | string\[]      | Full-size image URLs                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | `thumbnail_url`                                                 | string         | Thumbnail URL (often the same as `media_urls[0]`)                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | `image_width`                                                   | number \| null | Width in pixels                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  | `image_height`                                                  | number \| null | Height in pixels                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | `model`                                                         | string \| null | Label for the model the source artwork was made with. Granularity is mixed: some values are coarse family names (`"nanobanana"`, `"gptimage"`, `"midjourney"`, `"other"`), others are exact model IDs (e.g. `"flux2-klein"`, `"seedream-4.5"`). New values appear as new models are added. Treat it as a display / filter label — don't assume it can be passed straight to `/api/generate/v2`; resolve generation IDs from [List Models](/en/api-reference/endpoint/models) |
  | `sref`                                                          | string \| null | Midjourney style reference code, when present — reuse it to apply the same style; `null` for non-Midjourney images                                                                                                                                                                                                                                                                                                                                                           |
  | `created_at`                                                    | string         | ISO 8601 timestamp (informational)                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | `likes` / `views` / `retweets`                                  | number         | Engagement metrics from the original source post                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | `author_username` / `author_display_name` / `author_avatar_url` | string         | Original author info — include if you display attribution, otherwise ignore                                                                                                                                                                                                                                                                                                                                                                                                  |
</ResponseField>

## Example

```bash theme={null}
curl https://www.meigen.ai/api/images/2009629483448627597
```

```json theme={null}
{
  "success": true,
  "data": {
    "id": "2009629483448627597",
    "text": "A serene Japanese garden with cherry blossoms",
    "media_urls": ["https://images.meigen.ai/tweets/2009629483448627597/0.jpg"],
    "thumbnail_url": "https://images.meigen.ai/tweets/2009629483448627597/0.jpg",
    "image_width": 1650,
    "image_height": 2048,
    "model": "midjourney",
    "created_at": "2026-01-09T14:13:00+00:00",
    "likes": 113,
    "views": 9266,
    "retweets": 8,
    "author_username": "creator",
    "author_display_name": "Creator Name",
    "author_avatar_url": "https://pbs.twimg.com/profile_images/.../normal.jpg"
  }
}
```

### 404 Not Found

```json theme={null}
{ "success": false, "error": "Image not found" }
```
