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

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

const imageLoraModel = await client.imageLoraModels.retrieve('id');

console.log(imageLoraModel.id);
{
  "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.

Path Parameters

id
string
required

Response

200
application/json

Returns the details of the specified image LoRA model.

The response is of type object.