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

Image OpenAI

GPT-4o Image API

Korzystaj z API GPT-4o Image przez RunAPI z model skillem, wspólnym uwierzytelnianiem i cennikiem pay-as-you-go.

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

O 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.

Dostawca
OpenAI
Modalność
Image
PRICING

Cennik

Nieudane generacje nie są rozliczane
Text to image
$0.06-$0.24 / image
2 images $0.12
4 images $0.24
SPECYFIKACJA

Szczegóły techniczne

ID modelu gpt-4o-image
Dostawca OpenAI
Modalność image
Typ zadania asynchronous
Jednostka rozliczeniowa call
API endpoint /api/v1/gpt_4o_image/text_to_image
Licencja komercyjna Tak — wliczona przez API
Status katalogu Operacyjny
Integracja agentów

Uruchamiaj GPT-4o Image z agenta

JAK TO DZIAŁA

Zacznij korzystać z GPT-4o Image

  1. Wybierz model

    Wybierz model i wariant pasujące do typu wyjścia, progu jakości i celu opóźnienia.

  2. Konfiguracja

    Ustaw klucz RunAPI i zainstaluj model skill w workspace kodu.

  3. Implementacja

    Użyj instrukcji skilla, aby dodać funkcję modelu w swojej aplikacji.

  4. Odbiór

    Odpytuj po task ID, streamuj gdy wspierane albo obsłuż callback webhook.

CONTEXT

Czym jest API GPT-4o Image?

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.

Dostawca
OpenAI
Zobacz wszystko →
Modalność
Image
Przeglądaj modele →

Dlaczego używać API GPT-4o Image przez RunAPI

Jedno uwierzytelnienie, wszyscy providerzy

Jeden klucz RunAPI odblokowuje cały katalog. Bez osobnych kont i rotacji kluczy dla każdej integracji.

Ujednolicony cennik i rozliczenia

Rozliczanie za wywołanie w USD, fakturowane co miesiąc. Nieudane generacje nie są naliczane.

Skill ze schematami

Typowane schematy i notatki setupu są spakowane w model skill, więc implementacja startuje od właściwego kontraktu.

Pytania o 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.

Od jakiego wariantu powinienem zacząć?

Wybierz najtańszy wariant, który spełnia Twoje wymagania jakościowe. Większość zespołów zaczyna od szybkiego wariantu, a do produkcji przechodzi na pro.

PODOBNE MODELE

Jeśli podoba Ci się API GPT-4o Image, wypróbuj też te

Zacznij budować z API GPT-4o Image.

Endpoints

  • text_to_image

Ta sama kategoria

Od tego dostawcy

Dokumentacja