GPT Obraz 2 API
API obrazuHOTGPT Image 2 API is built for production image generation workflows that need prompt-driven creation, reference image editing, and predictable API payloads. Use it to create campaign visuals, product shots, social creatives, and design mockups without leaving the SdanceAI generation flow.
Obecna integracja udostępnia warianty Tekst na Obraz i Obraz na Obraz z poziomami cen 1K, 2K i 4K, a także popularne proporcje dla wyjść kwadratowych, pionowych, poziomych i portretowych.
Najniższy koszt zaczyna się od $0.015/image
1K: 3 kredytów - Tekst do obrazu - Naprawiono na pokolenie
2K: 5 kredytów - Tekst do obrazu - Naprawiono na pokolenie
4K: 8 kredytów - Tekst do obrazu - Naprawiono na pokolenie
Szacunki w USD używają $0,005/credit przy najlepszym rocznym planie. Ostateczne rozliczenie odbywa się zgodnie z wybraną rozdzielczością i wariantem modelu.
Podstawowe pola żądania
Use a compact payload for prompt, source images, aspect ratio, resolution, callback, and safety settings.
{
"model": "gpt-image-2-text-to-image",
"input": {
"prompt": "A cinematic night city poster with neon reflections on a rainy street.",
"aspect_ratio": "auto"
}
}Użyj Text to Image do generowania
Plac zabaw, przykładowe żądanie, pola żądania i ceny na tej stronie odpowiadają wybranemu typowi modelu.
Zobacz szczegółową dokumentację APIOpen the full API documentation for endpoints, authentication, task polling, and payload details. /models/gpt-image-2.md
promptstringText prompt. Required, maximum 20,000 characters.aspect_ratioenumThe aspect ratio of the generated image is set to auto by default. (auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21)resolutionenumImage resolution: Note: Images with a 1:1 aspect ratio cannot be converted to 4K images. Images with the aspect ratio set to "auto" or without a specified aspect ratio parameter will only be converted to 1K images; otherwise, the task will fail to create. (1K, 2K, 4K)Co GPT Image 2 API dodaje do Twojego przepływu pracy z obrazami
Strona podąża za tą samą strukturą API-first, co odniesienie: przetestuj model, zrozum pola, a następnie przejdź do integracji.
Tworzenie tekstu na obraz
Przekształcaj ustrukturyzowane podpowiedzi w wizualizacje gotowe do produkcji na plakaty, reklamy, miniatury, concept arty i sceny produktowe.
Edycja obrazów referencyjnych
Użyj obrazów wejściowych, aby zachować kontekst tematu przy zmianie stylu, tła, układu, oświetlenia lub prezentacji produktu.
Poziomy rozdzielczości
Wybierz poziomy wyjściowe 1K, 2K lub 4K, aby zrównoważyć koszt iteracji, jakość podglądu i ostrość końcowego zasobu.
API-ready payloads
Pracuj z identyfikatorami modeli, adresami URL zwrotnymi, tekstem podpowiedzi, adresami URL obrazów wejściowych, proporcjami i polami rozdzielczości w jednym przewidywalnym żądaniu.
Od testu promptu do żądania API obrazu
Bezpośrednia droga dla zespołów, które chcą zweryfikować jakość obrazu przed wygenerowaniem połączenia w aplikacji lub w procesie tworzenia treści.
1. Wybierz tryb
Wybierz Tekst na Obraz, aby uzyskać nowe wizuale, lub Obraz na Obraz, gdy chcesz edycji z wykorzystaniem referencji.
2. Prześlij generację
Wywołaj API za pomocą klucza konta, identyfikatora modelu, promptu, opcjonalnych adresów URL obrazów wejściowych, proporcji obrazu i rozdzielczości.
3. Ankieta i użycie
Śledź zadanie, aż się powiedzie, a następnie użyj wygenerowanego obrazu w swojej aplikacji, kampanii lub bibliotece zasobów.
Co możesz stworzyć za pomocą GPT Image 2 API
Użyj API, gdy Twój produkt potrzebuje powtarzalnego, wysokiej jakości generowania obrazów zamiast jednorazowych ręcznych eksportów.
Udane dwie generacje obrazów GPT z społeczności
Przeglądaj publiczne wyniki GPT Image 2, które zakończyły się sukcesem, a następnie otwórz dowolną sprawę, aby sprawdzić polecenie, ustawienia i wynik.

