> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# List BeatAPI image and video generation models

GET https://api.beatapi.io/v1/media/models

Returns stable BeatAPI model aliases and public input modes. Internal execution routing is not part of this contract.

Reference: https://docs.beatapi.io/api-reference/core/generation/list-generation-models

## Request

### Query parameters

- `media_type` (enum, optional)
  - Allowed values: `image`, `video`

## Response

### 200

Generation model list

- `data` (GenerationModelList, required)

## Errors

### 400 Bad Request Error

Malformed JSON or a field, value or combination this endpoint does not accept (`bad_request`; the message names the field), or input refused by moderation (`content_policy_violation`). Not retryable unchanged.

- `error` (ErrorError, required) — Structured BeatAPI error. Use `code` (or `retryable`) for program logic and retain `request_id` for support.

### 429 Too Many Requests Error

Too many requests (`rate_limit_exceeded`, including the free-model limits) or too many tasks processing at once (`user_concurrency_exceeded`). Retryable after `Retry-After` seconds (also `error.retry_after_seconds`).

- `error` (ErrorError, required) — Structured BeatAPI error. Use `code` (or `retryable`) for program logic and retain `request_id` for support.

## Types

### GenerationModelList

- `object` (enum, required)
  - Allowed values: `list`
- `data` (list of GenerationModel, required)

### ErrorError

Structured BeatAPI error. Use `code` (or `retryable`) for program logic and retain `request_id` for support.

- `code` (enum, required) — Stable machine-readable error code. `unauthorized` is the deprecated name for a 401; since 2026-09-29 a 401 is `missing_api_key` or `invalid_api_key`. Treat a legacy `unauthorized` like `invalid_api_key`.
  - Allowed values: `bad_request`, `missing_api_key`, `invalid_api_key`, `unauthorized`, `forbidden`, `not_found`, `insufficient_credits`, `idempotency_conflict`, `user_concurrency_exceeded`, `rate_limit_exceeded`, `content_policy_violation`, `processing_unavailable`, `processing_failed`, `processing_timeout`, `result_transfer_failed`, `invalid_signature`, `realtime_disabled`, `realtime_capacity_unavailable`, `realtime_session_expired`, `origin_not_allowed`, `invalid_client_secret`, `transport_not_allowed`, `internal_error`
- `message` (string, required) — English sentence that states the cause; for `bad_request` it names the field. Written for people and logs, not for parsing.
- `retryable` (boolean, required) — Whether making the same call again could succeed. Present on every error; branch on it instead of the status code. True for 429, 500 and 503 (rate_limit_exceeded, user_concurrency_exceeded, internal_error, processing_unavailable, processing_timeout, processing_failed, result_transfer_failed, realtime_capacity_unavailable). False for a request, key or balance that must change first (bad_request, content_policy_violation, missing_api_key, invalid_api_key, insufficient_credits, forbidden, not_found, idempotency_conflict, realtime_disabled and the other realtime credential codes).
- `request_id` (string, required) — Correlation ID to retain for BeatAPI support.
- `retry_after_seconds` (integer, optional) — Seconds to wait before retrying. Present on every 429, and on a 503 when the wait is known; the same value is sent in the `Retry-After` header.
- `docs` (string, optional) — The public Skill page that says what to do about an error. Present on errors answered by the capability endpoints (`/v1/capabilities/search`, `/v1/capabilities/inspect`, `/v1/capabilities/run`); absent on every other endpoint.

### GenerationModel

- `id` (enum, required)
  - Allowed values: `qwen-image-2.1`, `nano-banana`, `nano-banana-2`, `nano-banana-2.1`, `nano-banana-2-lite`, `nano-banana-pro`, `gpt-image-2`, `gpt-image-2.5-flare`, `gpt-image-2.5-sunburst`, `seedream-5-pro`, `grok-imagine-image-2.0`, `minimax-h3`, `minimax-h3-fast`, `minimax-h3-normal`, `grok-imagine-video-1.5`, `seedance-2`, `seedance-2-fast`, `seedance-2-mini`, `veo-3.1`, `seedance-2.5`, `kling-3`, `kling-2.6-motion-control`, `kling-3-motion-control`, `wan-3.0`, `wan-3.0-prime`, `happyhorse-1.0`, `happyhorse-1.1`, `minimax-h3-max`, `minimax-h3-max-turbo`
- `object` (enum, required)
  - Allowed values: `generation_model`
- `name` (string, required)
- `media_type` (enum, required)
  - Allowed values: `image`, `video`
- `input_modes` (list of enum, required)
  - Allowed values: `text`, `image`, `frames`, `reference`

## Examples

**Response**

```json
{
  "data": {
    "object": "list",
    "data": [
      {
        "id": "qwen-image-2.1",
        "object": "generation_model",
        "name": "string",
        "media_type": "image",
        "input_modes": [
          "text"
        ]
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.beatapi.io/v1/media/models"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.beatapi.io/v1/media/models';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.beatapi.io/v1/media/models"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.beatapi.io/v1/media/models")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.beatapi.io/v1/media/models")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.beatapi.io/v1/media/models');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.beatapi.io/v1/media/models");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.beatapi.io/v1/media/models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```