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

# List models

> List the models available through Inworld Inference, with their capabilities, pricing, and specifications.

Browse [inworld.ai/models](https://inworld.ai/models) without an API key. To get model metadata through this endpoint, use `Authorization: Basic $INWORLD_API_KEY`. Requests without credentials return `401`.

<Note>
Use this endpoint to list models. The OpenAI-style `GET https://api.inworld.ai/v1/models` (`client.models.list()` in the OpenAI SDK) is not available.

The optional `provider` and `model` query parameters filter by exact match, for example `?provider=openai`. For an Inworld-hosted model, combine `model` with `provider=inworld`.

By default, the list contains models you can call with chat completions. Add `?output_modalities=video` for [video models](https://docs.inworld.ai/router/video-generation.md) or `?output_modalities=decisions` for [decision models](https://docs.inworld.ai/router/decisions.md).

A video model's entry carries `spec.video`, the values `POST /v1/videos` accepts for it (lengths, resolutions, aspect ratios, frames and reference limits), and `pricing.video`, its per-second prices. See [Model compatibility](https://docs.inworld.ai/router/video-generation.md#model-compatibility).
</Note>

## API reference

**Endpoint:** `GET https://api.inworld.ai/llm/v1alpha/models`

### Authorization

- `Authorization` (string; required) — Your [authentication](../../../api-reference/introduction) credentials. For Basic authentication, please populate `Basic $INWORLD_API_KEY`. You can create a key in one command with the [Inworld CLI](../../../developer-tools/inworld-cli): `inworld workspace add-key`.

### Query parameters

- `provider` (string) — Return only models from this provider. Must match the model's `provider` value exactly (for example, `openai`).
- `model` (string) — Return only the model with this exact `model` value (for example, `gpt-5.4`). Combine with `provider` to select a single provider's listing. For an Inworld-hosted model, set `provider=inworld`.
- `output_modalities` (string) — Return only models whose `spec.outputModalities` includes one of these values: `text`, `image`, `video` or `decisions`. Separate several values with commas, or pass `all` to list every model. Without it, the response lists the models you can call with chat completions; video and decision models are listed only when you ask for them (for example, `?output_modalities=video`).

### Response

Status: `200`. Content type: `application/json`.

- `models` (object[]) — The list of available models.
  - `model` (string; required) — The model identifier. Combine it with `provider` as `provider/model` in the `model` field of [Router](../../../api-reference/routerAPI/chat-completions) requests. Models hosted by Inworld are listed as `models/<name>` (use `inworld/models/<name>`).
  - `provider` (string; required) — The service provider hosting the model, such as `openai`, `anthropic`, or `google`.
  - `modelCreator` (string) — The organization that created the model. May differ from the provider (e.g., a Meta model hosted on Groq).
  - `pricing` (object) — Pricing information for the model (in USD). Text models carry per-token prices; video models carry `video` instead. Fields without a price are omitted.
    - `promptToken` (number) — Cost per input (prompt) token in USD.
    - `completionToken` (number) — Cost per output (completion) token in USD.
    - `promptCacheReadToken` (number) — Cost per input token read from the prompt cache, in USD.
    - `promptCacheWriteToken` (number) — Cost per input token written to the prompt cache, in USD.
    - `video` (object) — A video model's prices, in USD. Set only for video models.
      - `outputPerSecond` (object[]) — Price per second of generated video, one entry per resolution the model offers.
        - `resolution` (string) — The resolution, as the `resolution` parameter names it.
        - `price` (number) — Price per second, in USD.
      - `inputImage` (number) — Price per input image (a frame or reference image). Omitted when the model doesn't charge for input images.
      - `referenceOutputPerSecond` (object[]) — Price per second of generated video for a job that carries `input_references`, where the model prices those jobs separately from `outputPerSecond`. Omitted when it doesn't.
        - `resolution` (string) — The resolution, as the `resolution` parameter names it.
        - `price` (number) — Price per second, in USD.
      - `inputVideoPerSecond` (object[]) — Price per second of reference video a job carries, at the job's output resolution. Omitted when the model doesn't charge for reference videos.
        - `resolution` (string) — The resolution, as the `resolution` parameter names it.
        - `price` (number) — Price per second, in USD.
  - `spec` (object) — Technical specifications and capabilities of the model.
    - `inputModalities` (enum<string>[]) — The input modalities supported by the model.
    - `outputModalities` (enum<string>[]) — The output modalities supported by the model.
    - `contextLength` (integer) — The maximum number of tokens the model can process as input (context window size).
    - `maxCompletionTokens` (integer) — The maximum number of tokens the model can generate in a single response.
    - `supportedParameters` (string[]) — The generation parameters supported by this model. Common values include: `max_tokens`, `temperature`, `top_p`, `stop`, `seed`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`, `frequency_penalty`, `presence_penalty`.
    - `capabilities` (object) — High-level capability flags for the model. Only capabilities that are `true` are included in the response.
      - `functionCalling` (boolean) — Whether the model supports function/tool calling.
      - `webSearch` (boolean) — Whether the model supports web search (grounding).
      - `reasoning` (boolean) — Whether the model supports chain-of-thought reasoning.
      - `promptCaching` (boolean) — Whether prompt caching is available for this model.
      - `responseSchema` (boolean) — Whether the model supports structured output with a response schema (JSON mode).
      - `vision` (boolean) — Whether the model supports image/vision input.
      - `reasoningCapability` (object) — Reasoning support in detail. Present when the model supports reasoning.
        - `supported` (boolean) — Whether the model supports reasoning.
        - `supportedLevels` (enum<string>[]) — The reasoning effort levels the model accepts.
      - `responseFormatCapability` (object) — Structured output support in detail. Present when the model supports JSON output.
        - `json` (boolean) — Whether the model supports JSON mode (`response_format: {"type": "json_object"}`).
        - `jsonSchema` (boolean) — Whether the model supports strict structured output with a JSON schema.
    - `deprecationDate` (string) — The date the model is scheduled to be deprecated, when announced.
    - `video` (object) — For a video model: the values `POST /v1/videos` accepts for it. The API checks each request against these limits. Set only for video models.
      - `supportedSeconds` (integer[]) — Every clip length the model makes (`seconds`), in whole seconds, ascending. A range lists each second of it.
      - `defaultSeconds` (integer) — The length used when a request sets no `seconds`.
      - `supportedResolutions` (object[]) — The output resolutions the model makes (`resolution`), lowest first.
        - `resolution` (string) — The resolution, as the `resolution` parameter names it.
        - `supportedAspectRatios` (string[]) — The aspect ratios the model makes at this resolution: all of `supportedAspectRatios`, or fewer. Omitted means all of them. A job with frame images isn't held to it: its clip takes the first frame's shape.
      - `defaultResolution` (string) — The resolution used when a request sets none.
      - `supportedAspectRatios` (string[]) — Every aspect ratio (`aspect_ratio`) the model makes at some resolution.
      - `defaultAspectRatio` (string) — The aspect ratio used when a request sets none.
      - `maxPromptChars` (integer) — The longest prompt the model takes, in characters (Unicode code points). Omitted when the model sets no maximum.
      - `minPromptChars` (integer) — The shortest prompt the model takes, in characters (Unicode code points). Omitted when the model sets no minimum.
      - `supportedFrameImages` (enum<string>[]) — The `frame_images` frame types the model takes. Empty or omitted when it takes no frames. Frames can't be combined with references.
      - `inputReferences` (object) — The reference media (`input_references`) a request may carry. Omitted when the model takes no references.
        - `supportedTypes` (object[]) — One entry per reference type the model takes. A type that isn't listed is rejected.
          - `type` (enum<string>; options: "image_url", "video_url", "audio_url") — The reference type, as `input_references[].type` names it.
          - `maxCount` (integer) — How many references of this type a request may carry.
          - `minDurationSeconds` (integer) — The shortest a single reference of this type may be, in seconds. Omitted for images, or when the model sets no minimum.
          - `maxDurationSeconds` (integer) — The longest a single reference of this type may be, in seconds. Omitted for images, or when the model sets no maximum.
          - `maxTotalDurationSeconds` (integer) — The longest all references of this type may be together, in seconds. Omitted when the model sets no such limit.
        - `maxTotalInputs` (integer) — How many references a request may carry in total. Omitted when only the per-type limits apply.
        - `requiredOneOf` (string[]) — Types at least one reference must be of. For example, `["image_url", "video_url"]` means audio clips can't be sent on their own. Empty or omitted when the model requires none.
  - `isSupported` (boolean) — Indicates whether this model is currently supported and recommended for use. Omitted when `false`; such models may be experimental, deprecated, or not yet generally available.
  - `health` (object) — Recent reliability and latency statistics for the model. Omitted when no data is available.
    - `successRate` (number) — Fraction of recent requests that succeeded, from 0 to 1.
    - `avgLatencyMs` (string) — Average request latency in milliseconds. Returned as a string (64-bit integer JSON encoding).
    - `p95LatencyMs` (string) — 95th percentile request latency in milliseconds. Returned as a string (64-bit integer JSON encoding).

### Response examples

#### 200: successful_response

```json
{
  "models": [
    {
      "model": "gemini-2.5-flash",
      "provider": "google-ai-studio",
      "modelCreator": "Google",
      "pricing": {
        "promptToken": 3e-7,
        "completionToken": 0.0000025
      },
      "spec": {
        "inputModalities": [
          "text",
          "image",
          "audio"
        ],
        "outputModalities": [
          "text"
        ],
        "contextLength": 1048576,
        "maxCompletionTokens": 65535,
        "supportedParameters": [
          "include_reasoning",
          "max_tokens",
          "reasoning",
          "response_format",
          "stop",
          "structured_outputs",
          "temperature",
          "tool_choice",
          "tools",
          "top_p",
          "web_search_options"
        ],
        "capabilities": {
          "functionCalling": true,
          "webSearch": true,
          "reasoning": true,
          "promptCaching": true,
          "responseSchema": true,
          "vision": true,
          "reasoningCapability": {
            "supported": true,
            "supportedLevels": [
              "EFFORT_NONE",
              "EFFORT_MINIMAL",
              "EFFORT_LOW",
              "EFFORT_MEDIUM",
              "EFFORT_HIGH",
              "EFFORT_XHIGH"
            ]
          },
          "responseFormatCapability": {
            "json": true,
            "jsonSchema": true
          }
        }
      },
      "isSupported": true,
      "health": {
        "successRate": 0.998,
        "avgLatencyMs": "812",
        "p95LatencyMs": "2140"
      }
    }
  ]
}
```

#### 4XX: default_response

```json
{
  "code": 16,
  "message": "Unauthenticated",
  "details": []
}
```

### Code examples

#### cURL

```bash
curl --location 'https://api.inworld.ai/llm/v1alpha/models' \
--header "Authorization: Basic $INWORLD_API_KEY"
```

#### Python

```python
import os
import requests

url = "https://api.inworld.ai/llm/v1alpha/models"
headers = {
    "Authorization": f"Basic {os.getenv('INWORLD_API_KEY')}"
}

response = requests.get(url, headers=headers)
print(response.json())
```

#### JavaScript

```javascript
const url = 'https://api.inworld.ai/llm/v1alpha/models';

const response = await fetch(url, {
  headers: {
    'Authorization': `Basic ${process.env.INWORLD_API_KEY}`,
  },
});

const data = await response.json();
console.log(data);
```

#### Inworld CLI

```bash
inworld llm models --json
```
