Skip to main content
GET
/
api
/
generations
/
{id}
curl https://api.artificialstudio.ai/api/generations/507f1f77bcf86cd799439011 \
  -H "Authorization: YOUR_API_KEY"
{
  "id": "507f1f77bcf86cd799439011",
  "status": "success",
  "tool": "create-image",
  "output": "https://files.artificialstudio.ai/generations/abc123.png",
  "thumbnail": "https://files.artificialstudio.ai/thumbnails/abc123.jpg",
  "error": null,
  "type": "image",
  "payload": {
    "model": "nano-banana",
    "prompt": "A serene mountain landscape"
  },
  "createdAt": "2024-01-15T10:30:00.000Z"
}
Get the current status and result of a generation.

Headers

NameTypeRequiredDescription
AuthorizationstringYesYour API key

Path Parameters

ParameterTypeDescription
idstringThe generation ID

Response Fields

FieldTypeDescription
idstringGeneration ID
statusstringpending, processing, uploading, success, error
toolstringTool used
outputstring | nullURL to generated media
thumbnailstring | nullURL to thumbnail
errorstring | nullError message if failed
typestringMedia type: image, video, audio, text, object
payloadobjectOriginal request parameters
createdAtstringCreation timestamp

Status Values

StatusDescription
pendingQueued for processing
processingGeneration in progress
uploadingUploading to storage
successCompleted successfully
errorFailed (see error field)
curl https://api.artificialstudio.ai/api/generations/507f1f77bcf86cd799439011 \
  -H "Authorization: YOUR_API_KEY"
{
  "id": "507f1f77bcf86cd799439011",
  "status": "success",
  "tool": "create-image",
  "output": "https://files.artificialstudio.ai/generations/abc123.png",
  "thumbnail": "https://files.artificialstudio.ai/thumbnails/abc123.jpg",
  "error": null,
  "type": "image",
  "payload": {
    "model": "nano-banana",
    "prompt": "A serene mountain landscape"
  },
  "createdAt": "2024-01-15T10:30:00.000Z"
}