CheaperGen

Gemini Omni Flash APIドキュメント

コードからGemini Omni Flashを呼び出すために必要な情報をすべて掲載しています。ベースURLはhttps://cheapergen.com/api/v1です。まずプレイグラウンドでお試しください。

コーディングエージェントを使いますか?

これをClaude Code、Cursor、Codex、または任意のコーディングエージェントに貼り付けてください。プロジェクトにAPIを追加し、キーをCHEAPERGEN_API_KEYに保存して、支払いが発生する前に無料見積もりでテストします。

Add Gemini Omni Flash (CheaperGen endpoint google/gemini-omni-flash/text-to-video) to this project by following https://cheapergen.com/agents/integrate.md
エージェントが参照する情報

認証

ダッシュボード → APIキーでキーを作成し、Bearerトークンとして送信してください。キーはサーバー側で管理してください。

export CHEAPERGEN_API_KEY="cg_live_…"

# every request
Authorization: Bearer $CHEAPERGEN_API_KEY

Gemini Omni Flash テキストから動画を生成 API

POST/api/v1/run/google/gemini-omni-flash/text-to-video

非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
aspect_ratiostring (enum)横向きまたは縦向き。
値:16:9 · 9:16
デフォルト:16:9
はい
resolutionstring (enum)720p(1080pと4Kはまだ利用できません)。
値:720p
デフォルト:720p
はい
durationinteger (enum)動画の長さ:4、6、8、10秒。
値:4 · 6 · 8 · 10
デフォルト:8
はい
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
webhook_urlstring (URL)任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhookいいえ

リクエスト

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/google/gemini-omni-flash/text-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "煙の立ちこめる地下のクラブでジャズトリオが演奏。歌手がマイクに身を寄せ、観客が指を鳴らす。",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

レスポンス

{
  "id": "gen_8c2QmX1nq0k4",
  "object": "generation",
  "model": "google/gemini-omni-flash",
  "endpoint": "google/gemini-omni-flash/text-to-video",
  "mode": "text-to-video",
  "status": "queued",
  "input": {
    "prompt": "煙の立ちこめる地下のクラブでジャズトリオが演奏。歌手がマイクに身を寄せ、観客が指を鳴らす。",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  },
  "output": null,
  "error": null,
  "cost": {
    "amount_usd": 0.2255,
    "currency": "usd",
    "estimated": true,
    "official_usd": null,
    "list_price_source": "official",
    "list_price_label": "Official",
    "saved_usd": null
  },
  "source": "api",
  "started_at": null,
  "completed_at": null,
  "urls": {
    "get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
    "cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
  },
  "created_at": "2026-10-15T09:21:04Z"
}

Gemini Omni Flash 画像から動画を生成 API

POST/api/v1/run/google/gemini-omni-flash/image-to-video

非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
image_url必須string (URL)開始フレームに使う画像。JPG/PNG/WebP、URLまたはアップロード。いいえ
end_image_urlstring (URL)任意の終了フレーム。モデルが2つのフレームの間を動画にします。いいえ
aspect_ratiostring (enum)横向きまたは縦向き。
値:16:9 · 9:16
デフォルト:16:9
はい
resolutionstring (enum)720p(1080pと4Kはまだ利用できません)。
値:720p
デフォルト:720p
はい
durationinteger (enum)動画の長さ:4、6、8、10秒。
値:4 · 6 · 8 · 10
デフォルト:8
はい
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
webhook_urlstring (URL)任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhookいいえ

リクエスト

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/google/gemini-omni-flash/image-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "静止画が動き出す。湯気が立ち、料理人が振り返ってカメラに微笑みます。",
    "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

レスポンス

