> ## Documentation Index
> Fetch the complete documentation index at: https://docs.imagine.art/llms.txt
> Use this file to discover all available pages before exploring further.

# Models

> See which ImagineArt models the API offers, their inputs, and their prices.

Pass the model ID as `model` in the generate request. Full per-model inputs and examples are in the [Model reference](https://docs.imagine.art/api/model-reference.md).

| Model ID | Name | Endpoint | Price |
| - | - | - | - |
| `imagineart-2.0` | ImagineArt 2.0 | `/image/generate` | 15 credits / image |
| `imagineart-2.0-edit` | ImagineArt 2.0 Edit | `/image/generate` | 25 credits / image |
| `imagineart-1.5-pro` | ImagineArt 1.5 Pro | `/image/generate` | 25 credits / image |
| `imagineart-1.5` | ImagineArt 1.5 | `/image/generate` | 10 credits / image |
| `z-image-turbo` | Z-Image Turbo | `/image/generate` | 5 credits / image |
| `imagineart-image-enhance` | Image Enhance | `/image/generate` | 8 credits / image |
| `imagineart-frame-1.0` | Frame 1.0 | `/video/generate` | 24 credits / second |
| `imagineart-video-upscale` | Video Upscale | `/video/generate` | 2 credits / second |

> [!TIP]
>
> Prices can change. Call `GET /cost` for the current price of each model before you generate.

## List models

`GET /models` (public) returns each model's `inputs`: type, whether it's required, length limits and allowed values. Page with `limit` and `cursor`.

```json theme={null}
{
  "id": "imagineart-1.5",
  "type": "image",
  "inputs": [
    { "name": "prompt", "kind": "string", "required": true, "max_length": 2000 },
    { "name": "aspect_ratio", "kind": "enum", "values": ["1:1", "16:9", "9:16"] }
  ],
  "outputs": [{ "name": "images", "kind": "images" }]
}
```

## Input kinds

| Kind | Value in input | Limits returned |
| - | - | - |
| string | JSON string | min\_length, max\_length |
| enum | JSON string, one of values | values |
| int | JSON integer | min, max |
| bool | JSON true or false | None |
| url | JSON string, an https URL | max\_length |

## Prices

`GET /cost` (public) returns each model's `base` price and the `factors` that multiply it, such as aspect ratio, resolution, scale or duration.

## URL inputs

Inputs like `image_url` and `video_url` take a URL, never an upload. It must be https, at most 2,048 characters, without credentials, on a public host (not localhost or a private IP), and stay valid until the generation completes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.