期間限定オファー:最大55%お得に。Seedanceがわずか$0.02/秒から。今すぐ試す

SeeGen AI API

SeeGen AI API へようこそ — 複数の主要モデルにまたがる、映画品質の動画と高精細な画像生成を1つのAPIで実現します。

概要

SeeGen AI は統合生成APIです。複数の主要なAI動画・画像モデルを、一貫したエンドポイント群で呼び出せます。model パラメータでモデルを選択します — 認証、タスク送信、ステータスのポーリング、Webhookはすべてのモデルで同じ方法で動作します。

現在利用可能なモデル:

  • Video — Seedance 2.5(sd2.5)、Seedance 2.0 Pro(sd2)、Fast(sd2-fast)、Mini(sd2-mini)、Grok Imagine Video 1.5(grok-imagine-video-1.5)および Lite(grok-imagine-video-1.5-lite)、Wan 3.0 Video Prime(wan3.0-video-prime)、Wan 3.0 Video(wan3.0-video)。Grokは音声付きで1〜15秒に対応します。Standard 1.5はテキストまたは単一画像入力でネイティブ1080pに対応し、最大14枚の参照画像を使用できます。Liteはテキストまたは1枚の画像に対応し、1080pへのアップスケールは720pを基に行われます。
  • 画像 — GPT Image 2(gpt-image-2)、Nano Banana 2.1 / 2(nano-banana-2.1、nano-banana-2)、Nano Banana Pro(nano-banana-pro)、Seedream 5.0 Lite(seedream-v5.0-lite)、Seedream 5.0 Pro(seedream-v5.0-pro)。Qwen Image 2.1 ProとTurboは、最大10枚の参照画像を使った1K/2Kの生成・編集に対応します。

ベースURL: https://seegen.ai/api/v1

モデル: 上記のいずれかのエイリアスを model フィールドに指定します(例:sd2、gpt-image-2)。

SeeGen AI を選ぶ理由

SeeGen AI を選ぶその他の理由:

  • Seedance 2.0 だけじゃない:Wan 3.0、Nano Banana、ChatGPT Image なども利用可能。
  • サブスクリプション不要 — 使った分だけ支払う従量制
  • 最新モデルにいち早くアクセス
  • 24時間365日のカスタマーサポート
  • 各モデル公式に関する問い合わせにも対応
  • 開発者向けコンソールへのアクセス
  • 法人・個人どちらでも利用可能

料金

40% OFF

API Pack

$500$833

125,000 クレジット ($0.004/クレジット)

5s動画 ~1,136本

40% OFF

API-XL Pack

$2,000$3,332

500,000 クレジット ($0.004/クレジット)

5s動画 ~4,545本

Seedance 2.0 / Fast / Mini / 2.5 — 料金の計算方法

out は出力秒数、in は各入力動画の長さを個別に秒単位で切り上げた合計です。in の最小値は ⌈2 × out / 3⌉ です。動画入力なしの料金は out × 単価、動画入力ありは (out + in) × 単価です。モデルと解像度の単価は下表を参照してください。

動画入力なし動画入力あり
sd2.5-flash: 480p20 × out15 × (out + in)
sd2.5-flash: 720p40 × out30 × (out + in)
sd2.5: 480P30 × out23 × (out + in)
sd2.5: 720P60 × out45 × (out + in)
sd2.5: 1080P (ネイティブ)150 × out113 × (out + in)
sd2.5: 2K(60 + 30) × out45 × (out + in) + 30 × out
sd2.5: 4K (ネイティブ)241 × out187 × (out + in)
sd2-pro: 480P20 × out15 × (out + in)
sd2-pro: 720P40 × out30 × (out + in)
sd2-pro: 1080P (ネイティブ)100 × out75 × (out + in)
sd2-pro: 2K(40 + 30) × out30 × (out + in) + 30 × out
sd2-pro: 4K (ネイティブ)200 × out150 × (out + in)
sd2-fast: 480P11 × out16 × out8.5 × (out + in)12 × (out + in)
sd2-fast: 720P22 × out32 × out17 × (out + in)24 × (out + in)
sd2-fast: 1080P(22 + 20) × out(32 + 20) × out17 × (out + in) + 20 × out24 × (out + in) + 20 × out
sd2-fast: 2K(22 + 30) × out(32 + 30) × out17 × (out + in) + 30 × out24 × (out + in) + 30 × out
sd2-fast: 4K(22 + 40) × out(32 + 40) × out17 × (out + in) + 40 × out24 × (out + in) + 40 × out
sd2-mini: 480P4.5 × out10 × out3.5 × (out + in)7.5 × (out + in)
sd2-mini: 720P9 × out20 × out7 × (out + in)15 × (out + in)
sd2-mini: 1080P(9 + 20) × out(20 + 20) × out7 × (out + in) + 20 × out15 × (out + in) + 20 × out
sd2-mini: 2K(9 + 30) × out(20 + 30) × out7 × (out + in) + 30 × out15 × (out + in) + 30 × out
sd2-mini: 4K(9 + 40) × out(20 + 40) × out7 × (out + in) + 40 × out15 × (out + in) + 40 × out

注:sd2 と sd2.5 の1080Pと4Kはネイティブ出力です。両モデルの2K、および sd2-fast / sd2-mini の1080P/2K/4Kは720Pから自動アップスケールされます。outputResolution で解像度を指定します(例:"4k")。ネイティブ出力にアップスケール料金はかかりません。アップスケールは出力1秒あたり1080P +20、2K +30、4K +40クレジットです。自動アップスケールに失敗すると、完了したタスクは720Pの代替動画を返し、クレジットの一部返金はありません。

期間限定:sd2-fast と sd2-mini の基本料金を値下げしています。動画入力なしの480P / 720Pでは、Fastは出力1秒あたり11 / 22クレジット、Miniは4.5 / 9クレジットです。動画入力ありでは、Fastは課金1秒あたり8.5 / 17クレジット、Miniは3.5 / 7クレジットで、出力時間と課金対象の入力動画時間の合計に適用されます。1080P/2K/4Kは割引後の720P基本料金に、出力1秒あたり20 / 30 / 40クレジットの変更のないアップスケール料金が加算されます。

アップスケールに失敗した場合、完了タスクは720Pの代替結果を返し、クレジットの一部返金はありません。

  • sd2.5 480P、4秒出力・動画入力なし:120クレジット
  • sd2.5 720P、5秒出力・動画入力なし:300クレジット
  • sd2.5 720P、5秒出力 + 3秒入力動画(最小入力は4秒):405クレジット
  • sd2.5 1080Pネイティブ、5秒出力・動画入力なし:750クレジット
  • sd2.5 1080Pネイティブ、5秒出力 + 5秒入力動画:1,130クレジット

MiniMax H3 / H3 Max / H3 Max Turbo

MiniMax H3
解像度出力クレジット / 秒参照動画クレジット / 秒
768P2727
2K4343

最初の 5 枚の画像は無料。追加の画像1枚につき 11 クレジット。

MiniMax H3 Max
解像度出力クレジット / 秒参照動画クレジット / 秒
480P1820
768P2752

最初の 2 枚の画像は無料。追加の画像1枚につき 27 クレジット。

MiniMax H3 Max Turbo
解像度出力クレジット / 秒参照動画クレジット / 秒
480P10—
768P14—

最初の 2 枚の画像は無料。追加の画像1枚につき 27 クレジット。

クレジット = 出力秒数 × 出力レート + 各入力動画の秒数を整数秒に切り上げた合計 × 入力動画レート + 無料枠を超えた画像数 × 画像レート。最初と最後のフレームを含む、すべての入力画像がカウントされます。音声参照は無料です。請求額はサーバーで計測した動画の長さに基づき、クライアントが指定した長さは無視されます。失敗したタスクでは予約済みクレジットが返還されます。

Kling 4.0

クレジット / 秒
解像度動画入力なし動画入力あり
720P5432
1080P8048

入力動画なし:720pは出力1秒あたり54クレジット、1080pは80クレジット。入力動画あり:720pは課金対象1秒あたり32クレジット、1080pは48クレジット。サーバーは各入力動画を計測し、合計する前に長さを秒単位で切り上げます。課金対象秒数=出力秒数+max(切り上げ後の入力合計秒数、出力秒数)。最終クレジット数は切り上げられます。30秒の入力上限には、切り上げ前の実際の長さが適用されます。

API PlaygroundでKling 4.0を試す

Grok Imagine Video 1.5

解像度クレジット / 秒
480P30
720P50
1080P90

出力料金は480p / 720p / 1080pで1秒あたり30 / 50 / 90クレジット、入力画像1枚あたり5クレジットです。音声による追加料金はありません。入力画像1枚を使用した5秒・480p動画の料金は155クレジットです。

urls: 公開HTTP(S)画像URL。画像1枚で単一画像から動画、画像2枚で最初/最後のフレームを指定します。参照画像を1〜14枚使用する場合はvideoInputMode: "reference"を設定してください。最初/最後のフレームおよび複数参照画像の出力は480pと720pに対応します。

Grok Imagine Video 1.5 Lite

解像度クレジット / 秒
480P8
720P12
1080P50

出力料金は480p/720p/1080pで1秒あたり8/12/50クレジットです。入力画像1枚につき5クレジットが別途かかります。音声の有無による料金の変更はありません。入力画像1枚を使用した5秒の480p動画は45クレジットです。

urls:公開HTTP(S)画像URLを0個または1個指定できます。画像を1枚指定すると画像から動画の生成になり、そのアスペクト比に従います。複数画像、リファレンスモード、動画および音声入力には対応していません。

Wan 3.0 Video / Prime — 料金計算

out = 出力秒数、in = 各参照動画の秒数を小数点以下切り上げた合計とします。参照動画なし:credits = out × rate。参照動画あり:credits = (out + in) × rate。モデルと解像度に対応する下表のレートを使用してください。

モデルネイティブ出力クレジット / 秒2秒の例
wan3.0-video-prime480P2244
720P4590
1080P90180
wan3.0-video480P1632
720P3264
1080P64128

注意:480P、720P、1080P はネイティブ出力です。2K/4K アップスケールは非対応です。参照画像と音声は課金時間に加算されず、音声生成をオフにしても料金は変わりません。参照動画の合計時間と出力時間の合計は 30 秒以内にしてください。

  • wan3.0-video 480P、参照動画なしで 2 秒出力:2 × 16 = 32 クレジット
  • wan3.0-video-prime 480P、参照動画なしで 2 秒出力:2 × 22 = 44 クレジット
  • wan3.0-video 720P、5 秒出力 + 3 秒の参照動画:(5 + 3) × 32 = 256 クレジット
  • wan3.0-video-prime 720P、5 秒出力 + 2.2 秒の参照動画(3 秒に切り上げ):(5 + 3) × 45 = 360 クレジット

🎉 期間限定オファー:全ての画像生成が33%オフ — 以下の画像料金はすでに割引後の金額です。

GPT Image 2.5 Flare / Sunburst

解像度標準品質高品質XHigh 品質Max 品質
1k35132023355075
2k (デフォルト)7102335375584125
4k1015406067100154230

各タスクは1枚の画像を生成します。N個のバリエーションを得るにはN個のタスクを送信してください。失敗したタスクは自動的にクレジットが返金されます。

gpt-image-2 — 1画像あたりのクレジット

解像度標準品質高品質
1k10154770
2k (デフォルト)233584125
4k4060154230

各タスクは1枚の画像を生成します。N個のバリエーションを得るにはN個のタスクを送信してください。失敗したタスクは自動的にクレジットが返金されます。

Nano Banana — 画像あたりのクレジット

解像度nano-banana-2.1nano-banana-2nano-banana-pro
1k20304060
2k (デフォルト)30454060
4k477074110

各タスクは1枚の画像を生成します。N個のバリエーションを得るにはN個のタスクを送信してください。失敗したタスクは自動的にクレジットが返金されます。

Seedream 5.5 — 画像1枚あたりのクレジット

項目 / 種類クレジット
1k1015
2k (デフォルト)1725
参照画像(1枚あたり)46

各タスクは1枚の画像を生成します。N個のバリエーションを得るにはN個のタスクを送信してください。失敗したタスクは自動的にクレジットが返金されます。 最初の1枚を含むすべての参照画像に料金がかかります。

Seedream 5.0 — 1画像あたりのクレジット

モデル / 階層クレジット
Flash 1k / 1.5k / 2k(均一料金)812
Lite 2k / 4k(定額)710
Pro 1k (デフォルト)1015
Pro 2k2030

各タスクは1枚の画像を生成します。N個のバリエーションを得るにはN個のタスクを送信してください。失敗したタスクは自動的にクレジットが返金されます。 参照画像は別途課金されません。

Qwen Image 2.1 Pro / Turbo

解像度qwen-image-2.1-proqwen-image-2.1-turbo
1k132058
2k132058

Pro:画像1枚あたり13クレジット。Turbo:画像1枚あたり5クレジット。1Kと2Kの料金は同じです。料金には有効な画像プロモーションが適用されます。

各タスクは1枚の画像を生成します。N個のバリエーションを得るにはN個のタスクを送信してください。失敗したタスクは自動的にクレジットが返金されます。 参照画像は別途課金されません。

残高を確認:GET /api/v1/account/credits

APIアカウント向け自動チャージ

APIキーとSeeGen AIダッシュボードは、同じアカウント単位のクレジット残高を使用します。自動チャージを使うとAPIワークロード用の残高を維持できますが、設定はCreditsページから行う必要があります。現在、専用の設定APIはありません。

