API de GPT Image 2
API de imágenesHOTGPT 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.
La integración actual expone variantes de Texto a Imagen y de Imagen a Imagen con niveles de precios de 1K, 2K y 4K, además de proporciones comunes para salidas cuadradas, verticales, horizontales y de retrato.
El costo más bajo comienza en $0.015/image
1K: 3 créditos - Texto a imagen - Fijo por generación
2K: 5 créditos - Texto a imagen - Fijo por generación
4K: 8 créditos - Texto a imagen - Fijo por generación
Las estimaciones en USD usan $0.005/crédito con el mejor plan anual. La facturación final sigue la resolución y la variante de modelo seleccionadas.
Campos principales de la solicitud
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"
}
}Usa Text to Image para la generación
El área de juegos, la solicitud de muestra, los campos de solicitud y los precios en esta página siguen el tipo de modelo seleccionado.
Ver documentación detallada de la 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)Lo que GPT Image 2 API añade a tu flujo de trabajo de imágenes
La página sigue la misma estructura API-first que la referencia: probar el modelo, entender los campos y luego pasar a la integración.
Creación de texto a imagen
Convierte indicaciones estructuradas en visuales listos para producción para carteles, anuncios, miniaturas, arte conceptual y escenas de productos.
Edición de imagen de referencia
Utiliza entradas de imagen para conservar el contexto del sujeto mientras cambias el estilo, el fondo, la disposición, la iluminación o la presentación del producto.
Niveles de resolución
Seleccione los niveles de salida 1K, 2K o 4K para equilibrar el costo de iteración, la calidad de vista previa y la nitidez del activo final.
API-ready payloads
Trabaja con IDs de modelo, URLs de devolución de llamada, texto de instrucción, URLs de imágenes de entrada, relaciones de aspecto y campos de resolución en una solicitud predecible.
De prueba de indicación a solicitud de API de imagen
Un camino directo para equipos que quieren validar la calidad de la imagen antes de generar el cableado en una aplicación o en una cadena de contenido.
1. Elige un modo
Selecciona Texto a Imagen para nuevos elementos visuales o Imagen a Imagen cuando quieras ediciones guiadas por una referencia.
2. Enviar generación
Llama a la API con tu clave de cuenta, ID del modelo, indicación, URLs de imágenes opcionales, relación de aspecto y resolución.
3. Sondear y usar
Realiza un seguimiento de la tarea hasta que tenga éxito, luego utiliza el resultado de la imagen generada en tu aplicación, campaña o biblioteca de activos.
Lo que puedes crear con la API GPT Image 2
Utiliza la API cuando tu producto necesite generación de imágenes repetible y de alta calidad en lugar de exportaciones manuales únicas.
Generaciones exitosas de GPT Image 2 de la comunidad
Explora los resultados públicos de GPT Image 2 que se completaron con éxito, luego abre cualquier caso para inspeccionar el prompt, la configuración y el resultado.

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.
Construido para flujos de trabajo de API de imágenes reales
Ejecución restringida por cuenta
Los usuarios inician sesión, envían trabajos y consumen créditos a través del flujo de generación existente de SdanceAI.
Manejo de la imagen de entrada
Image to Image acepta URLs de imágenes de origen, por lo que los equipos pueden mantener referencias en su propia cadena de activos mientras generan nuevas variaciones.
Resolución consciente de costos
Comienza con 1K para una iteración rápida, luego pasa a 2K o 4K cuando el prompt y la dirección visual estén listos.
Preguntas sobre la API de GPT Image 2
¿Para qué es mejor la API GPT Image 2?
Es mejor para la generación de imágenes basada en indicaciones y la edición de imágenes guiada por referencias, incluyendo visuales de productos, anuncios, creatividades para redes sociales, carteles y maquetas de diseño.
¿Cuál es la diferencia entre Texto a Imagen e Imagen a Imagen?
Texto a imagen comienza solo a partir de un aviso. Imagen a imagen utiliza una o más URL de imágenes fuente más un aviso, lo que lo hace mejor para ediciones, variaciones y flujos de trabajo que conservan referencias.
¿Qué resoluciones están disponibles?
La configuración actual de la API incluye niveles de precios de 1K, 2K y 4K. Elija una resolución más baja para la iteración y una resolución más alta para los recursos finales.
¿Qué relaciones de aspecto puedo usar?
Las relaciones de aspecto disponibles incluyen auto, 1:1, 9:16, 16:9, 4:3 y 3:4. Ajusta la relación a tu canal objetivo antes de generar los activos finales.
¿Cuántas imágenes de entrada puede usar Imagen a Imagen?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
¿Dónde puedo probarlo antes de integrarlo?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
¿Puedo usar la API GPT Image 2 para flujos de trabajo comerciales?
Esta página está configurada para flujos de trabajo de imágenes de producción. Para uso comercial, revise su plan de cuenta, saldo de créditos, disponibilidad de modelos y los requisitos aplicables de la política de contenido.
¿El API soporta callbacks?
Sí. El esquema de solicitud incluye una URL de retorno opcional para que su servicio pueda recibir notificaciones de finalización de tareas.
¿Cómo debería gestionar el costo?
Usa 1K para la exploración de prompts y borradores en masa, luego regenera los ganadores seleccionados a 2K o 4K cuando necesites un resultado final más nítido.
¿Puedo editar las fotos de productos existentes?
Sí. Usa Imagen a Imagen con URLs de imágenes de origen y un prompt que describa los cambios exactos en el fondo, la iluminación, la disposición o el estilo que necesitas.
Convierte GPT Image 2 en tu flujo de trabajo de imágenes
Abre el generador, prueba un prompt o imagen de referencia, luego usa la documentación de la API cuando estés listo para conectar GPT Image 2 a producción.