{
  "id": "gen_8c2QmX1nq0k4",
  "object": "generation",
  "model": "google/gemini-omni-flash",
  "endpoint": "google/gemini-omni-flash/image-to-video",
  "mode": "image-to-video",
  "status": "queued",
  "input": {
    "prompt": "静止画が動き出す。湯気が立ち、料理人が振り返ってカメラに微笑みます。",
    "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  },
  "output": null,
  "error": null,
  "cost": {
    "amount_usd": 0.2255,
    "currency": "usd",
    "estimated": true,
    "official_usd": null,
    "list_price_source": "official",
    "list_price_label": "Official",
    "saved_usd": null
  },
  "source": "api",
  "started_at": null,
  "completed_at": null,
  "urls": {
    "get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
    "cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
  },
  "created_at": "2026-10-15T09:21:04Z"
}

Gemini Omni Flash 参照素材から動画を生成 API

POST/api/v1/run/google/gemini-omni-flash/reference-to-video

非同期ジョブを送信すると、生成IDを含む202が返されます。GET /api/v1/generations/{id}をポーリングするか、webhook_urlを指定してください。詳細はジョブのライフサイクルをご覧ください。

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
reference_image_urls必須string[] (URLs)人物、商品、スタイル、シーン用の画像は最大6枚です。@Image1、@Image2…とプロンプト内で指定してください。
最大項目数:6
いいえ
aspect_ratiostring (enum)横向きまたは縦向き。
値:16:9 · 9:16
デフォルト:16:9
はい
resolutionstring (enum)720p(1080pと4Kはまだ利用できません)。
値:720p
デフォルト:720p
はい
durationinteger (enum)動画の長さ:4、6、8、10秒。
値:4 · 6 · 8 · 10
デフォルト:8
はい
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
webhook_urlstring (URL)任意。生成が完了すると、Webhookシークレットで署名してここにPOSTします。Webhookいいえ

リクエスト

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/google/gemini-omni-flash/reference-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "@Image1が@Image2の店に入り、@Image3のバッグを手に取ります。",
    "reference_image_urls": [
      "https://cdn.cheapergen.com/samples/reference-1.jpg",
      "https://cdn.cheapergen.com/samples/reference-2.jpg",
      "https://cdn.cheapergen.com/samples/reference-3.jpg"
    ],
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

レスポンス

{
  "id": "gen_8c2QmX1nq0k4",
  "object": "generation",
  "model": "google/gemini-omni-flash",
  "endpoint": "google/gemini-omni-flash/reference-to-video",
  "mode": "reference-to-video",
  "status": "queued",
  "input": {
    "prompt": "@Image1が@Image2の店に入り、@Image3のバッグを手に取ります。",
    "reference_image_urls": [
      "https://cdn.cheapergen.com/samples/reference-1.jpg",
      "https://cdn.cheapergen.com/samples/reference-2.jpg",
      "https://cdn.cheapergen.com/samples/reference-3.jpg"
    ],
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  },
  "output": null,
  "error": null,
  "cost": {
    "amount_usd": 0.2255,
    "currency": "usd",
    "estimated": true,
    "official_usd": null,
    "list_price_source": "official",
    "list_price_label": "Official",
    "saved_usd": null
  },
  "source": "api",
  "started_at": null,
  "completed_at": null,
  "urls": {
    "get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
    "cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
  },
  "created_at": "2026-10-15T09:21:04Z"
}

結果を取得する

生成処理は非同期です。statusがsucceeded、failed、またはcanceledになるまでポーリングしてください。送信時にwebhook_urlを指定する方法もあります。失敗した生成は自動返金されます。

curl https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4 \
  -H "Authorization: Bearer $CHEAPERGEN_API_KEY"

その他:ジョブのライフサイクル · Webhook · エラー

Gemini Omni Flashの料金

従量課金: 動画1秒あたりを使った分だけ支払えます。サブスクリプションは不要です。生成に失敗した場合は自動で返金されます。

プラン公式価格CheaperGen
720p · 4 s
音声付き
$0.1021/s$0.0927/s
月額プランの場合: Pro $0.0921Max $0.0915
720p · 8 s
音声付き
$0.1017/s$0.089/s
月額プランの場合: Pro $0.0873Max $0.0856

月額プラン多くのモデルが割引価格になります(各モデルの料金の下に表示)。従量課金も引き続き利用できます。Pro $499/月 · Max $4,999/月。

  • 公式価格:Gemini APIのgemini-omni-1.1-flash公開価格(動画出力100万トークンあたり$17.50:720pは毎秒5,792トークンで約$0.101、1080pは8,688トークンで約$0.152、4Kは17,376トークンで約$0.304。入力は100万トークンあたり$1.50、思考トークンは$9)。価格確認日:2026年10月18日。
  • 動画1本あたり、長さ(4、6、8、10秒)と解像度に応じて課金します。参照画像にはGoogleの料金に基づくわずかなトークン料金が加算されます。