> ## 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

# ByteDance 模型 API - 通过 AIsa 访问 Seedream 和 Seedance

> ByteDance Seedream 和即梦 Seedance 模型 ID 和端点指南，包括通过 BytePlus 路由的 Seedream 5.0 和 Seedance 2.x。

AIsa 通过 ByteDance 官方国际企业平台 BytePlus 路由 ByteDance Seedream 和即梦 Seedance 模型。你可以使用一个 AIsa API Key 调用 Seedream 图像模型和 Seedance 视频模型。

`seedream-5-0-260128` 使用 `POST /v1/images/generations`，按请求计费。即梦 Seedance 视频模型通过 `POST /v1/video/generations` 异步调用。

## 支持的 ByteDance 模型

| 模型 ID | 类型 | 端点 | 适合 |
| - | - | - | - |
| `doubao-seedance-2-5-260628` | 视频 | `/v1/video/generations` | — |
| `dreamina-seedance-2-0-260128` | 视频 | `/v1/video/generations` | 即梦 Seedance 视频生成 |
| `dreamina-seedance-2-0-fast-260128` | 视频 | `/v1/video/generations` | 更快、成本更低的 Seedance 视频路由 |
| `dreamina-seedance-2-5` | 视频 | `/v1/video/generations` | 较新的即梦 Seedance 视频路由 |
| `seedream-5-0-260128` | 图像 | `/v1/images/generations` | 更新的 Seedream 图像路由 |

这些模型的当前价格见 [aisa.one/models](https://aisa.one/models)。

每个模型字符串中的日期后缀是 `YYMMDD` 格式的发布/版本标记，适合在生产路由中固定版本。即梦 Seedance 视频模型是异步任务制：先提交到 `POST /v1/video/generations`，再轮询 `/v1/video/generations/{task_id}`。

## 快速开始

```python theme={null}
from openai import OpenAI

client = OpenAI(api_key="YOUR_AISA_API_KEY", base_url="https://api.aisa.one/v1")

response = client.images.generate(
    model="seedream-5-0-260128",
    prompt="Create a clean product image of a glass water bottle on a white marble surface.",
    size="2048x2048",
)
print(response.data[0].url)
```

## 常用选择

| 需求 | 使用 |
| - | - |
| 图像生成/编辑 | `seedream-5-0-260128` |
| 视频生成 | `dreamina-seedance-2-0-260128` 或 `dreamina-seedance-2-0-fast-260128` |

## 数据隐私

ByteDance Seedream 和 Seedance 请求会通过 BytePlus 企业基础设施路由。如需合规和数据驻留要求，请[联系我们](mailto:developer@aisa.one)。

## 下一步

* [模型目录](https://aisa.one/docs/zh/guides/models.md)
* [Qwen 和 Wan 模型](https://aisa.one/docs/zh/models/qwen.md)


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