---
title: "Get a model or LoRA"
description: "Reads one model by its model ID (the id of a search result)."
canonical: "https://platform.pixai.art/en/docs/api-v2/model/getGenerationModel"
last-updated: "2026-11-02"
---

# Get a model or LoRA

Reads one model by its model ID (the `id` of a search result).



## GET https://api.pixai.art/v2/generation-model/{id}

Authentication: optional. Send your API key as `Authorization: Bearer <API key>` to read as your account.

Machine-readable OpenAPI spec: https://platform.pixai.art/openapi-spec.v2.yaml

### Parameters

- `id` (in path, string, required)
  The model ID.

### Responses

- `200`
  The model.
  Body fields:
  - `triggerWords` (string | null, optional)
    Default trigger words of the latest version.
  - `id` (string, required)
    The model ID. Generation endpoints take a version ID instead; use `latestAvailableVersionId`.
  - `title` (string, required)
  - `type` (string, required)
    e.g. `SDXL_MODEL`, `MMDIT26B_MODEL` or `SDXL_LORA`.
  - `category` (string | null, optional)
  - `loraBaseModelTypes` (string[], optional)
    For a LoRA, the base model types it works with.
  - `permittedUse` (string, optional)
    What the license allows.
    Allowed values: `PERSONAL`, `COMMERCIAL`.
  - `mediaId` (string | null, optional)
    Cover image media ID.
  - `latestAvailableVersionId` (string | null, optional)
    The newest usable version. Pass it as `modelVersionId`, or as `loras[].modelId` for a LoRA.
  - `latestAvailableVersion` (object | null, optional)
    The newest usable version.
  - `latestAvailableVersion.id` (string, optional)
    Same as `latestAvailableVersionId`.
  - `latestAvailableVersion.name` (string, optional)
  - `latestAvailableVersion.modelType` (string | null, optional)
  - `latestAvailableVersion.loraBaseModelType` (string | null, optional)
    For a LoRA, the base model type it was trained for.
  - `latestAvailableVersion.extra` (object, optional)
    `triggerWords` holds the default trigger words of a LoRA.
  - `latestAvailableVersion.extra.triggerWords` (string, optional)
- `404`
  `NOT_FOUND`: no such model or version, or it is private. The two cases are not told apart.
