Quick Answer

  • Use POST /v1/images/generations with model=gpt-image-2.
  • Supports prompt generation and reference_images URL inputs for guided generation.
  • Reference images must be URLs, so local files must be uploaded first instead of passing base64 directly.
  • The endpoint returns an async task id for later status polling.
  • Official public pricing is roughly $0.22 / $0.50 / $1.30 per image for 1K / 2K / 4K; ToAPIs currently shows $0.015 / $0.020 / $0.025 per image on the landing comparison, with final billing based on account pricing.
  • At the ToAPIs 1K listed rate of $0.015 per image, a $10 top-up is roughly 600+ additional 1K images; at the 4K listed rate of $0.025 per image, it is roughly 400 4K images.

Key Parameters

  • model | string | required | gpt-image-2 | - | Use gpt-image-2 as the exact model id.
  • prompt | string | required | - | - | Primary prompt for image generation or editing.
  • size | string | optional | 1:1 | 1K: 1:1 | 3:2 | 2:3; 2K: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 5:4 | 4:5 | 16:9 | 9:16 | 2:1 | 1:2 | 21:9 | 9:21; 4K: 4:3 | 3:4 | 16:9 | 9:16 | 2:1 | 1:2 | 21:9 | 9:21 | Output aspect ratio; supported values depend on the selected resolution tier.
  • resolution | string | optional | 1K | 1K | 2K | 4K | Output resolution tier; must match a supported size combination.
  • reference_images | string[] | optional | - | URL array | Reference image URL array. Local files must be uploaded first; no direct base64 references.
  • image_urls | string[] | optional | - | URL array (compat field) | Compatibility field; prefer reference_images for new integrations.
  • response_format | string | optional | url | url | b64_json | Response format; current ToAPIs docs recommend url.

Common Errors

  • 400 invalid_request_error: trigger=Missing required fields or invalid size-resolution combinations.; fix=Validate model, prompt, size, resolution, and response_format against docs.; retry=Retry only after correcting the payload.
  • 400 invalid_reference_images: trigger=Passing base64, local paths, or non-URL reference_images values.; fix=Upload the image first and pass the resulting URL in reference_images.; retry=Retry after fixing the reference image input.
  • 401 authentication_error: trigger=Missing Authorization header or invalid API key.; fix=Verify bearer token format and key scope.; retry=Retry after fixing authentication.
  • 429 rate_limit_exceeded: trigger=Request rate, concurrency, or current quota hits upstream rate limiting.; fix=Apply exponential backoff first, then review request rate, concurrency, and quota usage.; retry=Use 1s/2s/4s backoff with jitter; if it persists, reduce submission pressure.
OpenAI logo

GPT-Image-2

商用利用

ToAPIsのアカウント1つで、OpenAIの最新画像モデルを使い、息をのむような高品質な画像を生成できます。

モデルタイプ:
料金: 1K $0.015 / ; 2K $0.02 / ; 4K $0.025 /
1

画像を説明

参照画像

生成したい画像を説明してください。80 / 1200

詳細オプション

サンプルパラメータ

複数画像の生成は オンライン Playground または API

2

生成結果

サンプル結果

生成には時間がかかります。しばらくお待ちください。このページを離れても、[ タスクログ ] で生成した内容を直接確認できます。

リクエストをプレビュー

{
  "model": "gpt-image-2",
  "prompt": "プレミアムなファッションキャンペーン画像を作成:構造的なアイボリーのジャケットを着たモデル、柔らかいスタジオ照明、鮮明な生地のディテール、エディトリアルな構図。",
  "size": "4:5",
  "n": 1,
  "response_format": "b64_json",
  "metadata": {
    "resolution": "1K",
    "orientation": "portrait"
  }
}

2M+

生成画像数

8s

平均応答時間

99.9%

稼働率

API

本番環境対応

生成例

GPT-Image-2 の生成結果を見る

このモデルで生成
GPT-Image-2が生成したファッションキャンペーンのビジュアル

GPT-Image-2で8.2秒で生成

GPT-Image-2が生成した製品シーン

GPT-Image-2 #2

GPT-Image-2が生成したソーシャルクリエイティブ

GPT-Image-2 #3

透明な料金体系

ToAPIsと公式GPT-Image-2の料金比較

同じ画像モデル性能を維持しながら生成コストを削減。登録すれば無料クレジットも進呈します。

クレジットを追加

1K

ToAPIs

$0.015

93% 割引VS

公式価格

$0.22

2K

ToAPIs

$0.02

96% 割引VS

公式価格

$0.5

4K

ToAPIs

$0.025

98% 割引VS

公式価格

$1.3

価格はモデルページでの比較用に表示されており、変更される場合があります。実際の請求はアカウントの現在の価格が適用されます。

ToAPIs を選ぶ理由

なぜGPT-Image-2をToAPIs経由で使うのか?

GPT-Image-2の品質はそのままに、画像生成コストを抑えつつ、1つのAPIキーでより多くのモデルを利用できます。

画像単価がより安い

1K、2K、4K画像を、公式価格より低い表示価格で生成できます。

まずは無料クレジットで

新規ユーザーは10クレジットを受け取り、チャージ前にプロンプトをテストできます。

統一されたAPIアクセス

1つのToAPIsアカウントとAPIキーで、画像・動画・言語モデルにアクセスできます。

3ステップで生成を開始

まずページ内でテストし、同じモデルをそのまま本番のワークフローに組み込めます。

  1. 1

    プロンプトを試す

    Playgroundで画質・文字レンダリング・スタイルの適合性を確認できます。

  2. 2

    APIキーを作成

    登録後にDashboardを開き、GPT-Image-2リクエスト用のトークンを作成します。

  3. 3

    ワークフローに導入

    画像エンドポイントを呼び出し、非同期タスクのステータスをポーリングし、使用量の増加に応じてクレジットをチャージしてください。

画像生成チームのために設計

広告・ソーシャルクリエイティブ

キャンペーンコンセプト、サムネイル、ポスター、ローカライズされた画像バリエーションを制作できます。

製品ビジュアル

商品スタイルのショット、マーチャンダイジングシーン、参照画像ベースのバリエーションを生成できます。

開発者向けパイプライン

エージェント、CMSツール、バッチ処理のクリエイティブシステムに非同期画像生成を組み込めます。

よくある質問

GPT-Image-2料金に関するよくある質問

GPT-Image-2は無料で試せますか?

はい。ToAPIsの新規ユーザーは10クレジットを受け取り、チャージ前にGPT-Image-2をテストできます。

公式との比較価格は固定ですか?

このモデルページでは、わかりやすさのために固定の比較表を使用しています。ToAPIsの最終的な請求額は、アカウントの現在の価格に基づきます。

テスト後にAPIを利用できますか?

はい。DashboardでAPIキーを作成し、GPT-Image-2を画像生成ワークフローに組み込むことができます。

GPT-Image-2 API

ToAPIsで最初のGPT-Image-2画像を生成しよう

まずは無料クレジットで始めて出力を比較し、スケールする準備ができたらAPIキーを取得しましょう。

はじめての方へ。今すぐ登録して10クレジットを無料で受け取り、GPT-Image-2を試してみましょう!

リスクゼロでAI画像生成のパワーを体験できます。

登録して無料クレジットを受け取る