Creditsで自動チャージを設定します:

  1. Creditsを開き、維持したい最低残高を指定して、チャージパッケージを選択します。
  2. 支払い方法を一度だけ承認します。この設定では承認情報が保存され、カードへの請求は発生しません。
  3. 柔軟な承認が有効になった後は、再承認せずにCreditsで最低残高やパッケージを変更できます。以前の固定価格承認を使用しているアカウントでは、一度だけアップグレードが必要な場合があります。

APIリクエスト時の動作

  • APIタスクの送信が成功してクレジットが差し引かれ、残高がしきい値以上からしきい値未満になった場合、SeeGen AIは自動チャージを非同期でキューに入れます。タスク送信はチャージ完了を待ちません。
  • 送信前のクレジットが不足している場合、APIはHTTP 402を返し、タスクは作成されません。その拒否されたリクエストでは自動チャージは開始されず、リクエストも自動再試行されません。クレジットが利用可能になってから再試行してください。
  • 現在の残高はGET /api/v1/account/creditsで確認できます。自動チャージの進行状況と失敗はCreditsおよびPayment Historyに表示され、重要な結果はアカウントの請求先メールアドレスに送信されます。現在、顧客向けの自動チャージWebhookやステータスAPIはありません。

APIパッケージの自動チャージ特典

  • $500.00 API Pack:127,500クレジット(125,000 + 2%ボーナス)。
  • $2,000.00 API-XL Pack:525,000クレジット(500,000 + 5%ボーナス)。
  • これらのパッケージを手動購入した場合は、引き続きそれぞれ125,000および500,000クレジットが追加されます。

認証

すべてのAPIリクエストには、Authorization ヘッダーに Bearer トークンが必要です。APIキーは アカウント設定 から作成・管理できます。

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://seegen.ai/api/v1/account/credits

重要: APIキーは作成時に一度だけ表示されます。安全に保管してください。1アカウントにつき最大10個までAPIキーを作成できます。

クイックスタート

2ステップで動画を生成:タスクを作成し、結果をポーリングします。

