Image · OpenAI

GPT-4o Image API

会話内でのネイティブな画像生成と編集向けにGPT-4o Image APIにアクセスできます。

稼働中 · 1 endpoints · から $0.060
runapi.ai
curl -X POST https://runapi.ai/api/v1/gpt_4o_image/text_to_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-4o-image",
  "prompt": "ブランドリデザインに関する会話に基づいて、新しいホームページヒーローセクションのモックアップを生成してください。"
}'
import { Gpt4oImageClient } from "@runapi.ai/gpt-4o-image";

const client = new Gpt4oImageClient();
const result = await client.textToImage.run({
    model: "gpt-4o-image",
    prompt: "ブランドリデザインに関する会話に基づいて、新しいホームページヒーローセクションのモックアップを生成してください。",
});
<?php

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

use RunApi\Gpt4oImage\Gpt4oImageClient;

$client = new Gpt4oImageClient();
$result = $client->textToImage->run([
        'model' => 'gpt-4o-image',
        'prompt' => 'ブランドリデザインに関する会話に基づいて、新しいホームページヒーローセクションのモックアップを生成してください。',
]);
require "runapi/gpt_4o_image"

client = RunApi::Gpt4oImage::Client.new
result = client.text_to_image.run(
    model: "gpt-4o-image",
    prompt: "ブランドリデザインに関する会話に基づいて、新しいホームページヒーローセクションのモックアップを生成してください。"
)
npx skills add runapi-ai/gpt-4o-image -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/gpt-4o-image v1
概要

GPT-4o ImageはGPT-4oの会話内でネイティブな画像生成を可能にし、言語理解と視覚的な作成を1つのモデルに組み合わせます。会話のコンテキストを解釈して、文脈に即した正確な画像を生成します。

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

料金

失敗した生成は課金されません
Text to image
$0.06-$0.08 / image
2 images $0.07
4 images $0.08
仕様

仕様

モデル ID gpt-4o-image
プロバイダー OpenAI
モダリティ image
タスク種別 asynchronous
課金 call
Endpoint /api/v1/gpt_4o_image/text_to_image
商用利用 はい
カタログステータス 稼働中
MODELS

アプリ開発用に GPT-4o Image skill をインストール

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

# Install the model skill for app development workflows
npx skills add runapi-ai/gpt-4o-image -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the GPT-4o Image skill for this app:

1. Add runapi-ai/gpt-4o-image 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 を処理します。

背景

GPT-4o Image の位置づけ

GPT-4o Imageは推論と生成を組み合わせて、視覚的な作成をGPT-4oにネイティブに統合します。RunAPI経由では、すべてのOpenAIモデルと同じAPIアクセスと課金を共有します。

Provider
OpenAI
Modality
Image
RUNAPI を選ぶ理由

RunAPI 経由で GPT-4o Image を使う理由

1つの API key

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

Skill-ready

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

予測しやすい請求

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

FAQ

よくある質問

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

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

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

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

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

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

今すぐ開始

GPT-4o Image で構築を開始。