---
title: "Get Available AI Models"
method: GET
path: "/v1/models/available"
tags: ["Models"]
---

# Get Available AI Models

`GET /v1/models/available`

## Request

- Base URL: `https://api.swarms.world`
- URL: `https://api.swarms.world/v1/models/available`
- Auth: none declared. Required headers: `x-api-key`

Retrieve comprehensive information about all AI models available for use in agent and swarm configurations.

## Headers

- `x-api-key` string, required

## Response `200`

Successful Response

- ModelsAvailableOutput
  - `success` boolean, nullable
  - `count` integer, nullable
  - `models` AvailableModel[]: Every model available to the caller's tier, with its price per 1M tokens including the service fee.
    - `model_name` string, required: The model name to pass as model_name.
    - `input_cost_per_1m` number, required: Price per 1M input tokens (USD), including the service fee.
    - `output_cost_per_1m` number, required: Price per 1M output tokens (USD), including the service fee.
    - `price_source` string, required: Where the price came from: 'openrouter', 'litellm' or 'fallback'.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `500c79520e41`: 1 breaking, 5 info
  - the `models` response's property type changed from no type to `array` for status `200`
  - api tag `Models` added
  - added the optional property `count` to the response with the `200` status
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - …2 more

[Operation history](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/changes/v1/models/available/get.md)

---

[API](https://skmtc.dev/the-swarm-corporation/apis/swarms-api.md) - [All operations](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/revisions/fca99f497199?raw)