set -eu
# 1. Create once. Save the returned IDs; never blindly retry a timed-out create.
CREATED=$(curl --fail-with-body --silent --show-error --max-time 120 -X POST \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2",
    "inputs": {
      "prompt": "A golden retriever running on the beach at sunset",
      "duration": "5s",
      "resolution": "1280x720"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask)
printf '%s\n' "$CREATED" | jq .
TASK_ID=$(printf '%s' "$CREATED" | jq -er '.taskId')

# 2. Poll for up to 15 minutes. A polling timeout does not cancel the task.
DEADLINE=$(( $(date +%s) + 900 ))
while true; do
  RESULT=$(curl --fail-with-body --silent --show-error --max-time 30 \
    -H "Authorization: Bearer $SEEGEN_API_KEY" \
    "https://seegen.ai/api/v1/jobs/queryTask?taskId=$TASK_ID")
  STATUS=$(printf '%s' "$RESULT" | jq -er '.status')
  if [ "$STATUS" = "COMPLETED" ]; then
    printf '%s\n' "$RESULT" | jq .
    break
  fi
  if [ "$STATUS" = "FAILED" ]; then
    printf '%s\n' "$RESULT" | jq .
    exit 1
  fi
  if [ "$(date +%s)" -ge "$DEADLINE" ]; then
    echo "Still processing: query taskId=$TASK_ID later" >&2
    exit 1
  fi
  sleep 5
done

エンドポイント

POST/api/v1/jobs/createTask

新しい画像または動画生成タスクを作成

GET/api/v1/jobs/queryTask

タスクのステータスと結果を照会

GET/api/v1/jobs/relations

ドラフトと完成動画の関連を照会

GET/api/v1/account/credits

クレジット残高を確認

POST/api/v1/assets/upload

審査用に素材(画像・動画・音声)をアップロード

GET/api/v1/assets/status

素材の審査状況を照会

POST/api/v1/assets/review

プラットフォーム素材審査を開始または再試行

GET/api/v1/assets/list

アップロード済みの素材を一覧表示

POST/api/v1/upscale/create

スタンドアロンの動画アップスケールタスクを送信(720p / 1080p / 2K / 4K)

GET/api/v1/upscale/query

スタンドアロンのアップスケールタスクのステータスと結果をポーリング

モデルを選択(動画)

ワークフロー、ネイティブ解像度、速度、価格から動画モデルを選択し、料金セクションとこの表を組み合わせてコストを見積もれます。

モデルT2VI2VFirst–LastMulti-RefR2Vネイティブ1080pネイティブ4K音声720p / 5s
sd2.5✓✓✓✓—✓✓✓300 クレジット
sd2.5-flash✓✓✓✓———✓200 クレジット
sd2✓✓✓✓—✓✓✓200 クレジット
sd2-fast✓✓✓✓—アップスケールアップスケール✓110 クレジット160 クレジット
sd2-mini✓✓✓✓—アップスケールアップスケール✓45 クレジット100 クレジット
grok-imagine-video-1.5✓✓✓✓—✓—✓250 クレジット
grok-imagine-video-1.5-lite✓✓———アップスケール—✓60 クレジット
wan3.0-video-prime✓✓✓✓—✓—✓225 クレジット
wan3.0-video✓✓✓✓—✓—✓160 クレジット

T2V = テキストから動画 · I2V = 画像から動画(最初のフレーム) · First–Last = 最初と最後のキーフレーム · Multi-Ref = 参照画像(SeedanceとWanは動画/音声にも対応) · R2V = キャラクターマーカー付き1~9枚の参照画像

Seedance 2.0 / 2.0 Fast / 2.0 Mini / Seedance 2.5

テキストから動画

テキストプロンプトから動画を生成します。画像は不要です。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2",
    "inputs": {
      "prompt": "A futuristic city with flying cars at night, neon lights reflecting on wet streets",
      "duration": "5s",
      "resolution": "1280x720"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask
パラメータ型必須説明
promptstringはい生成する動画のテキスト説明。最大20000文字。
durationstringいいえ動画の長さ:"4s" 〜 "15s"(sd2.5 は最大 "30s" まで対応、デフォルト:"5s")
resolutionstringいいえresolution によるアスペクト比の指定。選択肢:auto(デフォルト)、720x720、720x960、960x720、1280x720、720x1280、1280x540
outputResolutionstringいいえ出力解像度:"480p"、"720p"(デフォルト)、"1080p"、"2k"、"4k"。Seedance 2.0 ProとSeedance 2.5は480p/720p/1080p/4kのネイティブ出力に対応し、FastとMiniは480p/720pに対応します。それ以外は自動アップスケールされます。ドラフトではこのフィールドを省略してください。出力は480p固定です。
seedintいいえ再現性のためのシード値:ランダムにする場合は -1 を指定するか省略。固定する場合は 0–2147483647 を指定。
generateAudiobooleanいいえ同期した音声トラックを生成するかどうか。デフォルトは true。無音の動画にする場合は false を指定。

画像から動画

静止画像を動画にアニメーション化します。開始フレームとして画像URLを1つ指定します。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2",
    "inputs": {
      "urls": ["https://example.com/photo.jpg"],
      "prompt": "The woman slowly turns her head and smiles",
      "duration": "5s"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask
パラメータ型必須説明
urlsstring[]はい画像URLを1つ含む配列(元となるフレーム)。HTTP URLと素材参照(例:"asset://asset-20260326-abc123")の両方に対応。
promptstringいいえ求める動きのテキスト説明
durationstringいいえ動画の長さ:"4s" 〜 "15s"(sd2.5 は最大 "30s" まで対応、デフォルト:"5s")
outputResolutionstringいいえ出力解像度:"480p"、"720p"(デフォルト)、"1080p"、"2k"、"4k"。Seedance 2.0 ProとSeedance 2.5は480p/720p/1080p/4kのネイティブ出力に対応し、FastとMiniは480p/720pに対応します。それ以外は自動アップスケールされます。ドラフトではこのフィールドを省略してください。出力は480p固定です。
seedintいいえ再現性のためのシード値:ランダムにする場合は -1 を指定するか省略。固定する場合は 0–2147483647 を指定。
generateAudiobooleanいいえ同期した音声トラックを生成するかどうか。デフォルトは true。無音の動画にする場合は false を指定。

最初と最後のフレーム

開始フレームと終了フレームを指定すると、モデルがその間の遷移を生成します。videoInputMode: "keyframe" を使用します。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2",
    "inputs": {
      "urls": [
        "https://example.com/first-frame.jpg",
        "https://example.com/last-frame.jpg"
      ],
      "prompt": "Smooth camera transition from day to night",
      "duration": "5s",
      "videoInputMode": "keyframe"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask
パラメータ型必須説明
urlsstring[]はい画像URLをちょうど2つ含む配列:[first_frame, last_frame]。HTTP URLと素材参照(例:"asset://asset-20260326-abc123")の両方に対応。
videoInputModestringはい"keyframe" を指定する必要があります
promptstringいいえ遷移の内容を指示するテキスト説明
durationstringいいえ動画の長さ:"4s" 〜 "15s"(sd2.5 は最大 "30s" まで対応、デフォルト:"5s")
outputResolutionstringいいえ出力解像度:"480p"、"720p"(デフォルト)、"1080p"、"2k"、"4k"。Seedance 2.0 ProとSeedance 2.5は480p/720p/1080p/4kのネイティブ出力に対応し、FastとMiniは480p/720pに対応します。それ以外は自動アップスケールされます。ドラフトではこのフィールドを省略してください。出力は480p固定です。
seedintいいえ再現性のためのシード値:ランダムにする場合は -1 を指定するか省略。固定する場合は 0–2147483647 を指定。
generateAudiobooleanいいえ同期した音声トラックを生成するかどうか。デフォルトは true。無音の動画にする場合は false を指定。

マルチリファレンス

複数の参照画像・動画・音声ファイルを使って生成を制御します。videoInputMode: "reference" を使用します。sd2.5 ではこれがデフォルトの参照サブタスクです。既存の動画を編集・延長する場合は、後述の「動画編集・延長」を参照してください。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2",
    "inputs": {
      "urls": [
        "https://example.com/ref1.jpg",
        "https://example.com/ref2.jpg"
      ],
      "videoUrls": ["asset://asset-motion-video"],
      "audioUrls": ["https://example.com/audio.mp3"],
      "prompt": "Character walks through a garden",
      "duration": "5s",
      "videoInputMode": "reference",
      "resolution": "1280x720"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask
パラメータ型必須説明
urlsstring[]いいえ参照画像URL(最大9枚)。HTTP URLと素材参照(例:"asset://asset-20260326-abc123")の両方に対応。
videoUrlsstring[]いいえ参照動画の asset:// URI — 事前に /api/v1/assets/upload でアップロードが必要です。外部URLは拒否されます。sd2:最大3本、各動画は15s以下。sd2.5:最大10本、各動画は2–30sかつ200MB以下、参照動画の合計時間は30s以下、480p〜4Kの入力に対応。
audioUrlsstring[]いいえ参照音声の入力。sd2 / sd2-fast / sd2-mini:最大3ファイル、各2–15s、合計15s以下 — これらのモデルでは音声のみを参照にすることはできません(画像または動画を少なくとも1つ追加してください)。sd2.5:最大10ファイル、各15MB以下かつ2–30s、合計30s以下。音声のみの入力にも対応。
videoInputModestringはい"reference" を指定する必要があります
promptstringいいえテキスト説明
durationstringいいえ動画の長さ:"4s" 〜 "15s"(sd2.5 は最大 "30s" まで対応、デフォルト:"5s")
resolutionstringはいリファレンスモードでは必須。選択肢:720x720、720x960、960x720、1280x720、720x1280、1280x540
outputResolutionstringいいえ出力解像度:"480p"、"720p"(デフォルト)、"1080p"、"2k"、"4k"。Seedance 2.0 ProとSeedance 2.5は480p/720p/1080p/4kのネイティブ出力に対応し、FastとMiniは480p/720pに対応します。それ以外は自動アップスケールされます。ドラフトではこのフィールドを省略してください。出力は480p固定です。
seedintいいえ再現性のためのシード値:ランダムにする場合は -1 を指定するか省略。固定する場合は 0–2147483647 を指定。
generateAudiobooleanいいえ同期した音声トラックを生成するかどうか。デフォルトは true。無音の動画にする場合は false を指定。

リファレンスの制約

  • 画像は最大9枚、動画は最大3本、音声は最大3ファイル
  • 全種類合計で最大12ファイル
  • 動画・音声はそれぞれ15秒以下
  • 画像は短辺が400px以上必要
  • sd2.5:画像は最大30枚、動画は最大10本、音声は最大10ファイル、合計最大50ファイル。動画・音声はそれぞれ合計30秒以下。

動画編集・延長

sd2.5 は参照ベースの生成を3つのサブタスクに分けています。通常の参照生成では mode を省略し、既存動画を編集する場合は mode: "edit"、動画を延長する場合は mode: "extend" を指定します。どちらも videoUrls に少なくとも1本の動画が必要で、出力は常に元動画のアスペクト比になります。

操作したい動画は videoUrls の先頭に置き、プロンプト内では「Video 1」として参照してください。edit では出力の長さがその最初の(元となる)動画に強制的に一致します。この動画は4–30sである必要があり、送信した duration は無視されます。課金は元動画の長さを出力時間とし、すべての参照動画を入力として扱います。extend は1〜3本のクリップを順に連結でき、指定した duration はこの生成の出力時間になります(元の長さとは無関係)— 通常の参照生成と同じ方法で課金されます。

2.0系モデル(sd2 / sd2-fast / sd2-mini)も mode: "edit" と mode: "extend" に対応しています。これらはプロンプトから操作内容を推測するため(編集や延長の内容を明示的に記述してください)、アスペクト比は元動画に従い、duration は引き続き自分で指定でき、課金も通常どおりです。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2.5",
    "inputs": {
      "mode": "edit",
      "videoInputMode": "reference",
      "videoUrls": ["asset://asset-source-video"],
      "urls": ["https://example.com/annotation-at-1.2s.png"],
      "source_frame_timestamps_ms": [1200],
      "prompt": "Replace the marked object with a red umbrella",
      "outputResolution": "720p"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask
パラメータ型必須説明
modestringいいえ"edit" または "extend"。通常の参照生成では省略します。
videoUrlsstring[]はい少なくとも1本の動画が必要です。最初の動画がソース(「Video 1」)となり、編集後の出力の長さと課金はこれに従います。それ以降の動画は追加の参照(edit)または順に連結される追加クリップ(extend、最大3本)です。
urlsstring[]いいえ任意の注釈・参照画像。
source_frame_timestamps_msnumber[]いいえmode "edit" のみで使用。urls内の各画像に対し、元動画上のタイムスタンプ(ミリ秒、非負)を1つずつ指定します。
outputResolutionstringいいえ出力解像度:"480p"、"720p"(デフォルト)、"1080p"、"2k"、"4k"。Seedance 2.0 ProとSeedance 2.5は480p/720p/1080p/4kのネイティブ出力に対応し、FastとMiniは480p/720pに対応します。それ以外は自動アップスケールされます。ドラフトではこのフィールドを省略してください。出力は480p固定です。

Seedance 2.5:下書きから完成版へ

inputs.draft を true にして sd2.5 タスクを送信すると、ネイティブ480Pの下書きを生成します。outputResolution と upscaleResolution は指定しないでください。API が出力を480Pに固定し、"480p" を含め、いずれかの項目が指定された場合は拒否します。テキスト、キーフレーム、参照生成に対応し、編集と延長には対応しません。下書きと完成版はそれぞれ課金されます。

# 1. Create a 480P draft. Save both taskId and orderId from the response.
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"sd2.5","inputs":{"prompt":"A blue cube slowly rotates on a white background","duration":"4s","draft":true}}'

# 2. Poll by taskId until status is COMPLETED, then review the draft output.
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/jobs/queryTask?taskId=YOUR_DRAFT_TASK_ID"

# 3. Within 7 days of draft creation, generate the 1080P final from its SeeGen orderId.
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"sd2.5","inputs":{"draftSourceOrderId":"YOUR_DRAFT_ORDER_ID"}}'

createTask が返す orderId(または queryTask で取得した値)を保存し、下書きが COMPLETED になるまで待ちます。次に、その orderId を inputs.draftSourceOrderId に指定して sd2.5 タスクを送信します。サーバーは同じアカウントの完了済み下書きであることを確認し、元の入力と seed を再利用してネイティブ1080Pの完成版を生成します。完成版リクエストの他の入力は無視されます。構図は近くなりますが、ピクセル単位の一致は保証されません。

重要なルール

  • どの ID を使いますか? createTask または queryTask が返す SeeGen の orderId を使用し、taskId は使用しません。SeeGen がサンプルのゲートウェイタスク ID を内部で参照するため、この API に draft_task.id を送らないでください。
  • ARK とフィールド名が異なるのはなぜですか? プロバイダー API では resolution が出力画質、content[].draft_task.id がサンプルを指定します。SeeGen では resolution はアスペクト比のプリセットで、通常のタスクの画質は outputResolution で選びます。サンプルでは outputResolution を省略し、完成版では draftSourceOrderId を送ります。プロバイダー向けリクエストをそのままこの API に送らないでください。
  • いつ生成できますか? サンプルは現在のアカウントが所有し、COMPLETED 状態である必要があります。作成から 7 日間、完成版の生成に使用できます。期限を過ぎたら新しいサンプルを作成してください。
  • 何が再利用されますか? 完成版にはサンプルのプロンプト、参照素材、長さ、アスペクト比、seed、音声設定、タスク種別が自動で再利用されます。完成版の inputs には draftSourceOrderId だけを送り、ほかの生成パラメータは無視されます。完成版にはトップレベルの callBackUrl を別途設定できます。
  • 料金は? サンプルと完成版は別々の有料タスクです。サンプルには 480P、完成版にはネイティブ 1080P の料金が適用されます。サンプルで入力動画を使用した場合、完成版の料金は元の入力動画の長さで計算され、サンプル動画自体は追加の入力動画として数えません。
パラメータ型必須説明
draftbooleanいいえsd2.5 専用。true にするとネイティブ480Pの下書きを生成します。outputResolution と upscaleResolution は指定しないでください。API が480Pを選択します。編集、延長、アップスケールには対応しません。
draftSourceOrderIdstringいいえ自分の完了済み sd2.5 下書きの orderId。createTask または queryTask が返します。この下書きからネイティブ1080Pの完成版を生成します。

ドラフトと完成動画の関連を照会

orderId を指定して GET /api/v1/jobs/relations を呼び出します。ドラフトを指定すると派生した完成動画を、完成動画を指定すると元のドラフトを返します。API キー所有者の注文のみ表示されます。

# A draft orderId returns its finals, oldest first (including queued and failed tasks).
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/jobs/relations?orderId=YOUR_DRAFT_ORDER_ID&limit=20"

# A final orderId returns its source draft.
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/jobs/relations?orderId=YOUR_FINAL_ORDER_ID"

応答には kind、sourceDraft、finals、totalCount、nextCursor が含まれます。各タスクには orderId、taskId、status、createTime と、完了時には URL が含まれます。ドラフトの次のページは nextCursor を cursor として指定します(limit は 1~50)。削除またはアーカイブ済みの注文は非表示です。

{
  "orderId": "YOUR_DRAFT_ORDER_ID",
  "kind": "draft",
  "sourceDraft": null,
  "finals": [
    {
      "orderId": "FINAL_ORDER_ID",
      "taskId": "FINAL_TASK_ID",
      "status": "COMPLETED",
      "createTime": 1790192800000,
      "url": "https://example.com/final.mp4"
    }
  ],
  "totalCount": 1,
  "nextCursor": null
}

Seedanceパラメータリファレンス

sd2 / sd2-fast / sd2-mini / sd2.5 モデルにおける、すべての inputs パラメータの完全なリファレンスです。

パラメータ型必須説明
promptstringいいえテキスト説明(テキストから動画では必須、それ以外のモードでは任意)。最大20000文字。
urlsstring[]いいえ画像URL。HTTP URLと素材参照(例:"asset://asset-20260326-abc123")の両方に対応。内部的には uploadedUrls にマッピングされます。
videoUrlsstring[]いいえ参照動画の asset:// URI(リファレンスモードのみ)。事前に /api/v1/assets/upload でアップロードが必要です — 外部URLは拒否されます。
audioUrlsstring[]いいえ参照音声のURL(リファレンスモードのみ)。sd2.5 では音声のみの入力にも対応。sd2 / sd2-fast / sd2-mini では、音声に加えて画像または動画を少なくとも1つ指定する必要があります。
durationstringいいえ通常は "4s" 〜 "15s"。sd2.5 は最大 "30s" まで対応。デフォルト:"5s"
resolutionstringいいえアスペクト比:auto(デフォルト) | 720x720 | 720x960 | 960x720 | 1280x720 | 720x1280 | 1280x540
outputResolutionstringいいえ出力解像度:"480p"、"720p"(デフォルト)、"1080p"、"2k"、"4k"。Seedance 2.0 ProとSeedance 2.5は480p/720p/1080p/4kのネイティブ出力に対応し、FastとMiniは480p/720pに対応します。それ以外は自動アップスケールされます。ドラフトではこのフィールドを省略してください。出力は480p固定です。
videoInputModestringいいえ"keyframe"(デフォルト)または "reference"
modestringいいえリファレンスモードのサブタスク(全Seedanceモデル共通):通常の参照生成では省略、videoUrls内の最初の動画を編集する場合は "edit"、1〜3本のクリップを延長する場合は "extend"。詳細は「動画編集・延長」を参照。
source_frame_timestamps_msnumber[]いいえsd2.5 の動画編集のみ:注釈画像ごとに、非負のミリ秒単位のタイムスタンプを1つ指定します。
seedintいいえ再現性のためのランダムシード。サーバー側でランダムにする場合は -1 を指定するか省略。同じシード+同じ入力ではほぼ一致する出力が得られます(GPUの非決定性のためビット単位で完全に同一にはなりません)。範囲:-1 〜 2147483647。
draftbooleanいいえsd2.5 専用。true にすると480Pの下書きを生成します。「下書きから完成版へ」を参照してください。
draftSourceOrderIdstringいいえsd2.5 専用。この API アカウントが所有する完了済み下書きの orderId。ネイティブ1080Pの完成版を生成します。
generateAudiobooleanいいえ動画に同期した音声トラック(音声、効果音、BGM)を生成するかどうか。デフォルトは true。無音の動画にする場合は false を指定します — 処理がやや速くなり、別途アフレコを予定している場合に便利です。
bitrateModestringいいえ同じ解像度における出力ビットレートの階層:"standard"(デフォルト)または "high"。"high" はより多くのディテールを保持し、バンディングやブロックノイズを軽減しますが、ファイルサイズは約3〜5倍になります — 解像度や価格は変わりません。
upscaleResolutionstringいいえ(非推奨)後方互換性のために残されているレガシーな分割フィールドで、引き続き受け付けられます。新規に実装する場合は outputResolution を使用してください。こちらは "2k" / "4k" を直接指定できます。両方を送信した場合は upscaleResolution が優先されます — ただし、ネイティブ1080pに対応するモデル(Seedance2 Pro / Seedance 2.5)では、upscaleResolution:"1080p" はネイティブ1080pとして解決されます(ネイティブレートで課金)。

トップレベルのリクエストフィールド:model(必須)、inputs(必須)、callBackUrl(任意のWebhook URL)。

Seedance 素材

Seedance 素材とは、Seedance 動画生成タスクで使用する前に ByteDance Volcano の審査プロセスを経る画像・動画・音声ファイルです。素材をアップロードし、ACTIVE になるのを待ってから、その asset:// URL を Seedance タスク内で使用してください。

注: 実在の人物が写る画像・動画素材は公式審査が必要で、通常は数秒で完了します。承認されると、そのまま参照として使用できます。審査を経ていない場合、生成に失敗することがあります。

プラットフォームコンテンツ事前チェック

アカウントで素材審査が有効になっている場合、アップロード素材はすべての生成モデルでSeeGenによる審査も受けます。アップロード、ステータス、一覧のレスポンスには、個別のcontentReviewオブジェクトが含まれます。元のサプライヤーstatusに代わるものではありません。

プラットフォームポリシー上、使用が許可されるのはALLOWまたはDISABLEDのみです。元のモデルおよびサプライヤーの要件も引き続き適用されます。PROCESSINGは待機して素材のステータスをポーリングしてください。PENDINGは審査をリクエストしてください。BLOCKまたはNEEDS_REPHRASEは素材を差し替えてください。SERVICE_UNAVAILABLEは審査を完了できなかったため、再試行できます。この事前チェックで生成が拒否されても、クレジットは消費されません。

以前のアップロードを審査する、または一時的な審査失敗を再試行するには、数値のassetIdをPOST /api/v1/assets/reviewに送信してください。このエンドポイントはassetIdとcontentReviewを返します。サプライヤー審査の再試行や変更は行いません。

{ "assetId": 123, "contentReview": { "status": "PROCESSING", "reviewId": "review-id" } }

素材のアップロード

アップロード方法は2通りです:ローカルファイルを直接送信する(multipart/form-data)か、公開アクセス可能なHTTPS URLを送信するかです。いずれの方法でも、素材は自動的に処理・審査されます。

方法A — ファイルを直接アップロード(multipart/form-data)

画像ホストを用意せずにローカルファイルを送信できます。メディアタイプはファイルのバイト列から判定されます(ファイル名の拡張子は信頼されません)。対応形式:画像(jpg/png/webp/gif/bmp/tiff/heic)、動画(mp4/mov)、音声(wav/mp3)。ファイルあたり最大50MB(画像は30MB以下、動画は50MB以下、音声は15MB以下)。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -F "file=@/path/to/photo.jpg" \
  -F "name=my-photo" \
  https://seegen.ai/api/v1/assets/upload
パラメータ型必須説明
filefileはいローカルファイル(multipartフォームフィールド)。メディアタイプは内容から判定されます。
namestringいいえ素材名(最大64文字)

方法B — URLで指定(application/json)

ファイルがすでに公開HTTPS URLでホストされている場合。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/photo.jpg",
    "type": "IMAGE",
    "name": "my-photo"
  }' \
  https://seegen.ai/api/v1/assets/upload
パラメータ型必須説明
urlstringはいアップロードするファイルの公開アクセス可能なHTTPS URL
typestringはい"IMAGE"、"AUDIO"、または "VIDEO"
namestringいいえ素材名(最大64文字)

アップロードのレスポンス

{
  "assetId": 123,
  "volcAssetId": "asset-20260326-abc123",
  "type": "IMAGE",
  "status": "PROCESSING",
  "failReason": null,
  "url": "https://example.com/photo.jpg",
  "name": "my-photo",
  "createdAt": 1711234567890
}

素材ステータスの照会

素材の審査状況をポーリングします。ステータスが PROCESSING の場合、このエンドポイントは審査システムからの更新を自動的に確認します。

# Query by asset ID (numeric)
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/assets/status?assetId=123"

# Query by volcAssetId (string)
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/assets/status?assetId=asset-20260326-abc123"

素材ステータスの値

  • PROCESSING — 審査中、まだ使用不可
  • ACTIVE — サプライヤー審査に合格済み。使用前にプラットフォームのcontentReviewも確認してください
  • FAILED — 審査に不合格、failReason を確認してください

素材の一覧取得

アップロード済みの素材を、タイプとステータスによる任意のフィルタ付きで一覧表示します。カーソルベースのページネーションに対応しています。

# List all assets
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/assets/list"

# Filter by type and status
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/assets/list?type=IMAGE&status=ACTIVE&limit=10"

# Paginate with cursor
curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/assets/list?cursor=100&limit=20"
パラメータ型必須説明
typestringいいえタイプでフィルタ:"IMAGE"、"AUDIO"、または "VIDEO"
statusstringいいえステータスでフィルタ:"NONE"、"PROCESSING"、"ACTIVE"、または "FAILED"
cursornumberいいえページネーション用カーソル(前回のレスポンスの nextCursor を使用)
limitnumberいいえ1ページあたりの件数、1〜50(デフォルト:20)

一覧のレスポンス

{
  "items": [
    {
      "assetId": 123,
      "volcAssetId": "asset-20260326-abc123",
      "type": "IMAGE",
      "status": "ACTIVE",
      "failReason": null,
      "url": "https://example.com/photo.jpg",
      "name": "my-photo",
      "width": 1920,
      "height": 1080,
      "size": 245000,
      "duration": null,
      "createdAt": 1711234567890
    }
  ],
  "nextCursor": 122
}

タスクでの素材の使用

素材が ACTIVE になったら、その volcAssetId を asset:// プロトコルとともにタスクのURLで使用します:

{
  "model": "sd2",
  "inputs": {
    "urls": ["asset://asset-20260326-abc123"],
    "prompt": "The person slowly looks up and smiles",
    "duration": "5s"
  }
}

MiniMax H3 / H3 Max / H3 Max Turbo

POST /api/v1/jobs/createTask で minimax-h3、minimax-h3-max、または minimax-h3-max-turbo を使用します。返された taskId を使って /api/v1/jobs/queryTask をポーリングし、COMPLETED または FAILED になるまで確認します。taskId と orderId を保存し、クエリがタイムアウトしても2つ目のタスクを作成しないでください。callBackUrl はトップレベルで任意指定できます。SeeGen はローカル処理の完了後に最終結果を送信します。

POST /api/v1/assets/upload?model=minimax-h3(または選択した Max / Turbo ID)、Authorization: Bearer <API_KEY>、multipart のフォームフィールド file を使って、ローカルの参照ファイルをアップロードします。返された url を inputs.urls、videoUrls、または audioUrls に渡します。参照ファイルはアカウントに属している必要があります。外部 URL と asset:// 識別子は使用できません。

すべてのモードでプロンプトが必要です。H3 は 768p または 2K で4~15秒の整数秒に対応します。Max と Turbo は 480p または 768p で5~15秒に対応します。動画にはネイティブ音声が生成されます。H3 と Max は、12ファイル以内で最大9枚の参照画像、3本の動画、3つの音声クリップを受け付けます。動画と音声の参照にはそれぞれ合計15秒の上限があり、各クリップは2~15秒です。音声参照には少なくとも1枚の画像または1本の動画が必要です。Turbo はテキスト、最初のフレーム、最初と最後のフレームのみをサポートします。

画像:JPEG、PNG、WEBP、最大30 MB、各辺256~5760ピクセル、アスペクト比0.4~2.5。動画:MP4/MOV、最大50 MB、各辺256~5760ピクセル、23.976~60 fps。音声:MP3/WAV、最大15 MB。アップロード時にファイルのバイト列を検証し、生成前にメタデータを記録します。

クレジット = 出力秒数 × 出力レート + 各入力動画の秒数を整数秒に切り上げた合計 × 入力動画レート + 無料枠を超えた画像数 × 画像レート。最初と最後のフレームを含む、すべての入力画像がカウントされます。音声参照は無料です。請求額はサーバーで計測した動画の長さに基づき、クライアントが指定した長さは無視されます。失敗したタスクでは予約済みクレジットが返還されます。

テキストから動画

MiniMax H3

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3",
  "inputs": {
    "videoInputMode": "keyframe",
    "prompt": "Dark cinematic VFX title sequence beginning with a single drop of glossy black liquid falling onto polished metal. Instead of splashing normally, the fluid violently spreads outward in branching organic tendrils. The camera tracks the liquid at macro scale as it races across the surface, splitting, reconnecting and forming increasingly complex structures. Thousands of black droplets suddenly leap upward against gravity and spiral into a living fluid vortex. The viscous material stretches into sharp ribbons and rapidly constructs the word \"VENON\", every letter constantly moving beneath a wet reflective surface as if the typography itself were alive. The camera performs a sinister close orbit while black tendrils whip between the letters and droplets float around the lens. The title suddenly loses structural stability and violently liquefies, exploding toward the camera as an enormous black fluid splash. Hyper-realistic viscosity, organic procedural motion, glossy reflections, dark premium theatrical VFX.",
    "duration": "15s",
    "outputResolution": "768p",
    "ratio": "16:9",
    "videoWorkflowTab": "text-to-video"
  }
}'

MiniMax H3 Max

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max",
  "inputs": {
    "videoInputMode": "keyframe",
    "prompt": "High-speed chase shot through an abandoned post-apocalyptic city in daylight. The camera races backward ahead of a lone runner while a gigantic dust tornado destroys the avenue behind them. Cars roll through the air, windows explode and debris fills the sky. The tornado suddenly tears an entire building facade apart. Thousands of concrete, steel and glass fragments are sucked upward, rotating violently inside the vortex. From above, the debris unexpectedly aligns into enormous floating letters spelling “SURVIVE.” The runner passes underneath as the tornado instantly destroys the word again. Massive disaster-movie VFX, intense speed, photorealistic debris and atmospheric destruction.",
    "duration": "15s",
    "outputResolution": "768p",
    "ratio": "16:9",
    "videoWorkflowTab": "text-to-video"
  }
}'

MiniMax H3 Max Turbo

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max-turbo",
  "inputs": {
    "videoInputMode": "keyframe",
    "prompt": "Cinematic 15-second 16:9 historical travel film of Angkor Wat, Cambodia, at sunrise. Create 15 rapid one-second shots with clean cuts and consistent visual continuity.Ultra-realistic Khmer architecture: five lotus-shaped towers, sandstone galleries, bas-relief carvings, monumental gates, stone corridors, reflecting pools, tropical gardens, palms, jungle, and moats. Golden-orange sunrise with pink-purple skies, morning mist, soft sun rays, and mirror-like water reflections.Shot sequence: aerial temple reveal; entrance glide; symmetrical five-tower hero shot; carved sandstone close-up; pond reflection tilt-up; orbit around the central sanctuary; bas-relief tracking; side view of towers; corridor glide; low-angle central tower; tropical garden pan; sunlight through temple openings; high aerial complex view; texture push-in; final aerial pull-back over Angkor Wat and the sunrise horizon.Smooth drone, push, pan, tilt, slide, and orbit movements. Stable architecture, realistic water, natural mist, cinematic depth of field, HDR documentary style, consistent warm color grading. No warping, flicker, text, or people.",
    "duration": "15s",
    "outputResolution": "768p",
    "ratio": "16:9",
    "videoWorkflowTab": "text-to-video"
  }
}'

