GPT-4o Image API
Native image generation inside GPT-4o — generate and edit images within the conversation.
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.",
});
<?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
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.
- Meerdere varianten voor verschillende snelheid-/kwaliteitsniveaus
- Modelskill bevat docs, schema's en setupnotities
- Werkt met appgerichte codeerworkflows
- Mislukte generaties worden niet in rekening gebracht
Prijzen
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 |
Installeer de GPT-4o Image skill voor appontwikkeling
Laad modeldocs, schema's, prijsnotities en setupstappen in je codeworkspace.
# Install the model skill for app development workflows
npx skills add runapi-ai/gpt-4o-image -g
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.
Van modelskill naar eerste resultaat in vier stappen
Kies het model
Kies het model en de variant die passen bij je outputtype, kwaliteitslat en latencydoel.
Configureren
Stel je RunAPI-key in en installeer de modelskill in je codeworkspace.
Bouwen
Gebruik de skill-instructies om de modelfeature in je applicatie toe te voegen.
Ontvangen
Poll op task-ID, stream wanneer ondersteund of verwerk de webhook-callback.
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.
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.
Veelgestelde vragen
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.
Is er een gratis tier?
Nieuwe accounts krijgen de eerste calls gratis op elk model. Daarna betaal je per call.
Streamen jullie resultaten?
Waar streaming beschikbaar is, streamt RunAPI end-to-end.
Hoe worden mislukkingen gefactureerd?
Mislukte generations worden niet in rekening gebracht.
Worden outputs gecachet?
Gegenereerde outputs worden opgeslagen en zijn op te vragen via task-ID. Inputs worden niet gecachet.
Mag ik het commercieel gebruiken?
Ja — commercieel gebruik is inbegrepen voor elke variant, tenzij een modellicentie het expliciet beperkt. Dat staat aangegeven op de variantpagina.
Hoe zit het met rate limits?
Rate limits per key schalen mee met je usage tier. Zie de prijzenpagina voor de actuele limieten.
Waar kan ik problemen melden?
Open een issue in de publieke GitHub-repo of mail support.
Als je de GPT-4o Image API goed vindt, probeer deze dan eens
Begin met bouwen met de GPT-4o Image API.
- text_to_image