GPT Image-2 - Text to Image
舊官員至今仍然不願悔改。持續讓魔鬼撒旦駕馭他們的身體:〔魔成肉身〕。 ▲上述文字意境的繪圖風格: 社論漫畫插圖,黑色墨水勾勒輪廓,柔和的水彩渲染,交叉排線陰影,邊緣呈現暈染效果; 採用深色墨水陰影點綴。 使用MBM素描紙,高品質的進口素描紙。纖維略長且質地結實,紙面有明顯且獨特的橫條紋理,耐摩擦、抓粉力極強,

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, suns and one complete water-globe-planet is prominent, no land on the planet 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants. They are similar to man, not ugly. 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated. The shows the son of God making clothing for Adam and Eve while Adam and Eve are sacrificing a lamb on an alter.

GPT Image-2 - Text to Image
I stationary clipart graphics/icons to symbolically represent one stage of the universes history. More like iconic clipart. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; The beginning of created things. The foundation of the universe, suns and one complete water-globe-planet is prominent, no land on the planet

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, suns and the water-globe-planet is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants. They are similar to man, not ugly. 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated. The shows the son of God making clothing for Adam and Eve while Adam and Eve are sacrificing a lamb on an alter.

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, plants suns, and the creation only a water planet globe is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated.

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, plants suns, and the creation also of the water-globe called earth is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated.
Stworzony do prawdziwych przepływów pracy API obrazów
Wykonanie z ograniczeniem konta
Użytkownicy logują się, przesyłają zadania i korzystają z kredytów za pośrednictwem istniejącego procesu generowania SdanceAI.
Obsługa obrazów wejściowych
Image to Image akceptuje źródłowe adresy URL obrazów, więc zespoły mogą przechowywać odniesienia w swoim własnym procesie zarządzania zasobami, jednocześnie generując nowe warianty.
Rozdzielczość uwzględniająca koszty
Zacznij od 1K dla szybkiej iteracji, a następnie przejdź do 2K lub 4K, gdy prompt i kierunek wizualny będą gotowe.
Pytania dotyczące API GPT Image 2
Do czego najlepiej nadaje się GPT Image 2 API?
Jest najlepszy do generowania obrazów na podstawie poleceń i edycji obrazów z wykorzystaniem odniesień, w tym wizualizacji produktów, reklam, materiałów społecznościowych, plakatów i makiet projektowych.
Jaka jest różnica między Tekstem na Obraz a Obrazem na Obraz?
Text to Image zaczyna się tylko od podpowiedzi. Image to Image wykorzystuje jeden lub więcej adresów URL obrazów źródłowych wraz z podpowiedzią, co sprawia, że jest lepszy do edycji, wariantów i przepływów pracy zachowujących odniesienia.
Jakie rozdzielczości są dostępne?
Obecna konfiguracja API obejmuje poziomy cenowe 1K, 2K i 4K. Wybierz niższą rozdzielczość do iteracji, a wyższą rozdzielczość do finalnych zasobów.
Jakich proporcji obrazu mogę używać?
Dostępne proporcje obejmują auto, 1:1, 9:16, 16:9, 4:3 i 3:4. Dopasuj proporcję do docelowego kanału przed wygenerowaniem finalnych materiałów.
Ile obrazów wejściowych może używać Image to Image?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
Gdzie mogę to przetestować przed integracją?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
Czy mogę używać GPT Image 2 API w komercyjnych przepływach pracy?
Ta strona jest skonfigurowana do przepływów pracy obrazów produkcyjnych. W przypadku użytku komercyjnego sprawdź swój plan konta, saldo kredytów, dostępność modeli oraz obowiązujące wymagania dotyczące polityki treści.
Czy API obsługuje wywołania zwrotne?
Tak. Schemat żądania zawiera opcjonalny adres URL zwrotny, dzięki czemu Twoja usługa może otrzymywać powiadomienia o zakończeniu zadania.
Jak powinienem zarządzać kosztami?
Używaj 1K do eksploracji promptów i tworzenia masowych szkiców, a następnie wygeneruj ponownie wybrane najlepsze wyniki w 2K lub 4K, gdy potrzebujesz ostrzejszego ostatecznego efektu.
Czy mogę edytować istniejące zdjęcia produktów?
Tak. Użyj funkcji Obraz do obrazu z adresami URL obrazów źródłowych i opisem, który dokładnie opisuje tło, oświetlenie, układ lub wymagane zmiany stylu.
Zamień GPT Image 2 w swój przepływ pracy związany z obrazami
Otwórz generator, przetestuj polecenie lub obraz referencyjny, a następnie użyj dokumentacji API, gdy będziesz gotowy, aby połączyć GPT Image 2 z produkcją.