It looks like you may prefer a different language. Switch anytime.

Image OpenAI

GPT-4o Image API

Gebruik de GPT-4o Image API via RunAPI met een modelskill, uniforme auth en pay-as-you-go prijzen.

runapi.ai
curl -X POST https://runapi.ai/api/v1/gpt_4o_image/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_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.",
});
<?php

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

use RunApi\Gpt4oImage\Gpt4oImageClient;

$client = new Gpt4oImageClient();
$result = $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."
)
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
OVERVIEW

Over GPT-4o Image

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.

Provider
OpenAI
Modaliteit
Image
PRICING

Prijzen

Mislukte generaties worden niet in rekening gebracht
Text to image
$0.06-$0.24 / image
2 images $0.12
4 images $0.24
SPECIFICATIEBLAD

Technische details

Model-ID gpt-4o-image
Provider OpenAI
Modaliteit image
Taaktype asynchronous
Facturatie-eenheid call
API endpoint /api/v1/gpt_4o_image/text_to_image
Commerciële licentie Ja — inbegrepen via API
Catalogusstatus Operationeel
Agentintegratie

Gebruik GPT-4o Image vanuit een agent

HOE HET WERKT

Aan de slag met GPT-4o Image

  1. Kies het model

    Kies het model en de variant die passen bij je outputtype, kwaliteitslat en latencydoel.

  2. Configureren

    Stel je RunAPI-key in en installeer de modelskill in je codeworkspace.

  3. Bouwen

    Gebruik de skill-instructies om de modelfeature in je applicatie toe te voegen.

  4. Ontvangen

    Poll op task-ID, stream wanneer ondersteund of verwerk de webhook-callback.

CONTEXT

Wat is de GPT-4o Image API?

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
Alles bekijken →
Modaliteit
Image
Modellen bekijken →

Waarom de GPT-4o Image API via RunAPI gebruiken

Eén auth, elke provider

Met één RunAPI-sleutel ontgrendel je de hele catalogus. Geen aparte accounts, geen sleutelrotatie per integratie.

Uniforme prijzen & billing

Prijs per call in USD, maandelijks gefactureerd. Mislukte generaties worden niet in rekening gebracht.

Skill met schema's

Getypeerde schema's en setupnotities zitten in de modelskill, zodat implementatie start vanuit het juiste contract.

Vragen over GPT-4o Image

What makes GPT-4o Image different from GPT Image?

GPT-4o Image generates images natively within the GPT-4o conversation, using conversational context to inform the image. GPT Image is a standalone generation endpoint.

How does conversational context help?

The model uses the full conversation history to understand what you want — you can iteratively refine images by describing changes in natural language.

How many objects can it handle in one image?

GPT-4o Image handles many distinct objects in a single scene while maintaining compositional coherence and object identity.

Can I edit a previously generated image?

Yes — describe the changes in the conversation and the model modifies the existing image while preserving the rest of the scene.

Is it good for iterative design workflows?

Yes — the conversational interface makes it natural to iterate: generate, review, describe adjustments, and regenerate without rewriting the full prompt.

Met welke variant moet ik beginnen?

Kies de goedkoopste variant die aan je kwaliteitsnorm voldoet. De meeste teams beginnen met de snelle variant en stappen over op pro voor productie.

VERGELIJKBARE MODELLEN

Als je de GPT-4o Image API goed vindt, probeer deze dan eens

Begin met bouwen met de GPT-4o Image API.

Endpoints

  • text_to_image

Zelfde categorie

Van deze provider

Documentatie