API GPT Imagem 2
API de ImagemHOTGPT 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.
A integração atual expõe variantes de Texto para Imagem e Imagem para Imagem com níveis de preços de 1K, 2K e 4K, além de proporções comuns para saídas quadradas, verticais, horizontais e retrato.
O menor custo começa em $0.015/image
1K: 3 créditos - Texto para imagem - Fixo por geração
2K: 5 créditos - Texto para imagem - Fixo por geração
4K: 8 créditos - Texto para imagem - Fixo por geração
As estimativas em USD usam $0,005/crédito com o melhor plano anual. A cobrança final segue a resolução e a variante do modelo selecionadas.
Campos principais da solicitação
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"
}
}Use Text to Image para geração
O playground, solicitação de amostra, campos de solicitação e preços nesta página seguem o tipo de modelo selecionado.
Ver documentação detalhada da 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)O que a GPT Image 2 API acrescenta ao seu fluxo de trabalho de imagens
A página segue a mesma estrutura API-first da referência: teste o modelo, entenda os campos e depois passe para a integração.
Criação de texto para imagem
Transforme prompts estruturados em visuais prontos para produção para cartazes, anúncios, miniaturas, arte conceitual e cenas de produtos.
Edição de imagem de referência
Use entradas de imagem para preservar o contexto do sujeito enquanto altera o estilo, fundo, layout, iluminação ou apresentação do produto.
Níveis de resolução
Selecione níveis de saída 1K, 2K ou 4K para equilibrar o custo da iteração, a qualidade da pré-visualização e a nitidez do ativo final.
API-ready payloads
Trabalhe com IDs de modelo, URLs de callback, texto do prompt, URLs de imagens de entrada, proporções e campos de resolução em uma solicitação previsível.
De teste de prompt para solicitação de API de imagem
Um caminho direto para equipes que querem validar a qualidade da imagem antes de gerar a fiação em um aplicativo ou pipeline de conteúdo.
1. Escolha um modo
Selecione Texto para Imagem para novos visuais ou Imagem para Imagem quando quiser edições guiadas por referência.
2. Enviar geração
Chame a API com sua chave de conta, ID do modelo, prompt, URLs de imagens de entrada opcionais, proporção e resolução.
3. Pesquisar e usar
Acompanhe a tarefa até que ela seja concluída com sucesso, depois use o resultado da imagem gerada em seu aplicativo, campanha ou biblioteca de ativos.
O que você pode criar com a GPT Image 2 API
Use a API quando seu produto precisar de geração de imagens repetível e de alta qualidade, em vez de exportações manuais únicas.
Gerações 2 de imagens GPT bem-sucedidas da comunidade
Navegue pelos resultados públicos do GPT Image 2 que foram concluídos com sucesso, depois abra qualquer caso para inspecionar o prompt, as configurações e o 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.
Construído para fluxos de trabalho reais de APIs de imagem
Execução restrita por conta
Os usuários fazem login, enviam tarefas e consomem créditos através do fluxo de geração existente do SdanceAI.
Manipulação de imagem de entrada
Imagem para Imagem aceita URLs de imagens de origem, para que as equipes possam manter referências em seu próprio fluxo de ativos enquanto geram novas variações.
Resolução consciente de custos
Comece com 1K para iteração rápida, depois passe para 2K ou 4K quando o prompt e a direção visual estiverem prontos.
Perguntas sobre a GPT Image 2 API
Para que o GPT Image 2 API é mais indicado?
É melhor para geração de imagens baseada em prompts e edição de imagens guiada por referência, incluindo visuais de produtos, anúncios, criativos para redes sociais, pôsteres e mockups de design.
Qual é a diferença entre Texto para Imagem e Imagem para Imagem?
Texto para Imagem começa apenas a partir de um prompt. Imagem para Imagem usa uma ou mais URLs de imagem de origem mais um prompt, tornando-o melhor para edições, variações e fluxos de trabalho que preservam referências.
Quais resoluções estão disponíveis?
A configuração atual da API inclui níveis de preço de 1K, 2K e 4K. Escolha resolução mais baixa para iteração e resolução mais alta para ativos finais.
Quais proporções de aspecto eu posso usar?
As proporções disponíveis incluem automático, 1:1, 9:16, 16:9, 4:3 e 3:4. Combine a proporção com seu canal de destino antes de gerar os ativos finais.
Quantas imagens de entrada o Image to Image pode usar?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
Onde posso testá-lo antes de integrar?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
Posso usar a GPT Image 2 API para fluxos de trabalho comerciais?
Esta página está configurada para fluxos de trabalho de imagens de produção. Para uso comercial, revise seu plano de conta, saldo de créditos, disponibilidade do modelo e requisitos aplicáveis da política de conteúdo.
A API suporta callbacks?
Sim. O esquema de solicitação inclui uma URL de retorno de chamada opcional para que seu serviço possa receber notificações de conclusão de tarefas.
Como devo gerenciar o custo?
Use 1K para exploração de prompts e rascunhos em massa, depois regenere os vencedores selecionados em 2K ou 4K quando precisar de uma saída final mais precisa.
Posso editar fotos de produtos existentes?
Sim. Use Imagem para Imagem com URLs de imagens de origem e um prompt que descreva exatamente as mudanças de fundo, iluminação, layout ou estilo que você precisa.
Transforme o GPT Image 2 em seu fluxo de trabalho de imagens
Abra o gerador, teste um prompt ou imagem de referência, depois use a documentação da API quando estiver pronto para conectar o GPT Image 2 à produção.