GPT Image 2 API
API d'imageHOTGPT 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.
L'intégration actuelle expose les variantes Texte en Image et Image en Image avec des tarifs de 1K, 2K et 4K, ainsi que des formats d'image communs pour des sorties carrées, verticales, horizontales et en portrait.
Le coût le plus bas commence à $0.005/s
1K: 6 crédits - Texte en image - Fixé par génération
2K: 10 crédits - Texte en image - Fixé par génération
4K: 16 crédits - Texte en image - Fixé par génération
1024x768: 1 crédits/image - Texte en image - Images × 1
1024x768: 2 crédits/image - Texte en image - Images × 2
1024x768: 8 crédits/image - Texte en image - Images × 8
1024x768: 13 crédits/image - Texte en image - Images × 13
1024x768: 29 crédits/image - Texte en image - Images × 29
768x1024: 1 crédits/image - Texte en image - Images × 1
768x1024: 2 crédits/image - Texte en image - Images × 2
768x1024: 8 crédits/image - Texte en image - Images × 8
768x1024: 13 crédits/image - Texte en image - Images × 13
768x1024: 29 crédits/image - Texte en image - Images × 29
1024x1024: 2 crédits/image - Texte en image - Images × 2
1024x1024: 3 crédits/image - Texte en image - Images × 3
1024x1024: 11 crédits/image - Texte en image - Images × 11
1024x1024: 19 crédits/image - Texte en image - Images × 19
1024x1024: 43 crédits/image - Texte en image - Images × 43
1024x1536: 1 crédits/image - Texte en image - Images × 1
1024x1536: 3 crédits/image - Texte en image - Images × 3
1024x1536: 9 crédits/image - Texte en image - Images × 9
1024x1536: 15 crédits/image - Texte en image - Images × 15
1024x1536: 33 crédits/image - Texte en image - Images × 33
1536x1024: 1 crédits/image - Texte en image - Images × 1
1536x1024: 3 crédits/image - Texte en image - Images × 3
1536x1024: 9 crédits/image - Texte en image - Images × 9
1536x1024: 15 crédits/image - Texte en image - Images × 15
1536x1024: 33 crédits/image - Texte en image - Images × 33
1920x1080: 1 crédits/image - Texte en image - Images × 1
1920x1080: 3 crédits/image - Texte en image - Images × 3
1920x1080: 8 crédits/image - Texte en image - Images × 8
1920x1080: 15 crédits/image - Texte en image - Images × 15
1920x1080: 32 crédits/image - Texte en image - Images × 32
1080x1920: 1 crédits/image - Texte en image - Images × 1
1080x1920: 3 crédits/image - Texte en image - Images × 3
1080x1920: 8 crédits/image - Texte en image - Images × 8
1080x1920: 15 crédits/image - Texte en image - Images × 15
1080x1920: 32 crédits/image - Texte en image - Images × 32
2560x1440: 2 crédits/image - Texte en image - Images × 2
2560x1440: 3 crédits/image - Texte en image - Images × 3
2560x1440: 12 crédits/image - Texte en image - Images × 12
2560x1440: 20 crédits/image - Texte en image - Images × 20
2560x1440: 45 crédits/image - Texte en image - Images × 45
1440x2560: 2 crédits/image - Texte en image - Images × 2
1440x2560: 3 crédits/image - Texte en image - Images × 3
1440x2560: 12 crédits/image - Texte en image - Images × 12
1440x2560: 20 crédits/image - Texte en image - Images × 20
1440x2560: 45 crédits/image - Texte en image - Images × 45
3840x2160: 3 crédits/image - Texte en image - Images × 3
3840x2160: 6 crédits/image - Texte en image - Images × 6
3840x2160: 21 crédits/image - Texte en image - Images × 21
3840x2160: 36 crédits/image - Texte en image - Images × 36
3840x2160: 81 crédits/image - Texte en image - Images × 81
2160x3840: 3 crédits/image - Texte en image - Images × 3
2160x3840: 6 crédits/image - Texte en image - Images × 6
2160x3840: 21 crédits/image - Texte en image - Images × 21
2160x3840: 36 crédits/image - Texte en image - Images × 36
2160x3840: 81 crédits/image - Texte en image - Images × 81
Les estimations en USD utilisent 0,005 $/crédit avec le meilleur plan annuel. La facturation finale suit la résolution et la variante de modèle sélectionnées.
Champs principaux de la requête
Use a compact payload for prompt, source images, aspect ratio, resolution, callback, and safety settings.
{
"model": "gpt-image-2-5-flare-text-to-image",
"input": {
"prompt": "A cinematic night city poster with neon reflections on a rainy street.",
"aspect_ratio": "3:2",
"resolution": "1K",
"background": "transparent"
}
}Utilisez GPT Image 2.5 Flare Text to Image pour la génération
Le terrain de jeu, la demande d'échantillon, les champs de demande et les prix sur cette page suivent le type de modèle sélectionné.
Voir la documentation détaillée de l'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. The 27:16, 16:27, 9:8 and 8:9 aspect ratios support 1K only. 2K and 4K are available for other aspect ratios. (auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:9)resolutionenumImage resolution (1K, 2K, 4K)backgroundenumImage background (transparent, opaque, auto)Ce que l'GPT Image 2 API ajoute à votre flux de travail d'image
La page suit la même structure API-first que la référence : tester le modèle, comprendre les champs, puis passer à l'intégration.
Création de texte en image
Transformez des invites structurées en visuels prêts pour la production pour des affiches, des publicités, des vignettes, de l'art conceptuel et des scènes de produits.
Édition d'image de référence
Utilisez des entrées d'image pour préserver le contexte du sujet tout en modifiant le style, l'arrière-plan, la disposition, l'éclairage ou la présentation du produit.
Résolution intermédiaire
Sélectionnez les niveaux de sortie 1K, 2K ou 4K pour équilibrer le coût des itérations, la qualité de l'aperçu et la netteté de l'élément final.
API-ready payloads
Travaillez avec les identifiants de modèle, les URL de rappel, le texte d'invite, les URL d'images d'entrée, les rapports d'aspect et les champs de résolution dans une seule demande prévisible.
Du test d'invite à la requête API d'image
Un chemin direct pour les équipes qui souhaitent valider la qualité des images avant la génération de câblage dans une application ou un flux de contenu.
1. Choisissez un mode
Sélectionnez Texte vers Image pour de nouveaux visuels ou Image vers Image lorsque vous souhaitez des modifications guidées par une référence.
2. Soumettre la génération
Appelez l'API avec votre clé de compte, l'ID du modèle, l'invite, les URL d'image d'entrée facultatives, le rapport d'aspect et la résolution.
3. Sondage et utilisation
Suivez la tâche jusqu'à ce qu'elle réussisse, puis utilisez le résultat de l'image générée dans votre application, votre campagne ou votre bibliothèque d'actifs.
Ce que vous pouvez créer avec l'GPT Image 2 API
Utilisez l'API lorsque votre produit a besoin de génération d'images répétable et de haute qualité plutôt que d'exportations manuelles ponctuelles.
Réussites des générations d'GPT Image 2 de la communauté
Parcourez les résultats publics de GPT Image 2 qui se sont terminés avec succès, puis ouvrez n'importe quel cas pour inspecter le prompt, les paramètres et le résultat.

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.
Conçu pour les flux de travail API d'image réelle
Exécution protégée par compte
Les utilisateurs se connectent, soumettent des tâches et consomment des crédits via le flux de génération SdanceAI existant.
Gestion des images d'entrée
Image to Image accepte les URL d'images sources, de sorte que les équipes peuvent conserver des références dans leur propre flux d'actifs tout en générant de nouvelles variantes.
Résolution consciente des coûts
Commencez avec 1K pour une itération rapide, puis passez à 2K ou 4K lorsque l'invite et la direction visuelle sont prêtes.
Questions sur l'GPT Image 2 API
À quoi sert le mieux l'GPT Image 2 API ?
Il est idéal pour la génération d'images basée sur des invites et l'édition d'images guidée par des références, y compris les visuels de produits, les publicités, les créations pour les réseaux sociaux, les affiches et les maquettes de design.
Quelle est la différence entre Texte en Image et Image en Image ?
Texte en image commence uniquement à partir d'une invite. Image en image utilise une ou plusieurs URL d'image source plus une invite, ce qui le rend meilleur pour les modifications, les variations et les flux de travail préservant les références.
Quelles résolutions sont disponibles ?
La configuration actuelle de l'API comprend des niveaux de tarification 1K, 2K et 4K. Choisissez une résolution plus basse pour l'itération et une résolution plus élevée pour les ressources finales.
Quels rapports d'aspect puis-je utiliser ?
Les formats d'image disponibles incluent automatique, 1:1, 9:16, 16:9, 4:3 et 3:4. Associez le format à votre canal cible avant de générer les éléments finaux.
Combien d'images d'entrée peut utiliser Image to Image ?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
Où puis-je le tester avant de l'intégrer ?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
Puis-je utiliser l'GPT Image 2 API pour des flux de travail commerciaux ?
Cette page est configurée pour les flux de travail d'images en production. Pour une utilisation commerciale, examinez votre plan de compte, le solde de crédits, la disponibilité du modèle et les exigences applicables en matière de politique de contenu.
L'API prend-elle en charge les rappels ?
Oui. Le schéma de la demande inclut une URL de rappel optionnelle afin que votre service puisse recevoir des notifications de l'achèvement des tâches.
Comment devrais-je gérer les coûts ?
Utilisez 1K pour l'exploration des invites et les brouillons en masse, puis régénérez les gagnants sélectionnés à 2K ou 4K lorsque vous avez besoin d'un résultat final plus net.
Puis-je modifier les photos de produits existantes ?
Oui. Utilisez Image à Image avec des URL d'images sources et un texte décrivant exactement les changements de fond, d'éclairage, de disposition ou de style dont vous avez besoin.
Transformez GPT Image 2 en votre flux de travail d'images
Ouvrez le générateur, testez une invite ou une image de référence, puis utilisez la documentation API lorsque vous êtes prêt à connecter GPT Image 2 à la production.