画像から動画

MiniMax H3

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3",
  "inputs": {
    "videoInputMode": "keyframe",
    "ratio": "adaptive",
    "prompt": "Four adult men cross the tree-lined street together, then continue walking toward the park entrance at the end of the road. The camera follows them from behind as they move naturally, with gentle wind through the trees and parked cars along the street. Keep the same hand-drawn animated style, daytime lighting, and calm cinematic mood. No text or watermark.",
    "duration": "15s",
    "outputResolution": "768p",
    "videoWorkflowTab": "image-to-video",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp"
    ]
  }
}'

MiniMax H3 Max

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max",
  "inputs": {
    "videoInputMode": "keyframe",
    "ratio": "adaptive",
    "prompt": "15-second, 16:9 realistic 3D animated action-comedy. Use @Image1 as the only reference. Keep the same black cat rider, dinosaur mount, long bread loaf, saddle, reins, canyon desert, harsh afternoon sunlight, and character scale. No text, subtitles, watermark, extra characters, scene changes, fades, or black ending.The dinosaur runs continuously from left-rear to right-front along a flat desert track. The cat stays in the saddle area throughout. The cat holds the bread against its chest; after the jump, the bread flies in a clear arc toward the dinosaur’s mouth, and the dinosaur catches and eats it.0–3s: Low side tracking shot. The dinosaur runs fast, kicking up dust. The cat grips the bread and shouts, “Slow down! My bread is gonna fly off!”3–5s: Close-up of the dinosaur giving a secret mischievous smile. The cat notices and says, “Don’t you dare—”5–10s: The dinosaur deliberately jumps high on the flat path. The cat is thrown upward, and the bread slips free. In brief slow motion, the cat reaches for it as crumbs trail behind; the dinosaur catches it with a crisp “CHOMP!”10–13s: The dinosaur lands heavily. The cat falls back onto the saddle, crawls forward angrily, and yells, “You did that on purpose!” The dinosaur chews innocently.13–15s: Dynamic split-screen close-up: the cat is shocked while the dinosaur grins. A final crumb lands on the cat’s nose; the cat cross-eyes at it.Natural high-speed footfalls, wind, leather creaks, reins, dust impacts, bread crunching, and dialogue. No music.",
    "duration": "15s",
    "outputResolution": "768p",
    "videoWorkflowTab": "image-to-video",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp"
    ]
  }
}'

MiniMax H3 Max Turbo

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max-turbo",
  "inputs": {
    "videoInputMode": "keyframe",
    "ratio": "adaptive",
    "prompt": "The pale crust turning golden brown.",
    "duration": "15s",
    "outputResolution": "768p",
    "videoWorkflowTab": "image-to-video",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp"
    ]
  }
}'

最初と最後のフレーム

MiniMax H3

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3",
  "inputs": {
    "videoInputMode": "keyframe",
    "ratio": "adaptive",
    "prompt": "15-second, 16:9 hyper-realistic dark science-fantasy naval battle. Stormy ocean, black cliffs, a massive coastal fortress, realistic water physics, violent explosions, and blockbuster cinematic scale.0–2s: Extreme wide shot. Three armored battleships fire at the ocean below the fortress. Explosions send water high into the air as a huge shadow moves beneath the waves.2–4s: A single colossal humanoid water giant erupts beside the lead ship and smashes it in half.4–6s: The same water giant sweeps one arm through the remaining two ships, forcing them into a catastrophic collision and explosion. No other water figures appear.6–9s: The water giant collapses into the sea. An enormous ancient armored leviathan rises from the ocean, dwarfing the fortress.9–12s: The leviathan tears the fortress from the cliff with one armored forelimb and crushes it, sending debris into the sea.12–15s: A huge wave swallows the last debris. At 13 seconds, the water settles around the shattered empty coastline. At 14 seconds, sunlight breaks through the storm clouds and illuminates the victorious leviathan. Hold the final shot.Audio: thunderous artillery, waves, steel destruction, orchestral percussion and brass; at 13 seconds, percussion stops and one deep sustained chord remains.One water giant only, one leviathan only. Keep scale, ships, geography, and lighting consistent. No dialogue, subtitles, text, logos, cartoon style, or abrupt ending.",
    "duration": "15s",
    "outputResolution": "768p",
    "videoWorkflowTab": "first-last-frame",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.webp"
    ]
  }
}'

MiniMax H3 Max

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max",
  "inputs": {
    "videoInputMode": "keyframe",
    "ratio": "adaptive",
    "prompt": "A smooth cinematic time-lapse from daytime to night. The sun slowly moves across the sky as clouds drift naturally overhead. Ships pass through the water in the distance. As the sky darkens, streetlights and building windows gradually illuminate one by one, creating a warm evening city glow. Keep the camera static, with realistic lighting transitions and natural continuous motion.",
    "duration": "15s",
    "outputResolution": "768p",
    "videoWorkflowTab": "first-last-frame",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.webp"
    ]
  }
}'

MiniMax H3 Max Turbo

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max-turbo",
  "inputs": {
    "videoInputMode": "keyframe",
    "ratio": "adaptive",
    "prompt": "A cinematic seaside scene. The little girl holds a camera and takes photos of a young seagull near the shore. A larger mother seagull then swoops down, and the young seagull follows her into the sky. The girl runs along the rocky beach after them, holding her camera.Keep the same 3D anime character, lavender twin-tail hair, black gothic outfit, sunny ocean, and bright blue sky. Smooth camera tracking, natural bird flight, no text or watermark.",
    "duration": "15s",
    "outputResolution": "768p",
    "videoWorkflowTab": "first-last-frame",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.webp"
    ]
  }
}'

