Image · OpenAI

GPT-4o Image

Native image generation inside GPT-4o — generate and edit images within the conversation.

Operational · 1 endpoints · desde $0.060
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/gpt-4o-image -g
The -g flag installs globally so every project picks it up.
Or paste this prompt to your AI agent:
Install the GPT-4o Image skill for me:

1. Clone https://github.com/runapi-ai/gpt-4o-image
2. Copy the skills/gpt-4o-image/ directory into your
   user-level skills directory (e.g. ~/.claude/skills/
   for Claude Code, ~/.codex/skills/ for Codex).
3. Verify that SKILL.md is present.
4. Confirm the install path when done.
RESUMEN

GPT-4o Image enables native image generation directly within GPT-4o conversations, combining language understanding with visual creation in a single model. It interprets conversational context to produce contextually accurate images.

  • Installable agent skill
  • Unified API key
  • SDK examples included
  • Las generaciones fallidas no se cobran
PRECIOS

PRECIOS

Las generaciones fallidas no se cobran
Text to image
$0.06-$0.08 / image
2 images $0.07
4 images $0.08
FICHA TÉCNICA

FICHA TÉCNICA

Model ID gpt-4o-image
Proveedor OpenAI
Modalidad image
Task type asynchronous
Facturación call
Endpoint /api/v1/gpt_4o_image/text_to_image
Commercial Yes
Status Operational
AGENT USAGE

Use this model from your agent

Prompt + SDK example
# User prompt to the agent
"Based on our conversation about the brand redesign, generate a mockup of the new homepage hero section."
// Code generated by the agent via @runapi.ai/gpt-4o-image
import { Gpt4oImageClient } from '@runapi.ai/gpt-4o-image';

const client = new Gpt4oImageClient();
const result = await client.textToImage.run({
  model: 'gpt-4o-image',
  prompt: 'Based on our conversation about the brand redesign, generate a mockup of the new homepage hero section.',
});
@runapi.ai/gpt-4o-image npm
CÓMO FUNCIONA

How to call this model

01

Install the skill

Add the model skill to your agent or install the SDK package.

02

Authenticate once

Use your RunAPI key for every supported model.

03

Send a request

Use the unified schema for the endpoint you need.

04

Receive output

Poll by task ID or handle the callback when the generation completes.

SDK QUICKSTART

SDK quickstart

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": "Based on our conversation about the brand redesign, generate a mockup of the new homepage hero section."
}'
import { Gpt4oImageClient } from "@runapi.ai/gpt-4o-image";

const client = new Gpt4oImageClient();
const result = await client.textToImage.run({
    model: "gpt-4o-image",
    prompt: "Based on our conversation about the brand redesign, generate a mockup of the new homepage hero section.",
});
require "runapi/gpt_4o_image"

client = RunApi::Gpt4oImage::Client.new
result = client.text_to_image.run(
    model: "gpt-4o-image",
    prompt: "Based on our conversation about the brand redesign, generate a mockup of the new homepage hero section."
)
@runapi.ai/gpt-4o-image v1
CONTEXTO

Where GPT-4o Image fits

GPT-4o Image integrates visual creation natively into GPT-4o, combining reasoning with generation. Through RunAPI, it shares the same API access and billing as all OpenAI models.

Provider
OpenAI
Modality
Image
POR QUÉ RUNAPI

Why use GPT-4o Image through RunAPI

One API key

Use the same credentials across models and providers.

Agent-ready

Installable skills include docs and schema for tool calls.

Predictable billing

Usage-based pricing is visible before you call.

FAQ

Frequently asked questions

How do I call this model?

Use the RunAPI SDK, CLI, or REST endpoint shown on this page.

Do failed generations cost money?

Las generaciones fallidas no se cobran

Can agents use it directly?

Yes. Install the model skill and your agent gets the docs, schema, and examples.

EMPEZAR

Start building with GPT-4o Image.

Endpoints
  • text_to_image
Category
Proveedor
Docs