API GPT Image 2
API изображенийHOTGPT 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.
Текущая интеграция предоставляет варианты преобразования текста в изображение и изображения в изображение с ценовыми категориями 1K, 2K и 4K, а также общие соотношения сторон для квадратных, вертикальных, горизонтальных и портретных изображений.
Начальная стоимость $0.015/image
1K: 3 кредиты - Текст в изображение - Фиксировано для каждого поколения
2K: 5 кредиты - Текст в изображение - Фиксировано для каждого поколения
4K: 8 кредиты - Текст в изображение - Фиксировано для каждого поколения
Оценки в долларах США используют $0,005 за кредит при лучшем годовом плане. Окончательный счет выставляется в соответствии с выбранным разрешением и вариантом модели.
Основные поля запроса
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"
}
}Используйте Text to Image для генерации
Игровая площадка, запрос образца, поля запроса и цены на этой странице соответствуют выбранному типу модели.
Просмотреть подробную документацию по 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)Что GPT Image 2 API добавляет в ваш рабочий процесс с изображениями
Страница следует той же структуре, ориентированной на API, что и справочный материал: сначала тестируйте модель, потом изучайте поля, а затем переходите к интеграции.
Создание текста в изображение
Превращайте структурированные подсказки в готовые к производству визуальные материалы для постеров, рекламных объявлений, миниатюр, концепт-арта и сцен с продуктами.
Редактирование эталонного изображения
Используйте входные изображения, чтобы сохранить контекст объекта при изменении стиля, фона, компоновки, освещения или презентации продукта.
Уровни разрешения
Выберите уровни вывода 1K, 2K или 4K, чтобы сбалансировать стоимость итерации, качество предварительного просмотра и резкость конечного ресурса.
API-ready payloads
Работайте с идентификаторами моделей, URL-адресами обратного вызова, текстом запроса, URL-адресами входных изображений, соотношениями сторон и полями разрешения в одном предсказуемом запросе.
От теста подсказки к запросу API изображения
Прямой путь для команд, которые хотят проверить качество изображения перед интеграцией генерации в приложение или контентный конвейер.
1. Выберите режим
Выбирайте 'Текст в изображение' для создания новых визуальных материалов или 'Изображение в изображение', когда хотите редактирование с использованием эталонного изображения.
2. Отправить генерацию
Вызовите API с вашим ключом аккаунта, идентификатором модели, подсказкой, необязательными URL изображений, соотношением сторон и разрешением.
3. Опрос и использование
Отслеживайте задачу до её успешного выполнения, затем используйте полученный результат изображения в вашем приложении, кампании или библиотеке ресурсов.
Что вы можете создать с помощью API GPT Image 2
Используйте API, когда вашему продукту требуется многократное создание изображений высокого качества, а не одноразовый ручной экспорт.
Успешные поколения изображений GPT 2 от сообщества
Просмотрите общедоступные результаты GPT Image 2, которые успешно завершились, затем откройте любой случай, чтобы проверить запрос, настройки и результат.

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.
Создано для реальных рабочих процессов с API изображений
Выполнение с ограничением по аккаунту
Пользователи входят в систему, отправляют задания и используют кредиты через существующий поток генерации SdanceAI.
Обработка входного изображения
Функция «Изображение в изображение» принимает URL исходных изображений, чтобы команды могли хранить ссылки в своем собственном конвейере ресурсов, создавая при этом новые варианты.
Разрешение с учетом стоимости
Начните с 1К для быстрой итерации, затем переходите на 2К или 4К, когда подготовлены подсказка и визуальное направление.
Вопросы по GPT Image 2 API
Для чего лучше всего подходит API GPT Image 2?
Он лучше всего подходит для генерации изображений на основе подсказок и редактирования изображений с опорой на примеры, включая визуальные материалы для продуктов, рекламу, социальные креативы, плакаты и макеты дизайна.
В чем разница между «Текст в изображение» и «Изображение в изображение»?
Текст в изображение начинается только с подсказки. Изображение в изображение использует один или несколько URL источников изображения плюс подсказку, что делает его лучше для редактирования, создания вариантов и рабочих процессов с сохранением ссылки.
Какие разрешения доступны?
Текущая конфигурация API включает тарифные планы 1K, 2K и 4K. Выбирайте более низкое разрешение для итераций и более высокое разрешение для окончательных материалов.
Какие соотношения сторон я могу использовать?
Доступные соотношения сторон включают авто, 1:1, 9:16, 16:9, 4:3 и 3:4. Сопоставьте соотношение с вашей целевой платформой перед созданием окончательных материалов.
Сколько входных изображений может использовать функция «Изображение в изображение»?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
Где я могу протестировать это перед интеграцией?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
Могу ли я использовать API GPT Image 2 для коммерческих рабочих процессов?
Эта страница настроена для рабочих процессов с изображениями в режиме производства. Для коммерческого использования ознакомьтесь с планом своего аккаунта, балансом кредитов, доступностью моделей и применимыми требованиями политики контента.
Поддерживает ли API обратные вызовы?
Да. Схема запроса включает необязательный URL-адрес обратного вызова, чтобы ваш сервис мог получать уведомления о завершении задачи.
Как мне управлять затратами?
Используйте 1K для исследования подсказок и массовых черновиков, затем восстановите выбранные лучшие варианты с 2K или 4K, когда вам нужен более четкий окончательный результат.
Могу ли я редактировать существующие фотографии продукта?
Да. Используйте «Изображение в изображение» с URL исходного изображения и подсказкой, которая описывает точные изменения фона, освещения, компоновки или стиля, которые вам нужны.
Превратите GPT Image 2 в ваш рабочий процесс с изображениями
Откройте генератор, протестируйте запрос или эталонное изображение, затем используйте документацию API, когда будете готовы подключить GPT Image 2 к производству.