複数参照

MiniMax H3

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3",
  "inputs": {
    "videoInputMode": "reference",
    "prompt": "Use @Image1 as the first frame. The camera slowly pushes forward through the Japanese city street toward the giant white cat. The cat remains still at first, with subtle wind moving debris and clouds overhead.Then transition to @Image2: the cat opens its mouth as a bright cyan-blue energy glow builds inside, lighting its face and the nearby buildings.Transition to @Image3: the cat fires a powerful blue energy beam toward the right side of the street. The beam creates swirling shockwave rings and electric arcs. The building hit by the beam cracks, shakes, and collapses realistically into dust and debris. Keep the cat, city layout, anime style, lighting, and camera direction consistent throughout. No text, subtitles, or watermark.",
    "duration": "15s",
    "outputResolution": "768p",
    "ratio": "16:9",
    "videoWorkflowTab": "multi-reference",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_3.webp"
    ]
  }
}'

MiniMax H3 Max

API Playgroundを開く
curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3-max",
  "inputs": {
    "videoInputMode": "reference",
    "prompt": "Create a 15-second Japanese anime comedy in one ordinary living room. Modern polished 2D animation, clean line art, vivid cel shading, cinematic lighting. Keep the same two characters, costumes, faces, room, and normal household vacuum cleaner throughout@Image1. No text, subtitles, logos, UI, or extra characters.0–5s: Character A stands dramatically as an enormous anime aura erupts around them: glowing energy, particles, flowing light, and wind in their hair and clothes. Character B watches calmly, holding a vacuum [email protected]–10s: From a closer side angle, Character B silently turns on the vacuum and points it at A@Image3. Only A’s aura is visibly sucked into the nozzle as a continuous stream of light and particles. A becomes confused; B remains unimpressed. Do not pull A’s body, hair, or clothes.10–15s: Wide static shot. A stands with no aura, devastated. B turns off the vacuum. After a short pause, the vacuum begins vibrating and the same huge supernatural aura erupts around it.@Image4 Keep the vacuum completely normal—no transformation. Both characters slowly stare at the awakened vacuum cleaner. Hold the final absurd image.Maximum three shots, stable character consistency, minimal camera movement, no dialogue.",
    "duration": "15s",
    "outputResolution": "768p",
    "ratio": "16:9",
    "videoWorkflowTab": "multi-reference",
    "urls": [
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_3.webp",
      "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_4.webp"
    ]
  }
}'

パラメータ

パラメータ型必須説明
promptstringはいすべてのモードで必須となる、空でないシーンの説明。
videoWorkflowTabstringいいえtext-to-video、image-to-video、first-last-frame、または multi-reference。Turbo は multi-reference に対応していません。省略すると、入力内容からモードが推測されます。
durationstring | integerいいえデフォルトは5秒。H3:4~15秒の整数秒。Max と Turbo:5~15秒の整数秒。
outputResolutionstringいいえデフォルトは768p。H3:768p または 2k。Max と Turbo:480p または 768p。モデルが直接出力する品質段階のため、upscaleResolution は省略してください。
ratiostringいいえ16:9、9:16、1:1、4:3、3:4、21:9、または adaptive。テキストから動画では固定比率が必要です。最初と最後のフレームの生成では、画像のアスペクト比に従います。
urlsstring[]いいえimage-to-video では最初のフレームの URL を1つ、フレームモードでは順序付けされた最初と最後の URL を2つ、multi-reference では参照画像を最大9枚指定します。
videoUrls / audioUrlsstring[]いいえmulti-reference 専用で、各タイプ最大3ファイル。呼び出し元が所有するアップロード済み素材の URL を使用します。
promptExpansionModestringいいえMax / Turbo:balanced(デフォルト)または quality。

Kling 4.0

API PlaygroundでKling 4.0を試す

720pまたは1080pで3~30秒の動画を生成します。テキスト、画像、最初と最後のフレーム、複数のキーフレーム、画像・動画参照の5つのワークフローで、1つのモデルを共有します。プロンプトからネイティブ音声も生成されます。

まずmultipart POST /api/v1/assets/upload?model=kling-4.0で参照素材をアップロードします。返されたurlをmedia[].urlで使用してください。参照素材はご自身のアカウントに属している必要があります。以下のサンプルURLを、アップロードした素材のURLに置き換えてください。

JPG/PNG画像は最大30 MB、縦横両辺300 px以上を使用してください。動画はMP4/MOV形式、最大300 MB、3~30秒、24~60 fps、各辺700~4553 px、総ピクセル数8294400以下である必要があります。参照素材の上限は画像10枚、動画5本、ファイル15個、入力動画30秒です。参照IDは一意にし、プロンプトでは@Image1または@Video1を使用してください。

入力動画なし:720pは出力1秒あたり54クレジット、1080pは80クレジット。入力動画あり:720pは課金対象1秒あたり32クレジット、1080pは48クレジット。サーバーは各入力動画を計測し、合計する前に長さを秒単位で切り上げます。課金対象秒数=出力秒数+max(切り上げ後の入力合計秒数、出力秒数)。最終クレジット数は切り上げられます。30秒の入力上限には、切り上げ前の実際の長さが適用されます。

マルチキーフレームでは、first_frame、middle_frame、last_frameを使用します。配列の順序でmiddle_frameの順番が決まります。キーフレームのタイムスタンプを明示するフィールドは公開されていないため、プロンプトでタイミングを指定してください。

テキストから動画

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4.0",
  "inputs": {
    "videoWorkflowTab": "text-to-video",
    "prompt": "A cinematic scene. Use the supplied references to guide the action and visual style.",
    "duration": "10s",
    "outputResolution": "1080p",
    "ratio": "16:9",
    "media": []
  }
}'

マルチキーフレーム

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4.0",
  "inputs": {
    "videoWorkflowTab": "multi-keyframe",
    "prompt": "A cinematic scene. Use the supplied references to guide the action and visual style.",
    "duration": "10s",
    "outputResolution": "1080p",
    "media": [
      {
        "id": "Image1",
        "type": "first_frame",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.png"
      },
      {
        "id": "Image2",
        "type": "middle_frame",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.png"
      },
      {
        "id": "Image3",
        "type": "last_frame",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_3.png"
      }
    ]
  }
}'

画像から動画

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4.0",
  "inputs": {
    "videoWorkflowTab": "image-to-video",
    "prompt": "A cinematic scene. Use the supplied references to guide the action and visual style.",
    "duration": "10s",
    "outputResolution": "1080p",
    "media": [
      {
        "id": "Image1",
        "type": "first_frame",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.png"
      }
    ]
  }
}'

最初と最後のフレーム

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4.0",
  "inputs": {
    "videoWorkflowTab": "first-last-frame",
    "prompt": "A cinematic scene. Use the supplied references to guide the action and visual style.",
    "duration": "10s",
    "outputResolution": "1080p",
    "media": [
      {
        "id": "Image1",
        "type": "first_frame",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.png"
      },
      {
        "id": "Image2",
        "type": "last_frame",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_2.png"
      }
    ]
  }
}'

マルチ参照

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-4.0",
  "inputs": {
    "videoWorkflowTab": "multi-reference",
    "prompt": "A cinematic scene. Use the supplied references to guide the action and visual style.",
    "duration": "10s",
    "outputResolution": "1080p",
    "ratio": "adaptive",
    "media": [
      {
        "id": "Image1",
        "type": "refer_image",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_IMAGE_1.png"
      },
      {
        "id": "Video1",
        "type": "feature_video",
        "url": "https://static.seegen.ai/materials/YOUR_UPLOADED_VIDEO.mp4"
      }
    ]
  }
}'

パラメータ

videoWorkflowTabでワークフローを選択し、promptに指示、durationに整数または秒数文字列(デフォルト10s)、outputResolutionに720pまたは1080p(デフォルト1080p)、mediaにid、type、urlを含むオブジェクトを指定します。ratioはテキストから動画への生成で16:9、9:16、1:1、21:9に対応し、マルチ参照ではadaptiveにも対応します。画像・キーフレームのワークフローではratioを省略してください。音声および要素参照は有効になっていません。

Grok Imagine Video 1.5 / Lite

grok-imagine-video-1.5 または grok-imagine-video-1.5-lite を createTask と queryTask で使用します。どちらもテキストから動画、単一画像から動画への変換に対応し、音声も同期されます。1.5 のみ、最初と最後のフレーム指定および複数参照画像による生成に対応しています。

Grok Imagine Video 1.5: 出力料金は480p / 720p / 1080pで1秒あたり30 / 50 / 90クレジット、入力画像1枚あたり5クレジットです。音声による追加料金はありません。入力画像1枚を使用した5秒・480p動画の料金は155クレジットです。

Grok Imagine Video 1.5 Lite: 出力料金は480p/720p/1080pで1秒あたり8/12/50クレジットです。入力画像1枚につき5クレジットが別途かかります。音声の有無による料金の変更はありません。入力画像1枚を使用した5秒の480p動画は45クレジットです。

SEEGEN_API_KEYにAPIキーを設定してください。example.comの画像URLを、一般公開されている独自のHTTP(S)画像URLに置き換えてください。作成後はtaskIdを保存し、queryTaskまたはWebhook Callbackを使用して最終結果を受け取ってください。作成時に返されるのは完成した結果ではなく、非同期タスクです。

テキストから動画

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-video-1.5",
  "inputs": {
    "prompt": "A blue toy cube slowly rotates on a white table",
    "duration": "5s",
    "outputResolution": "480p",
    "ratio": "16:9",
    "generateAudio": true
  }
}'

画像から動画

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-video-1.5",
  "inputs": {
    "prompt": "A blue toy cube slowly rotates on a white table",
    "duration": "5s",
    "outputResolution": "480p",
    "generateAudio": true,
    "urls": [
      "https://example.com/first.png"
    ]
  }
}'

最初と最後のフレーム1.5 のみ

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-video-1.5",
  "inputs": {
    "prompt": "A blue toy cube slowly rotates on a white table",
    "duration": "5s",
    "outputResolution": "480p",
    "ratio": "16:9",
    "generateAudio": true,
    "urls": [
      "https://example.com/first.png",
      "https://example.com/last.png"
    ]
  }
}'

マルチリファレンス1.5 のみ

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-video-1.5",
  "inputs": {
    "prompt": "A blue toy cube slowly rotates on a white table",
    "duration": "5s",
    "outputResolution": "480p",
    "ratio": "16:9",
    "generateAudio": true,
    "urls": [
      "https://example.com/reference.png"
    ],
    "videoInputMode": "reference"
  }
}'

パラメータ

パラメータ型必須説明
promptstring条件付きprompt: テキストから動画の場合は必須。画像を指定する場合は任意です。
durationstring | integerいいえduration: 1〜15秒の整数。例:"5s"(デフォルト)。outputResolution: 480p(デフォルト)、720p、または1080p。
outputResolutionstringいいえ480p(デフォルト)、720p、または 1080p。1.5 はテキスト入力または単一画像入力でネイティブ1080pに対応します。最初と最後のフレーム指定および複数参照画像は480pと720pに対応します。Liteの1080pは720pからアップスケールされます。
ratiostringいいえratio: 16:9(デフォルト)、9:16、1:1、4:3、3:4、3:2、2:3、21:9、または5:2。単一画像から動画の場合、入力画像の比率に従います。
urlsstring[]いいえ公開HTTP(S)画像URL。テキストから動画への変換では省略します。画像を1枚指定すると、単一画像から動画への変換になります。Liteは画像を最大1枚まで受け付けます。1.5では画像を2枚指定すると最初と最後のフレーム指定になり、参照画像を1~14枚指定する場合は videoInputMode: "reference" を設定します。
videoInputMode"keyframe" | "reference"いいえ1.5のみ:keyframe(デフォルト)または reference。Liteでは省略します。
generateAudiobooleanいいえgenerateAudio: ブール値。デフォルトはtrueです。無音で出力する場合はfalseに設定します。
Grok Imagine Video 1.5を試すGrok Imagine Video 1.5 Liteを試す

Wan 3.0 Video & Wan 3.0 Video Prime

Wan 3.0 は、テキストからの動画生成、最初のフレームからの動画生成、開始・終了フレーム間の補間、画像・動画・音声の混合参照、動画編集、動画延長に対応します。wan3.0-video-prime は wan3.0-video と同じ入力に対応し、生成速度が最適化されています。

どちらのエイリアスもSeeGenの非同期APIを使用します。POST /api/v1/jobs/createTaskはtaskIdを返します。GET /api/v1/jobs/queryTask?taskId=...をポーリングするか、最終結果用にcallBackUrlを指定してください。

対応する出力:2–30 秒の固定時間、ネイティブの 480p、720p、1080p、透かしなし。自動時間(duration: -1)、2K/4K 出力、独自の watermark 設定には対応していません。参照素材を先にアップロードし、返された HTTPS URL を使用してください。

