コンテンツへスキップ

FILM

統合

モデルID film
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/film?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

1 回の実行につき最大 $4.68 実際の使用量に応じて課金され、残額は返金されます このページで実行

APIキーを取得
Google 画像から動画 #interpolation

開始画像と終了画像の間を補間し、中間フレームを画像または動画として出力します

Google · 動画

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須 start_image_url
ファイルをドロップ、または

補間の初期画像(ペアの1枚目)。URLで指定します。

•必須 end_image_url
ファイルをドロップ、または

補間の最終画像(ペアの2枚目)。URLで指定します。

詳細設定 output_type · image_format · video_quality · video_write_mode · num_frames · fps · include_start · include_end · enable_safety_checker
output_type デフォルト images

動画と個別の画像の出力選択。

image_format デフォルト jpeg

output_type が 'images' の場合のみ使用する画像形式の選択。

video_quality デフォルト high

output_type が 'video' の場合のみ使用する動画品質の選択。

video_write_mode デフォルト balanced

output_type が 'video' の場合のみ使用する動画書き込みモード。

デフォルト 1

指定した画像間で生成する中間フレーム数。

デフォルト 8

動画のフレームレート設定。1秒あたりのフレーム数で表し、output_type が 'video' の場合のみ使用します。

POST /run/film?wait=20 見積もり → $4.68
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/film?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

FILMについて

`start_image_url`と`end_image_url`の2枚の画像間に中間フレームを生成します。`num_frames`で生成数を1から64に設定します。`output_type`はimagesまたはvideoです。動画では`fps`(1から60)、`video_quality`、`video_write_mode`が適用されます。`include_start`と`include_end`で元画像を含められます。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
start_image_url必須 image
型url · image
補間の初期画像(ペアの1枚目)。URLで指定します。
end_image_url必須 end_image
型url · image
補間の最終画像(ペアの2枚目)。URLで指定します。
output_type任意
型enum
デフォルトimages
imagesvideo
動画と個別の画像の出力選択。
image_format任意
型enum
デフォルトjpeg
pngjpeg
output_type が 'images' の場合のみ使用する画像形式の選択。
video_quality任意
型enum
デフォルトhigh
lowmediumhighmaximum
output_type が 'video' の場合のみ使用する動画品質の選択。
video_write_mode任意
型enum
デフォルトbalanced
fastbalancedsmall
output_type が 'video' の場合のみ使用する動画書き込みモード。
num_frames任意
型integer
デフォルト1
1 – 64
指定した画像間で生成する中間フレーム数。
include_start任意
型boolean
デフォルトfalse
出力に開始画像を含めるかどうかを制御します。
include_end任意
型boolean
デフォルトfalse
出力に終了画像を含めるかどうかを制御します。
fps任意
型integer
デフォルト8
1 – 60
動画のフレームレート設定。1秒あたりのフレーム数で表し、output_type が 'video' の場合のみ使用します。
enable_safety_checker任意
型boolean
デフォルトtrue
呼び出し元に権限がある場合、false に設定するとスクリーニングを緩和できます。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "film",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 4680,
    "usd": "4.68",
    "charged": 4680,
    "refunded": 0
  },
  "input": {
    "start_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
        "content_type": "video/mp4",
        "file_name": "0-output.mp4",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
images
array of object {url, content_type, file_name, file_size, width, height}生成されたフレームを含む個別の画像。
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames} | nulloutput_type が 'video' に設定されている場合に返される生成動画ファイル。

その他のモデル: 画像から動画

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/film.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt