CheaperGen

LTX-2.5 APIドキュメント

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

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

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

Add LTX-2.5 (CheaperGen endpoint lightricks/ltx-2.5/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

LTX-2.5 テキストから動画を生成 API

POST/api/v1/run/lightricks/ltx-2.5/text-to-video

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

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
resolutionstring (enum)1080p(1920×1080)または720p(1280×720)、横向き。
値:720p · 1080p
デフォルト:1080p
はい
durationinteger生成クリップの長さ(1〜8秒)。秒単位で課金されます。
範囲:1~8s
デフォルト:6
はい
generate_audioboolean映像と一緒にサウンドトラックを生成します。音の内容をプロンプトに書いてください。追加料金はありません。
デフォルト:true
いいえ
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled. Content our Acceptable Use Policy prohibits stays blocked either way.
デフォルト:true
いいえ
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/lightricks/ltx-2.5/text-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "嵐が窓を打つ中、灯台守がランタンを手に螺旋階段を上る。雷鳴と雨音。",
    "resolution": "1080p",
    "duration": 6
  }),
}).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": "lightricks/ltx-2.5",
  "endpoint": "lightricks/ltx-2.5/text-to-video",
  "mode": "text-to-video",
  "status": "queued",
  "input": {
    "prompt": "嵐が窓を打つ中、灯台守がランタンを手に螺旋階段を上る。雷鳴と雨音。",
    "resolution": "1080p",
    "duration": 6
  },
  "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"
}

LTX-2.5 画像から動画を生成 API

POST/api/v1/run/lightricks/ltx-2.5/image-to-video

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

入力パラメーター

名前種類説明料金に影響
prompt必須stringショットを説明してください:被写体、動き、カメラワーク、照明、スタイル。いいえ
image_url必須string (URL)開始フレームに使う画像。JPG/PNG/WebP、URLまたはアップロード。いいえ
resolutionstring (enum)1080p(1920×1080)または720p(1280×720)、横向き。
値:720p · 1080p
デフォルト:1080p
はい
durationinteger生成クリップの長さ(1〜8秒)。秒単位で課金されます。
範囲:1~8s
デフォルト:6
はい
generate_audioboolean映像と一緒にサウンドトラックを生成します。音の内容をプロンプトに書いてください。追加料金はありません。
デフォルト:true
いいえ
seedinteger同じ結果を再現するには、seedと設定を同じにしてください。ランダムにする場合は空欄のままにします。いいえ
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled. Content our Acceptable Use Policy prohibits stays blocked either way.
デフォルト:true
いいえ
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/lightricks/ltx-2.5/image-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "光が移ろう中、カメラが前へ進み、場面が生き生きと動きます。",
    "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
    "resolution": "1080p",
    "duration": 6
  }),
}).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": "lightricks/ltx-2.5",
  "endpoint": "lightricks/ltx-2.5/image-to-video",
  "mode": "image-to-video",
  "status": "queued",
  "input": {
    "prompt": "光が移ろう中、カメラが前へ進み、場面が生き生きと動きます。",
    "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
    "resolution": "1080p",
    "duration": 6
  },
  "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 · エラー

LTX-2.5の料金

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

プラン公式価格CheaperGen
720p
16:9 · 24 fps
$0.09/s$0.0285/s
月額プランの場合: Pro $0.0279Max $0.0272
1080p
16:9 · 24 fps
$0.13/s$0.057/s
月額プランの場合: Pro $0.0557Max $0.0544

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

  • 公式価格:Lightricksのltx-2-5-fast公開価格(720pで1秒あたり$0.09、1080pで$0.13、docs.ltx.io/pricing)。価格確認日:2026年10月18日。