テキストから動画

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan3.0-video-prime",
    "inputs": {
      "prompt": "A red paper boat glides across a calm pond at sunrise, locked camera, no text.",
      "duration": "5s",
      "outputResolution": "720p",
      "ratio": "16:9",
      "generateAudio": true,
      "promptExtend": true,
      "seed": 12345
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から動画(最初のフレーム)

multipart POST /api/v1/assets/upload?model=wan3.0-video(または Prime のエイリアス)で Wan 素材をアップロードし、生成入力には返された所有済みの HTTPS url を使用してください。返された assetId は SeeGen の素材レコード ID にすぎず、生成入力には送信しないでください。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -F "file=@/path/to/first-frame.webp" \
  "https://seegen.ai/api/v1/assets/upload?model=wan3.0-video"
{
  "assetId": 123,
  "type": "IMAGE",
  "status": "ACTIVE",
  "url": "https://static.seegen.ai/materials/api/.../first-frame.webp"
}
curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan3.0-video",
    "inputs": {
      "urls": ["https://static.seegen.ai/materials/api/.../first-frame.webp"],
      "videoInputMode": "keyframe",
      "prompt": "The subject looks toward the camera as morning mist drifts past.",
      "duration": "5s",
      "outputResolution": "1080p",
      "generateAudio": true
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

最初と最後のフレーム

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan3.0-video",
    "inputs": {
      "urls": [
        "https://static.seegen.ai/materials/api/.../first-frame.webp",
        "https://static.seegen.ai/materials/api/.../last-frame.webp"
      ],
      "videoInputMode": "keyframe",
      "prompt": "A smooth continuous transition from sunrise to night.",
      "duration": "8s",
      "outputResolution": "720p"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

複数参照(画像、動画、音声)

videoInputMode: "reference" を設定し、urls、videoUrls、audioUrls から対応するメディアを少なくとも 1 つ指定してください。プロンプトは任意です。メディアは順番に Image1、Image2、Video1、Audio1 として参照します。各参照素材を Wan の multipart エンドポイントで先にアップロードし、返された所有済みの HTTPS URL を使用してください。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan3.0-video-prime",
    "inputs": {
      "videoInputMode": "reference",
      "urls": ["https://static.seegen.ai/materials/api/.../reference-image.webp"],
      "videoUrls": ["https://static.seegen.ai/materials/api/.../source-video.mp4"],
      "audioUrls": ["https://static.seegen.ai/materials/api/.../reference-audio.mp3"],
      "prompt": "Use Image1 for identity, Video1 for motion, and Audio1 for timing.",
      "duration": "10s",
      "outputResolution": "720p",
      "ratio": "16:9",
      "generateAudio": true,
      "promptExtend": true
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

動画編集

編集元の動画をアップロードし、mode: "edit" と videoInputMode: "reference" を設定します。必須のプロンプトで、videoUrls の最初の動画である Video1 をどう編集するかを指定してください。アスペクト比は自動で、出力の長さは選択できます。編集と延長には、下記の参照素材の制限と料金が適用されます。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan3.0-video",
    "inputs": {
      "mode": "edit",
      "videoInputMode": "reference",
      "videoUrls": ["https://static.seegen.ai/materials/api/.../source-video.mp4"],
      "prompt": "Transform Video1 into clay animation, keeping the characters and camera movement.",
      "duration": "5s",
      "outputResolution": "720p",
      "ratio": "adaptive"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

動画延長

mode: "extend" を指定し、元の動画と「Video1 の続きを生成」のような延長指示、その後の展開を入力します。ratio: "adaptive" を設定してください。選択した duration は生成する動画の長さであり、元の動画と延長部分の合計ではありません。ファイルやウェブページからの動画生成には対応していません。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan3.0-video-prime",
    "inputs": {
      "mode": "extend",
      "videoInputMode": "reference",
      "videoUrls": ["https://static.seegen.ai/materials/api/.../source-video.mp4"],
      "prompt": "Extend Video1 forward, continuing the motion of the character and keeping the scene consistent.",
      "duration": "5s",
      "outputResolution": "720p",
      "ratio": "adaptive"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

Wan 3.0パラメーターリファレンス

両方の Wan 3.0 モデルで同じ inputs フィールドを使用します。出力時間は 2–30 秒から 1 秒単位で選択してください。

パラメータ型必須説明
promptstringいいえ動画の説明または指示。最大 20,000 文字。テキストからの動画生成、動画編集、動画延長では必須です。画像からの動画生成、開始・終了フレーム、複数参照では省略できます。編集と延長には動画も必要です。参照順に Image1 / Video1 / Audio1 のマーカーを使用します。
modestringいいえ通常の生成では省略するか "normal" を指定します。"edit" または "extend" には動画と指示プロンプトが必要です。どちらも参照モード、自動アスペクト比、2–30 秒の固定出力長を使用します。
urlsstring[]いいえWan アップロードエンドポイントが返す所有済みの HTTPS 画像 URL。テキストから動画では省略し、最初のフレームは 1 枚、最初と最後のフレームは 2 枚、参照モードでは最大 10 枚を指定します。所有していない外部 URL と Seedance の素材プロトコル参照は拒否されます。
videoUrlsstring[]いいえWan アップロードエンドポイントが返す所有済みの HTTPS 参照動画 URL を最大 5 件指定できます。各動画は 1–15 秒、参照動画の合計は 15 秒以内、参照動画と出力時間の合計は 30 秒以内です。所有していない外部 URL と Seedance の素材プロトコル参照は拒否されます。
audioUrlsstring[]いいえWan アップロードエンドポイントが返す所有済みの HTTPS 参照音声 URL を最大 5 件指定できます。WAV または MP3 に対応し、各音声は 1–15 秒、参照音声の合計は 15 秒以内です。所有していない外部 URL と Seedance の素材プロトコル参照は拒否されます。
videoInputModestringいいえテキストから動画では省略します。1つの最初のフレームまたは2つの最初と最後のフレームには"keyframe"、画像・動画・音声の混合参照には"reference"を使用します。
durationstringいいえ"2s"から"30s"までの整数秒文字列。デフォルト:"5s"。
outputResolutionstringいいえネイティブの "480p"、"720p"(デフォルト)、"1080p"。2K/4K 出力には対応していません。
ratiostringいいえ"auto" または "adaptive"(どちらも自動アスペクト比)、"16:9"、"9:16"、"1:1"、"4:3"、"3:4"。テキストからの動画生成と複数参照で使用します。編集と延長は常に自動です。画像からの動画生成と開始・終了フレームでは、キーフレーム画像に従います。
generateAudiobooleanいいえ同期した音声、効果音、音楽を生成します。デフォルトはtrue。無音出力にする場合はfalseを設定します。料金は変わりません。
promptExtendbooleanいいえ生成前にモデルがプロンプトを補完できるようにします。デフォルトはtrue。
seedintいいえ0~2147483647。同じシードと入力を使用すると、近い結果で再試行できます。

参照メディアの要件

  • 画像:最大10枚;JPEG/JPG/PNG(透明度不可)/BMP/WebP;各20MB以下;各辺240~8000px;アスペクト比最大8:1
  • 動画:MP4/MOVクリップ最大5本;各100MB以下;各1~15秒、入力合計15秒以下、入力と指定出力の合計30秒以下;各辺240~4096px;アスペクト比最大8:1
  • 音声:Wan アップロードエンドポイントが返す WAV/MP3 HTTPS URL を最大5件;各15MB以下;各1~15秒、合計15秒以下
  • 最初/最後のフレームモードは、参照画像・動画・音声の配列と混在できません

モデルを選択(画像)

画像モデルはプロンプト(および任意で参照画像)を受け取り、タスクごとに1枚の画像を返します。各リクエストは、選択したモデルのティアに基づいて画像単位で課金されます(Seedream Liteは定額)。失敗したタスクは自動的に返金されます。バッチパラメータはありません — 複数のバリエーションを生成するには、画像ごとに createTask を1回ずつ呼び出してください。

モデルT2II2I(編集)Multi-Ref最大解像度2k / medium
seedream-v5.5✓✓最大10枚2k料金を見る
seedream-v5.0-flash✓✓最大10枚2k定額
gpt-image-2.5-flare✓✓最大10枚4k料金を見る
gpt-image-2.5-sunburst✓✓最大10枚4k料金を見る
gpt-image-2✓✓最大10枚4k料金を見る
nano-banana-2.1✓✓最大14枚まで4k料金を見る
nano-banana-2✓✓最大10枚4k料金を見る
nano-banana-pro✓✓最大10枚4k料金を見る
seedream-v5.0-lite✓✓最大10枚4k定額
seedream-v5.0-pro✓✓最大10枚2k料金を見る
qwen-image-2.1-pro✓✓最大10枚2k定額
qwen-image-2.1-turbo✓✓最大10枚2k定額

GPT Image 2.5 Flare / Sunburst

GPT Image 2.5 Flare は高速な画像生成と編集、Sunburst は細部にこだわる画像生成と精密な編集に重点を置いています。どちらもテキストプロンプトと参照画像に対応します。

ワークスペース、Playground、API で利用できます。両モデルは次のパラメーターに対応しています:medium/high/xhigh/max 品質、1K/2K/4K プリセット、PNG/JPEG/WebP 出力。実際のサイズはプリセットと異なる場合があります。JPEG と WebP は生成された PNG からサイズを変えずに変換されます。API タスクごとに画像を1枚生成します。

テキストから画像

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2.5-flare",
    "inputs": {
      "prompt": "A neon-lit cyberpunk alley at midnight, photoreal",
      "quality": "medium",
      "resolution": "2k",
      "aspectRatio": "16:9"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から画像(編集)

urls で1〜10枚の参照画像を渡します。モデルはそれらを、prompt に記述された編集内容の視覚的コンテキストとして使用します。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2.5-sunburst",
    "inputs": {
      "urls": ["https://example.com/portrait.jpg"],
      "prompt": "Restyle as oil painting",
      "quality": "medium",
      "resolution": "1k",
      "aspectRatio": "1:1"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

GPT Image 2.5 パラメータリファレンス

gpt-image-2.5-flare モデルにおける、すべての inputs パラメータの完全なリファレンスです。

パラメータ型必須説明
promptstringはい生成する画像のテキスト説明、または urls が指定されている場合は適用する編集内容。
urlsstring[]いいえ画像から画像(編集)モード用の参照画像URL(1〜10枚)。テキストから画像では省略。公開HTTPS URLに対応。
qualitystringいいえ"medium" / "high" / "xhigh" / "max"。デフォルト:"medium"。クレジットは階層に応じて変動します(料金を参照)。
resolutionstringいいえ"1k" / "2k" / "4k"。デフォルト:"2k"。クレジットは階層に応じて変動します(料金を参照)。
aspectRatiostringいいえ"1:1" / "16:9" / "9:16" / "4:3" / "3:4"。デフォルト:"1:1"。
outputFormatstringいいえ"png" / "jpeg" / "webp"。デフォルト:"png"。

入力画像の要件(画像から画像モード)

  • 1タスクあたり参照画像は最大10枚
  • 画像1枚あたり最大ファイルサイズ50MB
  • 短辺が256px以上
  • アスペクト比が1:3〜3:1の範囲
  • 形式:JPEG、JPG、PNG、WEBP

画像あたりのクレジットは解像度と品質に応じて変動します — 完全な表は料金セクションを参照してください。

GPT Image 2

OpenAI の GPT Image 2 モデルによる、高品質なテキストから画像生成と画像から画像編集。1つのワークフローで両方のモードに対応 — urls を渡すと自動的に編集モードに切り替わります。出力はリクエストした形式(PNG / JPEG / WEBP)でR2経由で配信されます。モデル名:gpt-image-2。

テキストから画像

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "inputs": {
      "prompt": "A neon-lit cyberpunk alley at midnight, photoreal",
      "quality": "medium",
      "resolution": "2k",
      "aspectRatio": "16:9"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から画像(編集)

urls で1〜10枚の参照画像を渡します。モデルはそれらを、prompt に記述された編集内容の視覚的コンテキストとして使用します。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "inputs": {
      "urls": ["https://example.com/portrait.jpg"],
      "prompt": "Restyle as oil painting",
      "quality": "medium",
      "resolution": "1k",
      "aspectRatio": "1:1"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

GPT Image 2 パラメータリファレンス

gpt-image-2 モデルにおける、すべての inputs パラメータの完全なリファレンスです。

パラメータ型必須説明
promptstringはい生成する画像のテキスト説明、または urls が指定されている場合は適用する編集内容。
urlsstring[]いいえ画像から画像(編集)モード用の参照画像URL(1〜10枚)。テキストから画像では省略。公開HTTPS URLに対応。
qualitystringいいえ"medium" / "high"。デフォルト:"medium"。クレジットは階層に応じて変動します(料金を参照)。
resolutionstringいいえ"1k" / "2k" / "4k"。デフォルト:"2k"。クレジットは階層に応じて変動します(料金を参照)。
aspectRatiostringいいえ"1:1" / "16:9" / "9:16" / "4:3" / "3:4"。デフォルト:"1:1"。
outputFormatstringいいえ"png" / "jpeg" / "webp"。デフォルト:"png"。

入力画像の要件(画像から画像モード)

  • 1タスクあたり参照画像は最大10枚
  • 画像1枚あたり最大ファイルサイズ50MB
  • 短辺が256px以上
  • アスペクト比が1:3〜3:1の範囲
  • 形式:JPEG、JPG、PNG、WEBP

画像あたりのクレジットは解像度と品質に応じて変動します — 完全な表は料金セクションを参照してください。

Nano Banana 2.1 / 2

Nano Banana 2.1 と 2 は、テキストから画像への生成と画像編集、1K / 2K / 4K 出力、10種類のアスペクト比に対応しています。デフォルト出力は2K、正方形(1:1)です。バージョンを選択すると、以下のモデルID、例、参照画像の上限が更新されます。既存の nano-banana-2 リクエストも引き続き利用できます。

バージョン

バージョン 2.1:モデル nano-banana-2.1 を使用し、最大 14 枚の参照画像を指定できます。バージョン2.1は14枚、バージョン2は10枚の参照画像に対応しています。

各APIタスクは画像1枚を返し、解像度に応じて課金されます。

API PlaygroundでNano Banana 2.1を試す

テキストから画像

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2.1",
    "inputs": {
      "prompt": "A neon-lit cyberpunk alley at midnight, photoreal",
      "resolution": "2k",
      "aspectRatio": "16:9"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から画像(編集)

urls を使って1~14枚の参照画像を渡します。変更内容と保持する詳細を prompt に記述してください。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2.1",
    "inputs": {
      "urls": ["https://example.com/portrait.jpg"],
      "prompt": "Restyle as oil painting",
      "resolution": "2k",
      "aspectRatio": "1:1"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

Nano Banana 2.1 パラメータリファレンス

nano-banana-2.1 モデルにおける、すべての inputs パラメータの完全なリファレンスです。

パラメータ型必須説明
promptstringはい生成する画像のテキスト説明、または urls が指定されている場合は適用する編集内容。
urlsstring[]いいえ編集用の公開HTTP(S)参照画像URLを1~14件指定します。テキストから画像への生成では省略してください。
resolutionstringいいえ"1k" / "2k" / "4k"。デフォルト:"2k"。クレジットは階層に応じて変動します(料金を参照)。
aspectRatiostringいいえ"1:1" / "16:9" / "9:16" / "4:3" / "3:4" / "3:2" / "2:3" / "4:5" / "5:4" / "21:9"。デフォルト:"1:1"。

入力画像の要件(画像から画像モード)

  • タスクあたり最大 14 枚の参照画像
  • 画像1枚あたり最大ファイルサイズ50MB
  • 短辺が256px以上
  • アスペクト比が1:3〜3:1の範囲
  • 形式:JPEG、JPG、PNG、WEBP

画像あたりのクレジットは解像度に応じて変動します — 完全な表は料金セクションを参照してください。

Nano Banana Pro

Nano Banana Pro は gpt-image-2 よりも幅広いアスペクト比に対応する高精細画像モデルです — 縦長/横長プリセット(3:2、2:3、4:5、5:4)とシネマティックな21:9が追加されています。1つのワークフローで両方のモードに対応 — urls を渡すと自動的に編集モードに切り替わります。モデル名:nano-banana-pro。

テキストから画像

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-pro",
    "inputs": {
      "prompt": "A neon-lit cyberpunk alley at midnight, photoreal",
      "resolution": "2k",
      "aspectRatio": "16:9"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から画像(編集)

urls で1〜10枚の参照画像を渡します。モデルはそれらを、prompt に記述された編集内容の視覚的コンテキストとして使用します。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-pro",
    "inputs": {
      "urls": ["https://example.com/portrait.jpg"],
      "prompt": "Restyle as oil painting",
      "resolution": "2k",
      "aspectRatio": "1:1"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

Nano Banana Pro パラメータリファレンス

nano-banana-pro モデルにおける、すべての inputs パラメータの完全なリファレンスです。

パラメータ型必須説明
promptstringはい生成する画像のテキスト説明、または urls が指定されている場合は適用する編集内容。
urlsstring[]いいえ画像から画像(編集)モード用の参照画像URL(1〜10枚)。テキストから画像では省略。公開HTTPS URLに対応。
resolutionstringいいえ"1k" / "2k" / "4k"。デフォルト:"2k"。クレジットは階層に応じて変動します(料金を参照)。
aspectRatiostringいいえ"1:1" / "16:9" / "9:16" / "4:3" / "3:4" / "3:2" / "2:3" / "4:5" / "5:4" / "21:9"。デフォルト:"1:1"。

入力画像の要件(画像から画像モード)

  • 1タスクあたり参照画像は最大10枚
  • 画像1枚あたり最大ファイルサイズ50MB
  • 短辺が256px以上
  • アスペクト比が1:3〜3:1の範囲
  • 形式:JPEG、JPG、PNG、WEBP

画像あたりのクレジットは解像度に応じて変動します — 完全な表は料金セクションを参照してください。

Seedream 5.5

1K・2Kの画像生成と編集、15種類のアスペクト比、最大10枚の参照画像に対応。モデル名:seedream-v5.5。1タスクで1枚を生成します。

テキストから画像

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "seedream-v5.5",
  "inputs": {
    "prompt": "Photorealistic close-up of a young adult woman with a short black bob, wispy bangs, dark brown eyes, and naturally rosy cheeks. She holds a bitten red-and-yellow apple against her slightly parted lips, looking directly into the camera with a curious, candid expression. Pink-and-white gingham blouse with delicate white lace ruffles and a small pale pink hair bow.\nHer face fills the center-right of the frame, with her hand and apple prominent in the lower-left foreground. Softly blurred pastel interior with colorful decorations and glowing round pendant lights. Gentle natural daylight, warm creamy tones, subtle film grain, visible skin texture, shallow depth of field, nostalgic Japanese lifestyle photography, intimate snapshot composition. no text or watermark.",
    "resolution": "2k",
    "aspectRatio": "16:9"
  }
}'

画像から画像(編集)

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "seedream-v5.5",
  "inputs": {
    "prompt": "Replace the brown tabby cat with an orange tabby cat. Preserve its pose, expression, size, and position. Keep the fish, water splashes, lighting, background, and composition unchanged.",
    "resolution": "2k",
    "aspectRatio": "16:9",
    "urls": [
      "https://static.seegen.ai/web-static/public/api-playground/seedream-5-5/v1/seedream-5-5-original-image.webp"
    ]
  }
}'

Seedream 5.5 パラメータリファレンス

パラメータ型必須説明
promptstringはい画像の説明、または編集内容。
urlsstring[]いいえ公開HTTPSの参照画像URL(1〜10枚)。テキストから画像では省略。
resolution"1k" | "2k"いいえ"1k" または "2k"。デフォルトは "2k"。4Kは非対応です。
aspectRatiostringいいえ"1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", または "21:9".

画像1枚あたり:1Kは10クレジット、2Kは17クレジット。参照画像は最初の1枚から、1枚につき4クレジットかかります。

Seedream 5.5

Seedream 5.0 Flash

1K・1.5K・2Kの画像生成と編集に対応。15種類の縦横比と最大10枚の参照画像を使用できます。モデル名:seedream-v5.0-flash。1タスクで1枚を生成します。

テキストから画像

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "seedream-v5.0-flash",
  "inputs": {
    "prompt": "A single plain cobalt blue ceramic mug centered on a light gray studio background, soft natural lighting, product photography, no text.",
    "resolution": "1.5k",
    "aspectRatio": "1:1",
    "outputFormat": "png"
  }
}'

画像から画像(編集)

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "seedream-v5.0-flash",
  "inputs": {
    "prompt": "Change only the blue mug to bright red. Preserve the composition, shape, background, shadows and lighting.",
    "resolution": "2k",
    "aspectRatio": "1:1",
    "outputFormat": "png",
    "urls": [
      "https://static.seegen.ai/web-static/public/api-playground/seedream-v5-flash/v1/text-to-image.webp"
    ]
  }
}'

Seedream 5.0 Flash パラメータリファレンス

パラメータ型必須説明
promptstringはい画像の説明、または編集内容。
urlsstring[]いいえ公開HTTPSの参照画像URL(1〜10枚)。テキストから画像では省略。
resolution"1k" | "1.5k" | "2k"いいえ"1k"、"1.5k"、"2k"。既定値は"2k"。4Kは非対応です。
aspectRatiostringいいえ"1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", または "21:9".
outputFormat"png" | "jpeg"いいえ"png"または"jpeg"。既定値は"png"。

すべての解像度で生成画像1枚につき8クレジット。参照画像は無料です。

Seedream 5.0 Flash

Seedream 5.0 Lite

2Kまたは4K、15種類のアスペクト比に対応した高速なテキストから画像生成と画像から画像編集。モデル名:seedream-v5.0-lite。

テキストから画像

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-v5.0-lite",
    "inputs": {
      "prompt": "A cinematic product photograph, soft studio light",
      "resolution": "2k",
      "aspectRatio": "1:1"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から画像(編集)

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-v5.0-lite",
    "inputs": {
      "prompt": "Restyle the references as a premium fashion campaign",
      "urls": ["https://example.com/reference.png"],
      "resolution": "4k",
      "aspectRatio": "3:4"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

Seedream 5.0 Lite パラメータ

パラメータ型必須説明
promptstringはい画像の説明、または編集内容。
urlsstring[]いいえ公開HTTPSの参照画像URL(1〜10枚)。テキストから画像では省略。
resolutionstringいいえ"2k" または "4k"。デフォルト:"2k"。
aspectRatiostringいいえ"1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", または "21:9".

Seedream 5.0 Pro

1Kまたは2Kでの高忠実度な生成・編集。モデル名:seedream-v5.0-pro。

テキストから画像

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-v5.0-pro",
    "inputs": {
      "prompt": "Editorial portrait with dramatic rim lighting",
      "resolution": "2k",
      "aspectRatio": "3:4"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

画像から画像(編集)

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedream-v5.0-pro",
    "inputs": {
      "prompt": "Turn the reference into a cinematic poster",
      "urls": ["https://example.com/reference.png"],
      "resolution": "2k",
      "aspectRatio": "1:2"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

Seedream 5.0 Pro パラメータ

パラメータ型必須説明
promptstringはい画像の説明、または編集内容。
urlsstring[]いいえ公開HTTPSの参照画像URL(1〜10枚)。テキストから画像では省略。
resolutionstringいいえ"1k" または "2k"。デフォルト:"1k"。4kには対応していません。
aspectRatiostringいいえ"1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", または "21:9".

Qwen Image 2.1 Pro / Turbo

qwen-image-2.1-proまたはqwen-image-2.1-turboを使用できます。どちらも同じエンドポイントでテキストから画像および画像編集に対応し、1タスクにつき1枚の画像を出力します。

Pro:画像1枚あたり13クレジット。Turbo:画像1枚あたり5クレジット。1Kと2Kの料金は同じです。料金には有効な画像プロモーションが適用されます。

SEEGEN_API_KEYにAPIキーを設定してください。example.comの画像URLを、一般公開されている独自のHTTP(S)画像URLに置き換えてください。作成後はtaskIdを保存し、queryTaskまたはWebhook Callbackを使用して最終結果を受け取ってください。作成時に返されるのは完成した結果ではなく、非同期タスクです。

テキストから画像

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-image-2.1-pro",
  "inputs": {
    "prompt": "A blue glass cube on a white table",
    "resolution": "1k",
    "aspectRatio": "1:1"
  }
}'

画像から画像

curl -X POST https://seegen.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $SEEGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-image-2.1-pro",
  "inputs": {
    "prompt": "Restyle the reference image as a watercolor painting",
    "resolution": "1k",
    "aspectRatio": "1:1",
    "urls": [
      "https://example.com/reference.png"
    ]
  }
}'

パラメータ

パラメータ型必須説明
promptstringはいprompt: 必須。画像または参照画像への変更内容を説明します。
resolution"1k" | "2k"いいえresolution: 1k(デフォルト)または2k。aspectRatio: 1:1(デフォルト)、16:9、9:16、4:3、3:4、3:2、2:3、4:5、5:4、または21:9。解像度はピクセル領域の段階を表すため、長方形出力の各辺は変動します。
aspectRatiostringいいえresolution: 1k(デフォルト)または2k。aspectRatio: 1:1(デフォルト)、16:9、9:16、4:3、3:4、3:2、2:3、4:5、5:4、または21:9。解像度はピクセル領域の段階を表すため、長方形出力の各辺は変動します。
urlsstring[]いいえurls:任意の最大10件の公開HTTP(S)画像URL配列。各画像は最大10MB、各辺1〜8000ピクセル、アスペクト比1:10〜10:1である必要があります。対応形式:JPEG、PNG、BMP、TIFF、WebP、GIF。ブラウザからのファイルアップロードはJPEG、PNG、BMP、WebP、GIFに対応しています。TIFFはブラウザのプレビューで表示されない場合があるため、公開URLを使用してください。

必要に応じて、プロンプトで透明な背景を指定してください。PNGの透明度は保持されます。複数の出力を作成するには、別々のタスクを送信してください。Playgroundでは1〜4タスクをまとめて送信できます。

Qwen Image 2.1を試すQwen Image 2.1 Turbo

動画アップスケーラー

タスクの作成

POST /api/v1/upscale/create

# source.url accepts ANY https video URL — your own CDN, OR a file you first
# uploaded to us via /api/v1/assets/upload (pass the r2Url it returns). No need
# to declare which: we detect it. External URLs are validated; our own are trusted.
curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": { "type": "url", "url": "https://your-cdn.com/video.mp4" },
    "targetResolution": "2k",
    "callBackUrl": "https://your-server.com/webhook"
  }' \
  https://seegen.ai/api/v1/upscale/create
パラメータ型必須説明
source.typestringはい任意のソースには "url" を使用します("uploadId" は後方互換性のために残されているレガシーなエイリアスです)。
source.urlstringいいえtype="url" の場合。任意のhttps動画URL — 自前のCDN、または /api/v1/assets/upload が返す r2Url。外部URLの場合、httpおよびプライベート/内部IPは拒否されます(SSRF対策)。自社の素材ホスト上のURLはこのチェックをスキップします。
source.r2Urlstringいいえレガシー — type="uploadId" の場合のみ使用(後方互換)。新規実装では type="url" を使用してください。
targetResolutionstringはい"720p"、"1080p"、"2k"、または "4k"。元の解像度より高い値である必要があります。
callBackUrlstringいいえ終端状態(完了または失敗)に達した際に一度だけ呼び出されるWebhook URL。

作成のレスポンス

{
  "taskId": "n770mo4sh6rpi690ff3gwymx",
  "orderId": "ord_2026...",
  "status": "validating"
}

ステータスの照会

GET /api/v1/upscale/query?taskId=...

ステータスは validating → processing → completed / failed の順に進行します。

curl -H "Authorization: Bearer $API_KEY" \
  "https://seegen.ai/api/v1/upscale/query?taskId=n770mo4sh6rpi690ff3gwymx"

完了時のレスポンス

{
  "taskId": "n770mo4sh6rpi690ff3gwymx",
  "status": "completed",
  "targetResolution": "2k",
  "creditsConsumed": 900,
  "result": {
    "url": "https://static.seegen.ai/standalone-upscale/results/...mp4",
    "probedDurationSeconds": 30,
    "probedSourceResolution": "1280x720"
  },
  "error": null,
  "createdAt": "2026-04-29T01:23:45.000Z",
  "finishedAt": "2026-04-29T01:35:01.000Z"
}

失敗時のレスポンス

{
  "taskId": "n770mo4sh6rpi690ff3gwymx",
  "status": "failed",
  "creditsConsumed": null,
  "result": null,
  "error": {
    "code": "SOURCE_RESOLUTION_TOO_HIGH",
    "message": "Source 3840x2160 is not below target 4k"
  }
}

制限

  • ソース:https URL、または以前にアップロードしたR2 URL
  • 長さは最大600秒(5秒未満のクリップは5秒として課金)
  • ファイルサイズ:200MB以下
  • 形式:MP4 / MOV / WebM
  • ソースの解像度はターゲットより低い必要があります

料金

  • 720P:17クレジット/秒(5s = 85、30s = 510)
  • 1080P:25クレジット/秒(5s = 125、30s = 750)
  • 2K:38クレジット/秒(5s = 190、30s = 1140)
  • 4K:50クレジット/秒(5s = 250、30s = 1500)
  • 5秒が最小単位。失敗した場合はクレジットが自動的に返金されます

エラーコード

対処可能な一般的なエラーです。それ以外の失敗は、内容が自明な message フィールドを返します — コードがこれらのいずれかだと決めつける前に、まずそちらを確認してください。

コード意味
INVALID_URLURLの形式が不正、またはhttpsではありません
URL_NOT_REACHABLEURLを取得できませんでした — 公開されていてアクセス可能か確認してください
UNSUPPORTED_MEDIA_TYPEファイルが動画でない、またはMP4 / MOV / WebM形式ではありません
FILE_TOO_LARGEソースが200MBを超えています
DURATION_EXCEEDS_LIMITソースが600秒を超えています
SOURCE_RESOLUTION_TOO_HIGHソースがすでにターゲット以上の解像度です — より高いターゲットを選択してください
INSUFFICIENT_CREDITSクレジットが不足しています — チャージしてから再試行してください
ACCOUNT_FROZENアカウントはクレジットを消費できません — サポートにお問い合わせください

Webhookコールバック

ポーリングの代わりに、callBackUrl を指定することで、タスクが完了または失敗した際に結果を自動的に受け取ることができます。

curl -X POST \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sd2",
    "callBackUrl": "https://your-server.com/webhook/callback",
    "inputs": {
      "prompt": "A cat playing piano",
      "duration": "5s"
    }
  }' \
  https://seegen.ai/api/v1/jobs/createTask

コールバックのペイロード

タスクが終了すると、queryTaskのレスポンスと同じ形式でお客様のURLにPOSTリクエストを送信します:

{
  "taskId": "task_abc123",
  "orderId": "order_abc123",
  "model": "sd2",
  "status": "COMPLETED",
  "creditsUsed": 200,
  "output": [
    {
      "url": "https://static.seegen.ai/videos/result.mp4",
      "width": 1280,
      "height": 720
    }
  ],
  "error": null,
  "createTime": 1711234567890,
  "completeTime": 1711234612345
}

リトライポリシー: 初回試行後、2xx以外のレスポンスまたはネットワークエラーが発生した場合、1秒後、5秒後、30秒後に最大3回リトライします。taskIdに基づき、繰り返し行われるコールバックを冪等に処理してください。コールバックが届かない場合は、フォールバックとしてqueryTaskを使用してください。リトライ回数を使い切った後の配信は保証されません。

レスポンス形式

createTaskのレスポンス

{ "taskId": "task_abc123", "orderId": "order_abc123" }

queryTaskのレスポンス

{
  "taskId": "task_abc123",
  "orderId": "order_abc123",
  "model": "sd2",
  "status": "COMPLETED",
  "creditsUsed": 200,
  "output": [
    {
      "url": "https://static.seegen.ai/videos/result.mp4",
      "width": 1280,
      "height": 720
    }
  ],
  "error": null,
  "createTime": 1711234567890,
  "completeTime": 1711234612345
}

creditsのレスポンス

{
  "credits": 5000,
  "availableCredits": 4800
}

エラー処理

ステータスコード意味対処方法
400不正なパラメータエラーメッセージを確認し、リクエストを修正してください
401APIキーが無効または未指定Authorization ヘッダーの形式を確認してください
402クレジット不足Creditsを開いてクレジットを購入するか自動チャージを有効にしてから、リクエストを再試行してください
403アクセス拒否自分自身のタスクのみ照会できます
404タスクが見つかりませんtaskId が正しいか確認してください
500内部サーバーエラー再試行して作成リクエストを送信する前に、エラーとタスク履歴を確認してください。応答が失われても、タスクが作成されている可能性があります。

送信前検証(コード付きHTTP 400)

SeedanceとWan 3.0のリクエストは、クレジット消費前にSeeGenの製品ルールに照らして検証されます。失敗時はcreateTaskがHTTP 400と{ "message": "...", "code": "..." }を返し、Wanのエラーにはpathが含まれる場合もあります。タスクは作成されず、課金もされません。

パラメータ型必須説明
EMPTY_CONTENTcodeいいえプロンプトも参照画像/動画/音声もありません。
AUDIO_ONLY_NOT_SUPPORTEDcodeいいえsd2 / sd2-fast / sd2-mini で音声のみが参照になっています。画像または動画を追加するか、sd2.5(音声のみ対応)を使用してください。
UNSUPPORTED_MODELcodeいいえモデルエイリアスはサポートされていません。Wan 3.0では、正確に"wan3.0-video-prime"または"wan3.0-video"を使用してください。
UNSUPPORTED_RESOLUTIONcodeいいえ選択した出力ティアは利用できません。Wan 3.0 のローンチ時の対応はネイティブ 480P / 720P / 1080P のみで、2K/4K と upscaleResolution は拒否されます。
DURATION_OUT_OF_RANGEcodeいいえduration はモデルの範囲内の整数ではありません(Wan 3.0 は「2s」~「30s」、sd2 family は「4s」~「15s」、sd2.5 は「4s」~「30s」)。Wan のスマート期間(-1)は公開されていません。
INVALID_MEDIA_COMBINATIONcodeいいえメディアが選択したモードに適合していません(キーフレーム数の誤り、text-to-video でのメディア指定、multi-reference でのメディア未指定、キーフレーム入力とリファレンス入力の混在など)。
EDIT_SOURCE_VIDEO_REQUIRED / EXTEND_SOURCE_VIDEO_REQUIREDcodeいいえvideoUrls に動画がない状態で mode "edit" / "extend" がリクエストされました。
EDIT_SOURCE_DURATION_INVALIDcodeいいえsd2.5の動画編集:リクエスト内の動画が4s未満または30sを超えています(ARKは編集タスクのすべての動画に4–30sを適用します)。
TOO_MANY_REFERENCEScodeいいえモデルが受け付ける数を超えるリファレンス画像 / 動画 / 音声クリップが指定されています(Wan 3.0 は 10 / 5 / 5、sd2 family は 9 / 3 / 3、sd2.5 は 30 / 10 / 10。動画の追加は 3 本以下)。
REFERENCE_VIDEO_DURATION_INVALIDcodeいいえリファレンス動画がクリップ単位の上限を超えているか、リファレンス動画の合計入力がモデルの上限を超えているか、入力と出力の組み合わせが無効です。Wan 3.0 の場合、各クリップは 1~15s、入力合計は 15s 以下、入力と要求された出力の合計は 30s 以下です(15+15 は有効、15+16 は拒否)。
REFERENCE_AUDIO_DURATION_INVALIDcodeいいえ既知のWan 3.0参照音声時間が1~15秒の範囲外、または参照音声の合計入力が15秒を超えています。
REFERENCE_IMAGE_INVALIDcodeいいえWan 3.0画像が見つからない、別ユーザーの所有物、メディア種別が異なる、または既知のサイズ・形式・寸法・縦横比・非透過要件に違反しています。
REFERENCE_VIDEO_INVALIDcodeいいえWan 3.0用にアップロードされた動画が、サイズ、MP4/MOV形式、寸法、またはアスペクト比の要件を満たしていません。
REFERENCE_AUDIO_INVALIDcodeいいえWan 3.0用にアップロードされた音声ファイルが、サイズまたはWAV/MP3形式の要件を満たしていません。
ASSET_NOT_FOUND / EXTERNAL_URL / READ_TIMEOUT / READ_FAILEDcodeいいえvideoUrls のエントリが、アップロード済みの素材のいずれにも解決できなかった、またはその長さを読み取れませんでした。

実装例

完全なワークフロー:素材をアップロードし、審査を待ってから、承認された素材でタスクを作成し、結果をポーリングします。

const API_KEY = process.env.API_KEY;
const BASE = "https://seegen.ai/api/v1";
const headers = {
  "Authorization": `Bearer ${API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Upload asset and wait for review
// (To upload a LOCAL file instead of a URL, POST multipart/form-data with a "file"
//  field — no Content-Type header, no "type" — see the Upload Asset section above.)
async function uploadAndWaitForAsset(url, type = "IMAGE") {
  const res = await fetch(`${BASE}/assets/upload`, {
    method: "POST",
    headers,
    body: JSON.stringify({ url, type }),
    signal: AbortSignal.timeout(120_000),
  });
  if (!res.ok) throw new Error(`Upload failed: ${(await res.json()).message}`);
  const asset = await res.json();
  console.log(`Asset uploaded: ${asset.assetId}, status: ${asset.status}`);

  // Poll until review completes
  const deadline = Date.now() + 15 * 60_000;
  while (true) {
    const statusRes = await fetch(
      `${BASE}/assets/status?assetId=${asset.assetId}`,
      { headers, signal: AbortSignal.timeout(30_000) }
    );
    if (!statusRes.ok) throw new Error(`Asset query failed (${statusRes.status}): ${await statusRes.text()}`);
    const status = await statusRes.json();
    if (status.status === "ACTIVE") {
      console.log(`Asset approved: asset://${status.volcAssetId}`);
      return status.volcAssetId;
    }
    if (status.status === "FAILED") {
      throw new Error(`Asset review failed: ${status.failReason}`);
    }
    if (Date.now() >= deadline) throw new Error(`Review pending: query assetId=${asset.assetId} later`);
    await new Promise((r) => setTimeout(r, 3000));
  }
}

// 2. Create a task
async function createTask(inputs, callBackUrl) {
  const res = await fetch(`${BASE}/jobs/createTask`, {
    method: "POST",
    headers,
    body: JSON.stringify({
      model: "sd2",
      inputs,
      ...(callBackUrl && { callBackUrl }),
    }),
    signal: AbortSignal.timeout(120_000),
  });
  if (!res.ok) throw new Error(`[${res.status}] ${(await res.json()).message}`);
  return res.json();
}

// 3. Poll until done
async function waitForResult(taskId, timeoutMs = 900000) {
  const start = Date.now();
  while (Date.now() - start < timeoutMs) {
    const res = await fetch(
      `${BASE}/jobs/queryTask?taskId=${taskId}`,
      { headers, signal: AbortSignal.timeout(30_000) }
    );
    if (!res.ok) throw new Error(`Query failed for ${taskId} (${res.status}): ${await res.text()}`);
    const result = await res.json();
    if (result.status === "COMPLETED") return result;
    if (result.status === "FAILED") throw new Error(result.error);
    await new Promise((r) => setTimeout(r, 5000));
  }
  throw new Error(`Still processing: query taskId=${taskId} later`);
}

// Full workflow: upload → review → generate → result
async function main() {
  // Upload image and wait for review
  const volcAssetId = await uploadAndWaitForAsset(
    "https://example.com/photo.jpg", "IMAGE"
  );

  // Create task with approved asset
  const { taskId } = await createTask({
    urls: [`asset://${volcAssetId}`],
    prompt: "The person slowly looks up and smiles",
    duration: "5s",
  });
  console.log(`Task: ${taskId}`);

  // Wait for video
  const result = await waitForResult(taskId);
  console.log(`Video: ${result.output[0].url}`);
}

main().catch(console.error);

サポートが必要ですか? Discord に参加するか、お問い合わせ ください