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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Seedance API - Access Dreamina Seedance Video Models via AIsa

> AIsa guide to ByteDance Dreamina Seedance video model IDs, with APIs compatible with the official BytePlus ModelArk (Ark) video generation and private asset library APIs.

AIsa routes ByteDance Dreamina Seedance video models through BytePlus, ByteDance's official international enterprise platform.

AIsa is compatible with the official BytePlus ModelArk (Ark) video generation API: the official Ark SDK and existing Ark code work after changing only the base URL and API key. The ModelArk private asset library API is supported too; see [Asset library](#asset-library). Seedance is also available through the AIsa video API, `POST /v1/video/generations`.

## Supported Seedance models

| Model ID | Type | Endpoints | Best for |
| - | - | - | - |
| `dreamina-seedance-2-0-260128` | Video | `/v1/video/generations` | Dreamina Seedance video generation |
| `dreamina-seedance-2-0-fast-260128` | Video | `/v1/video/generations` | Faster, lower-cost Seedance video route |
| `dreamina-seedance-2-5` | Video | `/v1/video/generations` | Newer Dreamina Seedance video route |

Current prices for these models are on [aisa.one/models](https://aisa.one/models).

## Official Ark API compatibility

| | Official ModelArk | AIsa |
| - | - | - |
| Base URL | `https://ark.ap-southeast.bytepluses.com/api/v3` | `https://api.aisa.one/v1/ark/api/v3` |
| Create task | `POST /contents/generations/tasks` | Same path under the AIsa base URL |
| Query task | `GET /contents/generations/tasks/{id}` | Same path under the AIsa base URL |
| API key | ModelArk API key | AIsa API key |

Paths, request bodies and responses are the official ones; see the [ModelArk Video Generation API](https://docs.byteplus.com/en/docs/ModelArk/Video_Generation_API). Use the BytePlus model IDs in the table above.

```python theme={null}
import os
import time

from byteplussdkarkruntime import Ark

client = Ark(base_url="https://api.aisa.one/v1/ark/api/v3", api_key=os.environ["AISA_API_KEY"])

task = client.content_generation.tasks.create(
    model="dreamina-seedance-2-0-fast-260128",
    content=[{"type": "text", "text": "A paper boat drifting across a calm lake at sunrise"}],
)

# Poll the task until it finishes
while True:
    result = client.content_generation.tasks.get(task_id=task.id)
    if result.status in ("succeeded", "failed", "cancelled"):
        break
    time.sleep(10)

print(result.status, result.content.video_url if result.status == "succeeded" else result.error)
```

Not supported: `callback_url` (poll the task instead), and listing or deleting tasks.

## Asset library

AIsa is compatible with the official ModelArk private asset library API: upload images, video and audio once, then reference them in Seedance requests as `asset://<Id>`.

| | Official ModelArk | AIsa |
| - | - | - |
| Endpoint | `POST https://ark.ap-southeast-1.byteplusapi.com/?Action=<Action>&Version=2024-01-01` | `POST https://api.aisa.one/v1/ark?Action=<Action>&Version=2024-01-01` |
| Authentication | AK/SK request signing | AIsa API key, as `Authorization: Bearer` |

Request bodies are JSON, and responses have the official `ResponseMetadata` and `Result`; see the [ModelArk asset library API](https://docs.byteplus.com/en/docs/modelark/create-asset-api). All 12 official Actions are supported:

| Action | Required fields | Result |
| - | - | - |
| `CreateAssetGroup` | `Name` (`GroupType` defaults to `AIGC`) | `Id` |
| `GetAssetGroup` | `Id` | The group |
| `ListAssetGroups` | `Filter.GroupType` (`AIGC` or `LivenessFace`) | `Items` and pagination |
| `UpdateAssetGroup` | `Id`, plus `Name` or `Description` | `Id` |
| `DeleteAssetGroup` | `Id` | |
| `CreateAsset` | `GroupId`, `AssetType` (`Image`, `Video` or `Audio`), `URL` | `Id`; poll `GetAsset` |
| `GetAsset` | `Id` | The asset, with `Status`; it must be `Active` to be used |
| `ListAssets` | `Filter.GroupType` | `Items` and pagination |
| `UpdateAsset` | `Id`, `Name` | `Id` |
| `DeleteAsset` | `Id` | |
| `CreateVisualValidateSession` | `CallbackURL` | `BytedToken`, `H5Link` |
| `GetVisualValidateResult` | `BytedToken` | `GroupId` once verification succeeds |

```bash theme={null}
# 1. Create a group
curl "https://api.aisa.one/v1/ark?Action=CreateAssetGroup&Version=2024-01-01" \
  -H "Authorization: Bearer $AISA_API_KEY" -H "Content-Type: application/json" \
  -d '{"Name": "product-shots"}'

# 2. Add an asset from a public URL (AssetType: Image, Video or Audio)
curl "https://api.aisa.one/v1/ark?Action=CreateAsset&Version=2024-01-01" \
  -H "Authorization: Bearer $AISA_API_KEY" -H "Content-Type: application/json" \
  -d '{"GroupId": "<group Id>", "AssetType": "Image", "URL": "https://example.com/product.png"}'

# 3. Poll until Result.Status is Active
curl "https://api.aisa.one/v1/ark?Action=GetAsset&Version=2024-01-01" \
  -H "Authorization: Bearer $AISA_API_KEY" -H "Content-Type: application/json" \
  -d '{"Id": "<asset Id>"}'
```

Then reference the asset in a video request, on the Ark API or the AIsa video API:

```json theme={null}
{"type": "image_url", "image_url": {"url": "asset://<asset Id>"}}
```

**Lists.** `Filter` also takes `GroupIds` (an array), `Name` (substring) and, for `ListAssets`, `Statuses`. Page with `MaxResults` (1-100, default 10) and `NextToken`, or with `PageNumber` and `PageSize` (1-100) together; do not mix the two. `SortBy` is `CreateTime` (default) or `UpdateTime`, plus `GroupId` for `ListAssets`; `SortOrder` is `Desc` (default) or `Asc`. Lists can trail recent changes by a short time.

**Real-person verification.** For real-person assets (`LivenessFace` groups, a BytePlus invited feature), `CreateVisualValidateSession` returns an `H5Link` where the person completes face verification; `GetVisualValidateResult` with the `BytedToken` then returns the verified `GroupId`.

**Errors** use the official `ResponseMetadata.Error` (`Code`, `Message`). `400 InvalidParameter`: invalid request. `401 Unauthorized`: missing or invalid AIsa API key. `404 NotFound`: the resource does not exist or is not yours. `429 Throttling`: rate limited. Other provider errors are returned as the provider sent them.

**Differences from the official API**

* Groups and assets belong to your AIsa account and are shared by all its API keys; only your own Active assets can be referenced. Assets in your own ModelArk account are not available.
* Request signing with AK/SK is not accepted, so send the requests over HTTP with your AIsa API key. `ProjectName` is optional.
* Asset requests are limited to 1 per second per account (bursts of 2). They are not charged; video generation is billed as usual.

## Data privacy

Seedance requests are routed through BytePlus enterprise infrastructure. For compliance and data residency requirements, [contact us](mailto:developer@aisa.one).

## Next

* [Seedream models](https://aisa.one/docs/models/bytedance.md)
* [Model Catalog](https://aisa.one/docs/guides/models.md)
* [AI model pricing](https://aisa.one/docs/guides/pricing.md#models)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.