Source: https://ailoot.ai/models/zh-hant-tw/hunyuan/
Canonical: https://ailoot.ai/models/zh-hant-tw/hunyuan/
Language: zh-hant-tw

# Hunyuan

[Markdown](https://ailoot.ai/models/zh-hant-tw/hunyuan/index.md) · [JSON](https://ailoot.ai/models/zh-hant-tw/hunyuan/facts.json)

## [Hunyuan](https://ailoot.ai/models/zh-hant-tw/hunyuan/)

最小 model／prompt 文字轉影片路由，以非同步方式收集結果。

- [**Ailoot Ultra · Video** `POST /v1/videos` `hunyuan`](https://ailoot.ai/models/zh-hant-tw/hunyuan/#method-0)

關於模型

此說明介紹模型的能力。Ailoot 可用的輸入、輸出與選項，依所選方法列於下方。

hunyuan 的 /v1/videos 請求必填 model、prompt。可由文字建立腳本概念鏡頭，例如自行車經過店面，供之後加入分鏡；文字轉影片及最小請求足夠時可選。

契約未識別更具體 Hunyuan 版本，也未提供時長、解析度或參考圖片。場景只提交一次，讀原工作到完成，初始 ID 不是成品。保存該工作全部實際輸出；hunyuan-pro、hunyuan-role 是文字對話，不能替代影片流程。

**Ailoot Ultra · Video** `POST /v1/videos` `hunyuan`

[`hunyuan`](https://ailoot.ai/models/zh-hant-tw/#m=hunyuan&route=Ultra&caller=hunyuan&fmt=videos)

Hunyuan /`hunyuan`

### 入門

最小 model／prompt 文字轉影片路由，以非同步方式收集結果。

接受的輸入

文字

結果

影片

### Ailoot 可用 · 輸入與方法

**Ailoot Ultra · Video** `POST /v1/videos`

輸入

`text`

輸出

`video`

| 欄位 | 類型 | 要求 | 值與限制 | 預設值 |
| --- | --- | --- | --- | --- |
| 欄位`model` | 類型`string` | 要求必填 | 值與限制 hunyuan 條件: 請原樣使用這個 Ailoot 路由選擇值。 | 預設值— |
| 欄位`prompt` | 類型`string` | 要求必填 | 值與限制 條件: 請描述場景及其中的動態。 | 預設值— |

方法參數與生命週期

| 參數 | 規格 |
| --- | --- |
| 參數`content_type` | 規格application/json |
| 參數`required` | 規格model, prompt |
| 參數`optional` | 規格 |
| 參數`material_types` | 規格text |
| 參數`conditions` | 規格請原樣使用這個 Ailoot 路由選擇值。, 請描述場景及其中的動態。 |

方法別名： `/v1/videos/generations`

生命週期： `submit_once_poll_original`

`GET /v1/videos/{request_id}`

`GET /v1/videos/generations/{request_id}`

`GET /v1/videos/{request_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### 方案

##### 最終費用的計算方式

顯示的費率用於在生成前估算費用。最終費用依原始生成作業記錄的成本計算。實測的輸出時間長度與預估數量並非最終計費數量。

費率資訊不會增加請求選項。支援的參數列於所選方法中。

快速模式

未指定 選取快速模式時

flex 模式

未指定 選取 flex 模式時

最高推理強度

未指定 最高推理強度採用 default 調整值時

#### 供比較的預估費率

#### 各設定的價格

請逐一核對各項費用與所列條件。每組互為替代選項的設定只套用一種費率。

| 設定 | 費率表 | 預估數量 | 計費數量 | 費用 |
| --- | --- | --- | --- | --- |
| 設定基礎 token 費率 | 費率表基本費率 | 預估數量— | 計費數量— | 費用 輸入 · 輸入 Token · 僅供比較的估算 **—** / 1K Token 輸出 · 輸出 Token · 僅供比較的估算 **—** / 1K Token 輸入 · 讀取快取 · 僅供比較的估算 **—** / 1K Token 輸入 · 寫入快取 · 僅供比較的估算 **—** / 1K Token 輸入 · 寫入快取，1 小時 · 僅供比較的估算 **—** / 1K Token |
| 設定每次請求 | 費率表— | 預估數量— | 計費數量1 次請求 | 費用 輸入 · 僅供比較的估算 **$1.2** 每次請求 |
| 設定預估生成費用 | 費率表— | 預估數量單次生成估算值 | 計費數量— | 費用 輸出 · 預估生成費用 · 僅供比較的估算 **$1.2** 生成前估算 此估算並非額外費用，也不是本次生成完成後的固定費率。 |

Ailoot 會在請求前預留估算金額。取得結果後，依實測用量結算最終費用。串流結算採用最終用量紀錄。[預留金額與結算的運作方式 →](https://ailoot.ai/docs/zh-hant-tw/billing/reserve/)

### 請求範例

#### Ailoot Ultra · Video

curl · 僅建立一次並保留回執讀取原始任務儲存您擁有的每個已完成素材

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
cat > request.json <<'JSON'
{
  "model": "hunyuan",
  "prompt": "A cat is walking on grass."
}
JSON
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Create once; retain id, polling_url, original task identifiers and every header.
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_STATUS'
import json,os,subprocess
from pathlib import Path
from urllib.parse import urljoin,urlsplit
r=json.loads(Path("result.json").read_text())
u=urljoin("https://api.ailoot.ai",r["polling_url"])
p=urlsplit(u)
if p.scheme!="https" or p.netloc!="api.ailoot.ai" or p.username or p.password:
    raise SystemExit("Unexpected returned polling URL; preserve the response")
subprocess.run(["curl","--fail-with-body","--silent","--show-error",u,"-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"],"-D","status-headers.txt","-o","status.json"],check=True)
# Read this same original polling_url again while pending.
# Preserve unknown/result_pending_check; do not repeat creation.
PY_STATUS
```

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_ASSETS'
import json,os,subprocess
from pathlib import Path
from urllib.parse import urljoin,urlsplit
r=json.loads(Path("status.json").read_text())
roles={}
def visit(v,path=""):
    if isinstance(v,dict):
        for k,x in v.items(): visit(x,path+"/"+k)
    elif isinstance(v,list):
        for i,x in enumerate(v): visit(x,path+"/"+str(i))
    elif isinstance(v,str):
        u=urljoin("https://api.ailoot.ai",v); p=urlsplit(u)
        if p.scheme=="https" and p.netloc=="api.ailoot.ai" and not p.username and not p.password and p.path.startswith("/v1/media/assets/") and p.path.endswith("/content"):
            roles.setdefault(u,[]).append(path)
visit(r)
if not roles: raise SystemExit("No completed owned assets; retain the original status")
manifest=[]
for i,(u,paths) in enumerate(roles.items()):
    target=Path(f"asset-{i}.bin")
    subprocess.run(["curl","--fail-with-body","--silent","--show-error",u,"-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"],"-o",str(target)],check=True)
    raw=target.read_bytes()
    if not raw: raise SystemExit("Empty asset; retain original status and metadata")
    ext="glb" if raw[:4]==b"glTF" else "png" if raw[:8]==b"\x89PNG\r\n\x1a\n" else "jpg" if raw[:3]==b"\xff\xd8\xff" else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "mp4" if raw[4:8]==b"ftyp" else "bin"
    name=f"asset-{i}.{ext}"
    if target.name!=name: target.rename(name)
    manifest.append({"file":name,"response_paths":paths,"bytes":len(raw)})
Path("asset-manifest.json").write_text(json.dumps(manifest,indent=2))
print("Saved",len(manifest),"unique owned assets; every response role retained")
PY_ASSETS
```

### 接收並儲存結果

#### Ailoot Ultra · Video

- `GET /v1/videos/{request_id}`
- `GET /v1/videos/generations/{request_id}`
- `GET /v1/videos/{request_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### 保留所有已完成的結果

請儲存每部已完成的影片或傳回的檔案，並從實際傳回的每個素材 URL 取得素材。

請保留完整回應與標頭、原始識別碼、每個實際輸出，以及所有用量／帳務欄位。請儲存每個不重複的自有資產，並保留指向該資產的每個角色。

##### 需要檢查原始回應時

請保留回傳的公開工作或操作 id，以及所有標頭。僅讀取原始工作；unknown 或 result\_pending\_check 均不代表可以再次建立。

回應欄位

| 欄位 | 類型 |
| --- | --- |
| 欄位`id` | 類型string |
| 欄位`polling_url` | 類型string |
| 欄位`provider_task_id` | 類型string |
| 欄位`task_id` | 類型string |
| 欄位`status` | 類型string |
| 欄位`video_url` | 類型string |

### 別名

#### 模型別名

**Ailoot Ultra** [`hunyuan`](https://ailoot.ai/models/zh-hant-tw/#m=hunyuan&route=Ultra&caller=hunyuan&fmt=videos)

#### 方法路徑別名

`/v1/videos/generations`

#### 相關呼叫用 ID

[`hunyuan`](https://ailoot.ai/models/zh-hant-tw/#m=hunyuan&route=Ultra&caller=hunyuan&fmt=videos)

FAQ · Hunyuan

可以使用哪些輸入與結果？

`POST /v1/videos` · `hunyuan`: `text` → `video`

請求使用哪些欄位？

`POST /v1/videos` · `hunyuan`: `model`, `prompt`

將 Ailoot 串接 Claude Code、OpenCode、Hermes 或自己的應用程式。

## 公司及其專案組合

公司及其專案組合：數百萬客戶，每月銷售額達數十億。

## 優惠購買 token。

訂閱優惠適合持續工作，折扣碼購買 token 最高可折 50%。

訂閱

為定期請求選擇優惠方案。

最高 50% 折扣碼

購買時輸入代碼，價格依活動重算。

歷史中的費用

每次請求保存模型、token 與金額。

[選擇訂閱](https://ailoot.ai/docs/zh-hant-tw/billing/subscriptions/) · [查看模型價格](https://ailoot.ai/models/zh-hant-tw/)

## 將 API 加入 你銷售的產品。

依 Ailoot 正式服務條款與授權合約串接 SaaS、應用程式與機器人；轉售請申請經銷授權。

商用應用程式

在付費功能加入文字、圖片、影片與聲音生成。

經銷授權

提供專案說明與存取方式，要求書面使用和轉售條件。

網站文件

串接前可閱讀正式服務條款、授權合約與資料處理政策。

[申請經銷授權](mailto:support@ailoot.ai) · [正式服務條款與授權合約](https://ailoot.ai/legal/offer?lang=zh-hant-tw)

## Ailoot · 公司及其專案組合





Ailoot以累積的營運經驗、廣大的客戶群、穩定的服務及持續的KPI管理為基礎。





公司及其專案組合：數百萬客戶，每月銷售額達數十億。





Ailoot將這些營運經驗用於API存取，讓客戶的產品、代理、應用程式及自動化流程使用AI功能。
