Skip to main content
GET /api/images/:id
Returns the details of a specific generated image. This is a public endpoint — no authentication required. The response is cached for 1 hour.

Path Parameters

id
string
required
The generation ID returned by the Generate endpoint.

Response

id
string
The generation ID.
status
string
Generation status: "pending", "completed", or "failed".
imageUrl
string
The URL of the generated image (only present when status is "completed").
prompt
string
The prompt used for generation.
model
string
The model ID used.
aspectRatio
string
The aspect ratio of the generated image.
createdAt
string
ISO 8601 timestamp of when the generation was created.

Example

curl https://www.meigen.ai/api/images/550e8400-e29b-41d4-a716-446655440000
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "completed",
  "imageUrl": "https://images.meigen.art/generations/550e8400.png",
  "prompt": "A serene Japanese garden with cherry blossoms",
  "model": "nanobanana-2",
  "aspectRatio": "16:9",
  "createdAt": "2025-03-01T12:00:00Z"
}