GET
/
image-lora-models
JavaScript
import Weights from '@weights-ai/sdk';

const client = new Weights({
  bearerToken: 'My Bearer Token',
});

const imageLoraModels = await client.imageLoraModels.list();

console.log(imageLoraModels.models);
{
  "models": [
    {
      "id": "lora_123456789",
      "name": "My Custom Style",
      "description": "A custom style trained on my artwork",
      "triggers": [
        "my_style",
        "custom_art"
      ],
      "image": "https://storage.example.com/lora_preview.jpg",
      "blurDataUrl": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQ...",
      "isNSFW": false,
      "isDeleted": false,
      "createdAt": "2024-01-15T10:30:00Z",
      "userId": "user_123456789",
      "trainingJob": null
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
number
default:25

Number of items to return per page

Required range: 1 <= x <= 50
Examples:

25

cursor
string | null

Cursor for pagination to get the next page of results - this is the last item's ID from the previous page

Examples:

"cmcz89fci00zr0dlt68klunpf"

Response

200
application/json

Returns a paginated list of image LoRA models for the authenticated user.

The response is of type object.