واجهة برمجة تطبيقات GPT للصورة 2
واجهة برمجة تطبيق الصور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 للتوليد
ملعب الألعاب وطلب العينة وحقول الطلب والتسعير في هذه الصفحة تتبع نوع النموذج المحدد.
عرض مستندات واجهة برمجة التطبيقات التفصيليةOpen 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 أولاً مثل المرجع: اختبر النموذج، وافهم الحقول، ثم انتقل إلى التكامل.
إنشاء النص إلى صورة
حوّل التعليمات المنظمة إلى صور جاهزة للإنتاج للملصقات والإعلانات والصور المصغرة وفنون المفهوم ومشاهد المنتجات.
تحرير صورة مرجعية
استخدم مدخلات الصور للحفاظ على سياق الموضوع أثناء تغيير الأسلوب أو الخلفية أو التخطيط أو الإضاءة أو عرض المنتج.
مستويات الدقة
اختر مستويات الإخراج 1K أو 2K أو 4K لموازنة تكلفة التكرار وجودة المعاينة ووضوح الأصل النهائي.
API-ready payloads
تعمل مع معرفات النماذج، وروابط الاستدعاء، ونصوص المطالبات، وروابط الصور المدخلة، ونسب الأبعاد، وحقول الدقة في طلب واحد متوقع.
من اختبار الموجه إلى طلب واجهة برمجة تطبيقات الصور
مسار مباشر للفرق التي تريد التحقق من جودة الصور قبل توليد الأسلاك في تطبيق أو خط إنتاج المحتوى.
1. اختر وضعًا
اختر النص إلى صورة للحصول على صور جديدة أو الصورة إلى صورة عندما تريد تعديلات موجهة بالمرجع.
2. تقديم الجيل
قم بالاتصال بواجهة برمجة التطبيقات باستخدام مفتاح حسابك، ومعرف النموذج، والمطالبة، وروابط الصور الاختيارية، ونسبة العرض إلى الارتفاع، والدقة.
3. الاستطلاع والاستخدام
تتبع المهمة حتى تنجح، ثم استخدم نتيجة الصورة المولَّدة في تطبيقك أو حملتك أو مكتبة الأصول الخاصة بك.
ما يمكنك إنشاؤه باستخدام واجهة برمجة التطبيقات GPT Image 2
استخدم واجهة برمجة التطبيقات عندما يحتاج منتجك إلى إنشاء صور عالية الجودة بشكل متكرر بدلاً من التصديرات اليدوية لمرة واحدة.
نجاح الجيلين الثاني والثالث من صور GPT من المجتمع
تصفح مخرجات 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.
مصمم لتدفقات عمل واجهة برمجة تطبيقات الصور الحقيقية
تنفيذ مقيد بالحساب
يقوم المستخدمون بتسجيل الدخول، وتقديم الوظائف، واستهلاك الاعتمادات من خلال تدفق التوليد الحالي لـ SdanceAI.
معالجة صورة الإدخال
يقبل تحويل الصورة إلى صورة روابط الصور المصدرية، لذا يمكن للفرق الاحتفاظ بالمراجع في خط إنتاج الأصول الخاص بهم أثناء إنشاء تنوعات جديدة.
القرار الواعي بالتكلفة
ابدأ بـ1K للتكرار السريع، ثم انتقل إلى 2K أو 4K عندما يكون النص البصري والاتجاه البصري جاهزين.
أسئلة واجهة برمجة تطبيقات GPT Image 2
ما هو أفضل استخدام لواجهة برمجة تطبيقات GPT Image 2؟
إنه الأفضل لتوليد الصور بناءً على النصوص وتحرير الصور بالاسترشاد بالمرجع، بما في ذلك صور المنتجات والإعلانات والمحتوى الإبداعي على وسائل التواصل الاجتماعي والملصقات ونماذج التصميم.
ما الفرق بين النص إلى صورة والصورة إلى صورة؟
النص إلى صورة يبدأ من موجه فقط. الصورة إلى صورة تستخدم واحدًا أو أكثر من روابط الصور المصدر بالإضافة إلى الموجه، مما يجعلها أفضل للتحريرات والتنوعات وسير العمل الذي يحافظ على المراجع.
ما هي الدقة المتوفرة؟
تتضمن تكوينات واجهة برمجة التطبيقات الحالية مستويات تسعير 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.
هل يمكنني استخدام واجهة برمجة تطبيقات GPT Image 2 لسير العمل التجاري؟
تم تكوين هذه الصفحة لسير عمل الصور الإنتاجية. للاستخدام التجاري، راجع خطة حسابك، ورصيدك من الاعتمادات، وتوافر النماذج، ومتطلبات سياسة المحتوى المطبقة.
هل تدعم واجهة البرمجة التطبيقية الاستدعاءات الراجعة؟
نعم. يتضمن مخطط الطلب عنوان URL اختياري للرد حتى تتمكن خدمتك من تلقي إشعارات إتمام المهام.
كيف يجب أن أدير التكلفة؟
استخدم 1K لاستكشاف الموجز والمسودات بالجملة، ثم أعد توليد الفائزين المختارين عند 2K أو 4K عندما تحتاج إلى إخراج نهائي أكثر وضوحًا.
هل يمكنني تعديل صور المنتجات الموجودة؟
نعم. استخدم تحويل الصورة إلى صورة مع روابط الصور المصدر والموجه الذي يصف بالضبط التغييرات المطلوبة في الخلفية أو الإضاءة أو التخطيط أو الأسلوب.
حوّل GPT Image 2 إلى سير عمل الصور الخاص بك
افتح المولد، اختبر موجهًا أو صورة مرجعية، ثم استخدم مستندات API عندما تكون جاهزًا لربط GPT Image 2 بالإنتاج.