Image · Google

Imagen 4 API

フォトリアリスティックなテキスト→画像、正確なタイポグラフィ、幅広いスタイル、最大2K解像度向けにImagen 4 APIにアクセスできます。

稼働中 · 4 variants · から $0.040
runapi.ai
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-ultra",
  "prompt": "ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。"
}'
import { Imagen4Client } from "@runapi.ai/imagen-4";

const client = new Imagen4Client();
const result = await client.textToImage.run({
    model: "imagen-4-ultra",
    prompt: "ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Imagen4\Imagen4Client;

$client = new Imagen4Client();
$result = $client->textToImage->run([
        'model' => 'imagen-4-ultra',
        'prompt' => 'ベージュの石の表面にマットブラックの水ボトルを置いた商品ヒーロー画像を生成してください。ソフトなサイドライト、4Kで。',
]);
require "runapi/imagen_4"

client = RunApi::Imagen4::Client.new
result = client.text_to_image.run(
    model: "imagen-4-ultra",
    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
@runapi.ai/imagen-4 v1
概要

Imagen 4はGoogleのフォトリアリスティック画像生成モデルで、強力なタイポグラフィレンダリングと最大2K解像度をサポートしています。正確な色とライティングで詳細でリアルな画像を生成します。

  • 品質とレイテンシ目標に合わせたモデルバリアント
  • 統合 API key
  • Model skill に docs、schema、セットアップメモを同梱
  • 失敗した生成は課金されません
バリアント

バリアント

Variant Billing From
imagen-4 call $0.080 見る →
imagen-4-fast call $0.040 見る →
imagen-4-pro-remix-image call $0.180 見る →
imagen-4-ultra call $0.120 見る →
MODELS

アプリ開発用に Imagen 4 skill をインストール

モデル docs、schema、料金メモ、セットアップ手順をコード作業環境に読み込みます。

# Install the model skill for app development workflows
npx skills add runapi-ai/imagen-4 -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
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.
仕組み

この model skill で構築する方法

01

モデルを選ぶ

出力タイプ、品質基準、レイテンシ目標に合うモデルとバリアントを選びます。

02

一度だけ認証

対応するすべてのモデルに RunAPI key を使います。

03

skill をインストール

機能実装の前に model skill をコード作業環境へ追加します。

04

出力を受け取る

task ID でポーリングするか、生成完了時の callback を処理します。

背景

Imagen 4 の位置づけ

Imagen 4はGoogleの最新テキスト→画像モデルで、幅広いスタイルサポートでフォトリアリスティックな結果を提供します。RunAPI経由では、すべてのImagen 4バリアント(standard、fast、ultra、pro)が1つのAPIキーを共有します。

Provider
Google
Modality
Image
RUNAPI を選ぶ理由

RunAPI 経由で Imagen 4 を使う理由

1つの API key

モデルやプロバイダーをまたいで同じ認証情報を使えます。

Skill-ready

model skill に schema、セットアップメモ、料金コンテキスト、モデル ID が含まれます。

予測しやすい請求

呼び出し前に従量料金を確認できます。

FAQ

よくある質問

このモデルはどう呼び出しますか?

model skill をインストールし、RunAPI key とセットアップメモに従ってください。

失敗した生成は課金されますか?

失敗した生成は課金されません

アプリケーションから呼び出せますか?

はい。コード作業環境に model skill をインストールし、モデル機能を追加するときに利用してください。

今すぐ開始

Imagen 4 で構築を開始。