Leonardo.AI
  1. Texture
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
  • Prompt
    • Generate a Random prompt
    • Improve a Prompt
  • 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
      POST
    • Get texture generations by 3D Model ID
      GET
    • Get Texture Generation by ID
      GET
    • Delete Texture Generation by ID
      DELETE
  • 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. Texture

Get texture generations by 3D Model ID

Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
GET
/api/rest/v1/generations-texture/model/{modelId}
This endpoint gets the specific texture generations by the 3d model id.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.your-api-server.com/api/rest/v1/generations-texture/model/?offset=0&limit=10' \
--header 'content-type: application/json' \
--data-raw ''
Response Response Example
{
  "model_asset_texture_generations": [
    {
      "createdAt": "string",
      "id": "string",
      "model_asset_texture_images": [
        {
          "id": "string",
          "type": "NORMAL",
          "url": "string"
        }
      ],
      "negativePrompt": "string",
      "prompt": "string",
      "seed": 0,
      "status": "PENDING"
    }
  ]
}

Request

Path Params
modelId
string 
required
"modelId" is required (enter it either in parameters or request body)
Query Params
offset
string 
optional
Example:
0
limit
string 
optional
Example:
10
Header Params
content-type
string 
required
Example:
application/json

Responses

🟢200Success
application/json
Body
model_asset_texture_generations
array [object {7}] 
required
createdAt
string 
optional
id
string 
optional
model_asset_texture_images
array [object {3}] 
optional
negativePrompt
string 
optional
prompt
string 
optional
seed
integer 
optional
status
string 
optional
Modified at 2024-07-29 08:17:08
Previous
Create Texture Generation
Next
Get Texture Generation by ID
Built with