# Billing

> Understand API access, units, pricing, and billing.

## API Access

Any user can start using the WayinVideo API by purchasing an **API Units package** — no separate subscription is required for basic API access.

If you need advanced features such as **local file upload**, you will need to upgrade to a **Starter** plan or above. Some features may require higher-tier subscriptions (e.g. Pro, Scale, or Enterprise). See the [Subscription Plans](https://wayin.ai/wayinvideo/settings/plan) page for feature availability by plan.

## API Units

Every API call that submits a processing task (clipping, find moments, summarization, video notes, transcription, video enhancement) consumes **API Units**. The number of API units consumed depends on the task type and video length. When you retrieve the task result, the `cost_usage` field in the response indicates how many API units were consumed for that task. The actual API Units consumed are calculated dynamically during processing based on input video duration, task type, and other factors.

### How API Units Are Calculated

API Units are metered by task type. Reference rates:

| Task Type              | API Units                       |
| ---------------------- | ------------------------------- |
| AI Clipping            | 1 per minute of input video     |
| Find Moments           | 1 per minute of input video     |
| Video Summary          | 1 per minute of input video     |
| Video Notes            | 1 per minute of input video     |
| Video Transcript       | 1 per minute of input video     |
| Video Enhancer (1080p) | 1 per second of processed video |
| Video Enhancer (2K)    | 2 per second of processed video |
| Video Enhancer (4K)    | 4 per second of processed video |
| Subtitle Translation   | 0.5 per minute of input video   |
| AI Hook (no sound)     | 1 per generation                |

Per-minute rates use whole minutes, rounded up. A video shorter than 1 minute is billed as 1 minute. A longer video is billed as the next whole minute. For example, 3.45 minutes is billed as 4 minutes. AI Hook is billed per generation and does not use this rounding.

Video Enhancer is billed by the processed range, rounded up to the next whole second. A range shorter than 1 second is billed as 1 second. See the [Video Enhancer API](https://wayin.ai/api-docs/video-enhancer/).

For **AI Clipping**, if you have an **Enterprise subscription** and submit tasks with **Express Mode** enabled (`enable_express_mode: true`), consumption is **1 per minute of input video** instead of the standard rate above. See the [AI Clipping API](https://wayin.ai/api-docs/ai-clipping/).

```json
{
  "data": {
    "id": "proj_abc123",
    "name": "sample project name",
    "status": "SUCCEEDED",
    "expire_at": 1775751200314,
    "clips": [
      {
        ...
      }
    ],
    "cost_usage": 120
  }
}
```

`expire_at` of `-1` means the result does not expire while a paid subscription is active. After the paid subscription ends, the result is kept for one more month and then expires.

### API Units vs. Credits

API Units and website credits are **completely separate** and **not interchangeable**:

- **API Units** can only be used for API calls. They cannot be used on the WayinVideo website.
- **Credits** can only be used on the WayinVideo website. They cannot be used for API calls.

If you do not have enough API Units for the task, the API returns **400**. The `message` is `Your API units are insufficient. Please purchase more to continue: https://wayin.ai/wayinvideo/api-dashboard`. The task is not created, and no units are deducted. See [Status Codes](https://wayin.ai/api-docs/status-codes/).

## Find the tasks in Library

Tasks created via the API appear in your **Library** at [https://wayin.ai/wayinvideo](https://wayin.ai/wayinvideo). You can view the full history of API-submitted tasks there.

You can also perform follow-up actions on these videos on the website (e.g. edit, re-export, publish). Any operation done on the website does **not** consume API Units; it may consume **Credits** instead, depending on the action.

## How to Get API Units

You can purchase API Units packages on the [API Dashboard](https://wayin.ai/wayinvideo/api-dashboard). Units are available instantly after purchase, and each API call deducts units in real time. If an API call fails, no units will be deducted.

We support all major payment methods, including:

- Credit card
- Debit card
- Apple Pay
- Google Pay
- Link
- And other popular payment methods

## Invoices

You can view your complete payment history at the bottom of the [API Dashboard](https://wayin.ai/wayinvideo/api-dashboard). Each payment record includes a downloadable invoice for your records.
