imagen-4-fast API
Google / Imagen 4
RunAPI から Imagen 4 ファミリーの imagen-4-fast を利用できます。従量課金、サブスクリプション不要、失敗した生成は課金されません。
稼働中
·
image
·
商用利用対応
curl -X POST https://runapi.ai/api/v1/imagen_4/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "imagen-4-fast",
"prompt": "ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。"
}'
import { Imagen4Client } from "@runapi.ai/imagen-4";
const client = new Imagen4Client();
const result = await client.textToImage.run({
model: "imagen-4-fast",
prompt: "ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。",
});
<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\Imagen4\Imagen4Client;
$client = new Imagen4Client();
$result = $client->textToImage->run([
'model' => 'imagen-4-fast',
'prompt' => 'ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。',
]);
require "runapi/imagen_4"
client = RunApi::Imagen4::Client.new
result = client.text_to_image.run(
model: "imagen-4-fast",
prompt: "ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。"
)
npx skills add runapi-ai/imagen-4 -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
バリアント切替
概要
Imagen 4 imagen-4-fast は同じ RunAPI 認証、model skill ワークフロー、従量料金で利用できます。
- 統合 API key
- Model skill セットアップ
- モデル ID リファレンス
- 失敗した生成は課金されません
料金
料金
失敗した生成は課金されません
Text to image
$0.04
/ image
仕様
仕様
| モデル ID | imagen-4-fast |
| プロバイダー | |
| モダリティ | image |
| タスク種別 | asynchronous |
| 課金 | call |
| Endpoint | /api/v1/imagen_4/text_to_image |
| 商用利用 | はい |
| カタログステータス | 稼働中 |
MODELS
モデルスキル — imagen-4-fast
スキルを1回インストールし、構築中にこのページのバリアントIDを使用してください。
# Install the model skill for app development workflows
npx skills add runapi-ai/imagen-4 -g
Or use this setup request in your coding tool:
Install the Imagen 4 skill for this app: 1. Add runapi-ai/imagen-4 with the skills installer. 2. Load SKILL.md in this workspace. 3. Use its docs, schemas, pricing notes, and setup steps when adding model features. 4. Confirm the install path when done.
仕組み
imagen-4-fast の使い方
01
モデルを選ぶ
アプリのワークフローに合うモデルとバリアントを選びます。
02
モデル ID を渡す
リクエスト body にこのバリアント ID を指定します。
03
タスクを実行
リクエストを送信し、返された task ID を保存します。
04
出力を取得
タスク完了時にポーリングまたは callback で結果を受け取ります。
違い
imagen-4-fast の比較
VS IMAGEN-4
〜2.7秒生成、高速な反復とドラフト
品質と速度のバランス、推奨デフォルト
VS IMAGEN-4-PRO-REMIX-IMAGE
〜2.7秒生成、高速な反復とドラフト
プロンプトガイドのリミックスバリアント、ソース画像からスタイル出力
VS IMAGEN-4-ULTRA
〜2.7秒生成、高速な反復とドラフト
最高のフォトリアリズムとプロンプト追従性、ブランド/マーケティンググレード
ユースケース
このバリアントの用途
画像生成
テキスト prompt からビジュアルアセットを作成します。
編集
prompt に沿って既存画像を変換します。
バッチ制作
SDK で再現可能な生成を行います。
FAQ
imagen-4-fast に関するよくある質問
imagen-4-fast はどう選択しますか?
quickstart に表示されるモデル ID を渡してください。
料金は従量課金ですか?
はい。呼び出しまたは単位ごとの従量課金です。
今すぐ開始