Skip to main content
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.
To get your own generation result, poll the status endpoint. This endpoint only serves curated gallery items.

Path Parameters

id
string
required
Gallery image ID.

Response

success
boolean
data
object
Gallery image fields:
FieldTypeDescription
idstringGallery image ID
textstringThe original prompt — may be plain text or a structured JSON prompt; parse on your side if you intend to reuse it
prompt_readybooleanWhether a usable prompt is available for this image
prompt_segmentsarray | nullWhen the prompt has multiple labelled parts, the structured segments; null for single-part prompts
media_urlsstring[]Full-size image URLs
thumbnail_urlstringThumbnail URL (often the same as media_urls[0])
image_widthnumber | nullWidth in pixels
image_heightnumber | nullHeight in pixels
modelstring | nullModel family label: "nanobanana", "midjourney", or "gptimage". This is not a modelId — use it for filtering / display only, not as input to /api/generate/v2
srefstring | nullMidjourney style reference code, when present — reuse it to apply the same style; null for non-Midjourney images
created_atstringISO 8601 timestamp (informational)
likes / views / retweetsnumberEngagement metrics from the original source post
author_username / author_display_name / author_avatar_urlstringOriginal author info — include if you display attribution, otherwise ignore

Example

curl https://www.meigen.ai/api/images/2009629483448627597
{
  "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

{ "success": false, "error": "Image not found" }