Leonardo.AI
  1. image
Leonardo.AI
  • Dataset
    • Create LCM Generation
      POST
    • Get a Single Dataset by ID
      GET
    • Delete a Single Dataset by ID
      DELETE
    • Upload dataset image
      POST
    • Upload a Single Generated Image to a Dataset
      POST
  • Elements
    • List Elements
      GET
  • image
    • Create a Generation of Images
      POST
    • Get a Single Generation
      GET
    • Delete a Single Generation
      DELETE
    • Get generations by user ID
      GET
  • Init Image
    • Upload init image
      POST
    • Get single init image
      GET
    • Delete init image
      DELETE
    • Upload Canvas Editor init and mask image
      POST
  • Motion
    • Create SVD Motion Generation
      POST
  • Models
    • Train a Custom Model
      POST
    • Get a Single Custom Model by ID
      GET
    • Delete a Single Custom Model by ID
      DELETE
    • List Platform Models
      GET
  • Pricing Calculator
    • Calculating API Cost
      POST
  • Prompt
    • Generate a Random prompt
      POST
    • Improve a Prompt
      POST
  • Realtime Canvas
    • Create LCM Generation
    • Perform instant refine on a LCM image
    • Perform inpainting on a LCM image
    • Perform Alchemy Upscale on a LCM image
  • Texture
    • Create Texture Generation
    • Get texture generations by 3D Model ID
    • Get Texture Generation by ID
    • Delete Texture Generation by ID
  • User
    • Get user information
  • Variation
    • Create unzoom
    • Create upscale
    • Create no background
    • Create using Universal Upscaler
    • Get variation by ID
  • 3D Model Assets
    • Upload 3D Model
    • Get 3D models by user ID
    • Get 3D Model by ID
    • Delete 3D Model by ID
  1. image

Get a Single Generation

Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
GET
/api/rest/v1/generations/{id}
This endpoint will provide information about a specific generation

Request

Path Params

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.your-api-server.com/api/rest/v1/generations/'
Response Response Example
{
  "generations_by_pk": {
    "createdAt": "string",
    "generated_images": [
      {
        "generated_image_variation_generics": [
          {
            "id": "string",
            "status": "PENDING",
            "transformType": "OUTPAINT",
            "url": "string"
          }
        ],
        "fantasyAvatar": true,
        "id": "string",
        "imageToVideo": true,
        "likeCount": 0,
        "motion": true,
        "motionModel": "string",
        "motionMP4URL": "string",
        "motionStrength": 0,
        "nsfw": true,
        "url": "string"
      }
    ],
    "generation_elements": [
      {
        "id": 0,
        "lora": {
          "akUUID": "string",
          "baseModel": "v1_5",
          "description": "string",
          "name": "string",
          "urlImage": "string",
          "weightDefault": 0,
          "weightMax": 0,
          "weightMin": 0
        },
        "weightApplied": 0
      }
    ],
    "guidanceScale": 0,
    "id": "string",
    "imageHeight": 0,
    "imageWidth": 0,
    "inferenceSteps": 0,
    "initStrength": 0,
    "modelId": "string",
    "negativePrompt": "string",
    "photoReal": true,
    "photoRealStrength": 0,
    "presetStyle": "DYNAMIC",
    "prompt": "string",
    "promptMagic": true,
    "promptMagicStrength": 0,
    "promptMagicVersion": "string",
    "public": true,
    "scheduler": "KLMS",
    "sdVersion": "v1_5",
    "seed": 0,
    "status": "PENDING"
  }
}
Modified at 2024-07-29 07:07:47
Previous
Create a Generation of Images
Next
Delete a Single Generation
Built with