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

# Model API

> Call hundreds of models with just one endpoint and API Key

Model API exposes the platform's model capabilities as HTTP APIs for external applications to call — built for developers and integration scenarios. It turns model capabilities into programmable interfaces, supporting asynchronous tasks, WebHook callbacks, file uploads, and other HTTP API operations, plus a CLI tool for batch management. Think of it as the service layer that converts "ComfyUI node capabilities → HTTPS API → business systems".

## Core Capabilities

| Capability                    | Description                                                                   |
| ----------------------------- | ----------------------------------------------------------------------------- |
| Model API calls               | Invoke platform model capabilities via HTTPS POST                             |
| Async tasks                   | Query results of long-running generation tasks through async interfaces       |
| WebHook callbacks             | Proactively notify the caller via WebHook once a task completes               |
| File upload                   | Upload images / videos / audio / models and other files as API inputs         |
| CLI tool                      | A command-line tool for batch management and invocation                       |
| Version filter                | Quickly locate models by version (official / channel / self-deployed)         |
| Capability filter             | Filter by model capability (text-to-image / image-to-image / text-to-video …) |
| Vendor filter                 | Filter by vendor (Google / ByteDance / Alibaba / SiliconFlow …)               |
| Series filter                 | Filter by model series (GPT Image / Seedance …)                               |
| Search models or capabilities | Quickly find and locate models or capabilities via the search box             |

## Use Cases

* **Backend integration**: Bring BizyAir's model capabilities into your own product backend
* **Agent invocation**: Let AI agents call models via API to generate images / videos
* **Batch processing**: Submit generation tasks in bulk via CLI or scripts
* **Service monetization**: Wrap model capabilities into an outward-facing SaaS service

## Capability Categories

The Model API APIs are divided into 16 capability categories along the "input → output" dimension.

### Category Distribution

| Category                  | Category      | Category       | Category       |
| ------------------------- | ------------- | -------------- | -------------- |
| Text to Video             | Text to Image | Image to Image | Image to Video |
| First-Last Frame to Video | Video Editing | Audio to Audio | Text to Speech |
| Reference to Video        | LLM           | VLM            | Text to Audio  |
| Video Extension           | 3D Generation | Speech to Text | Text to Lyrics |

## Vendor Distribution

More vendors are being onboarded.

| Vendor        | Vendor              | Vendor           | Vendor      |
| ------------- | ------------------- | ---------------- | ----------- |
| Google        | ByteDance           | Alibaba          | SiliconFlow |
| Kunlun Wanwei | Shengshu Technology | Kuaishou / Kling | XAI / grok  |
| OpenAI        | MiniMax (Hailuo)    | Other            |             |

> **Note:** `owner=Self-hosted` denotes a SiliconFlow self-deployed model; `owner=Third-party` denotes a third-party model. Billing rates may differ.

## API Model Field Reference

Every API model includes the following core fields:

| Field         | Description                                                      |
| ------------- | ---------------------------------------------------------------- |
| display\_name | Model display name                                               |
| description   | Description of the model's capabilities                          |
| category      | Capability category (e.g., `Text to Image`, `Image to Video`)    |
| model\_name   | Internal model name (used in API calls)                          |
| endpoint      | API call endpoint path                                           |
| tags          | Array of business tags                                           |
| status        | Status (`normal` / `gray` for gray release)                      |
| gray          | Whether in gray release                                          |
| new\_tag      | Whether newly launched                                           |
| owner         | Source (`Self-hosted` self-deployed / `Third-party` third-party) |
| manufacturer  | Providing vendor                                                 |

## How to Call

### Direct HTTP Call

1. Find the target API model on the Model API page.
2. Get the `endpoint` and request body format from the `Integration Docs`.
3. Include `Authorization: Bearer <token>` in the request header (get the token from your personal center).
4. POST the request; the response returns a `request_id` for subsequent queries.

### Async Tasks

1. Keep the returned `request_id` after submitting a task.
2. Poll the task status via the async query interface.
3. Retrieve the result URL once the task completes.

### WebHook Callback

1. Set `webhook_url` in the request parameters.
2. Once the task completes, the platform POSTs the callback result to that URL.
3. Verify the signature server-side, then persist the result.

### CLI Tool

1. Install the BizyAir CLI tool.
2. Log in to your account via `bizyair login`.
3. Invoke a model with `bizyair run <endpoint> --input <file>`.
4. Query task status with `bizyair task get <request_id>`.

> **Note:** For detailed API fields, error codes, and CLI commands, see the `API Reference`, `Return Code Reference`, and `CLI Tool` chapters at docs.bizyair.ai.

## Billing and Pricing

For model pricing, see [Node Pricing](https://www.bizyair.ai/price).
