Leonardo.AI · Example Payload

Leonardo Ai Get Generation Example

AIArtificial IntelligenceImage GenerationVideo GenerationGenerative AICreative3DDiffusionCanva

Leonardo Ai Get Generation Example is an example object payload from Leonardo.AI, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "GET",
    "url": "https://cloud.leonardo.ai/api/rest/v1/generations/f3e95b9a-37a4-4f3a-9c40-2c1a3c0a2dd1",
    "headers": {
      "Authorization": "Bearer YOUR_LEONARDO_AI_PRODUCTION_API_KEY",
      "accept": "application/json"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "generations_by_pk": {
        "id": "f3e95b9a-37a4-4f3a-9c40-2c1a3c0a2dd1",
        "status": "COMPLETE",
        "createdAt": "2026-05-25T14:22:01.000Z",
        "modelId": "b24e16ff-06e3-43eb-8d33-4416c2d75876",
        "prompt": "A serene mountain lake at golden hour, cinematic, photo-realistic",
        "negativePrompt": "low quality, blurry",
        "imageHeight": 1024,
        "imageWidth": 1024,
        "generated_images": [
          {
            "id": "img-abc123",
            "url": "https://cdn.leonardo.ai/users/.../img-abc123.jpg",
            "nsfw": false,
            "likeCount": 0
          },
          {
            "id": "img-abc124",
            "url": "https://cdn.leonardo.ai/users/.../img-abc124.jpg",
            "nsfw": false,
            "likeCount": 0
          }
        ]
      }
    }
  }
}