Sora

GPT Image 2 API

อินเทอร์เฟซโปรแกรมประยุกต์ภาพHOT

GPT 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.005/s

รุ่นที่เลือก
GPT Image 2.5 Flare Text to Image

1K: 6 เครดิต - ข้อความเป็นรูปภาพ - คงที่ต่อรุ่น

2K: 10 เครดิต - ข้อความเป็นรูปภาพ - คงที่ต่อรุ่น

4K: 16 เครดิต - ข้อความเป็นรูปภาพ - คงที่ต่อรุ่น

1024x768: 1 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 1

1024x768: 2 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 2

1024x768: 8 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 8

1024x768: 13 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 13

1024x768: 29 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 29

768x1024: 1 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 1

768x1024: 2 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 2

768x1024: 8 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 8

768x1024: 13 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 13

768x1024: 29 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 29

1024x1024: 2 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 2

1024x1024: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

1024x1024: 11 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 11

1024x1024: 19 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 19

1024x1024: 43 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 43

1024x1536: 1 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 1

1024x1536: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

1024x1536: 9 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 9

1024x1536: 15 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 15

1024x1536: 33 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 33

1536x1024: 1 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 1

1536x1024: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

1536x1024: 9 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 9

1536x1024: 15 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 15

1536x1024: 33 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 33

1920x1080: 1 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 1

1920x1080: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

1920x1080: 8 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 8

1920x1080: 15 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 15

1920x1080: 32 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 32

1080x1920: 1 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 1

1080x1920: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

1080x1920: 8 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 8

1080x1920: 15 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 15

1080x1920: 32 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 32

2560x1440: 2 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 2

2560x1440: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

2560x1440: 12 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 12

2560x1440: 20 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 20

2560x1440: 45 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 45

1440x2560: 2 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 2

1440x2560: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

1440x2560: 12 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 12

1440x2560: 20 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 20

1440x2560: 45 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 45

3840x2160: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

3840x2160: 6 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 6

3840x2160: 21 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 21

3840x2160: 36 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 36

3840x2160: 81 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 81

2160x3840: 3 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 3

2160x3840: 6 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 6

2160x3840: 21 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 21

2160x3840: 36 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 36

2160x3840: 81 เครดิต/รูปภาพ - ข้อความเป็นรูปภาพ - รูปภาพ × 81

การประเมิน USD ใช้ $0.005/เครดิตกับแผนรายปีดีกที่สุด การเรียกเก็บเงินขั้นสุดท้ายจะเป็นไปตามความละเอียดและรุ่นโมเดลที่เลือก

สร้างภาพ
งานใหม่จะปรากฏที่นี่หลังจากที่คุณส่ง
อินพุต API

ฟิลด์คำขอหลัก

Use a compact payload for prompt, source images, aspect ratio, resolution, callback, and safety settings.

ขอ JSON
{
  "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"
  }
}

ใช้ GPT Image 2.5 Flare Text to Image สำหรับการสร้าง

สนามเด็กเล่น ตัวอย่างคำขอ ฟิลด์คำขอ และราคาบนหน้านี้เป็นไปตามประเภทโมเดลที่เลือก

ดูเอกสาร API อย่างละเอียด

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. 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)
ความสามารถ

สิ่งที่ GPT Image 2 API เพิ่มเข้ามาในกระบวนการทำงานภาพของคุณ

หน้าเว็บนี้ใช้โครงสร้างแบบ API-first เหมือนกับเอกสารอ้างอิง: ทดสอบโมเดล ทำความเข้าใจกับฟิลด์ แล้วจึงดำเนินการรวมเข้าด้วยกัน

การสร้างภาพจากข้อความ

เปลี่ยนคำสั่งที่มีโครงสร้างให้กลายเป็นภาพที่พร้อมใช้งานสำหรับโปสเตอร์ โฆษณา ภาพขนาดย่อ งานศิลปะแนวคิด และฉากผลิตภัณฑ์

การแก้ไขภาพอ้างอิง

ใช้ข้อมูลภาพเพื่อรักษาบริบทของวัตถุในขณะที่เปลี่ยนสไตล์ พื้นหลัง การจัดวาง แสง หรือการนำเสนอผลิตภัณฑ์

ระดับความละเอียด

เลือกระดับเอาต์พุต 1K, 2K หรือ 4K เพื่อปรับสมดุลระหว่างต้นทุนการวนซ้ำ คุณภาพตัวอย่าง และความคมชัดของสินค้าสุดท้าย

API-ready payloads

ทำงานกับรหัสโมเดล, URL การเรียกกลับ, ข้อความพรอมต์, URL รูปภาพนำเข้า, อัตราส่วนภาพ และช่องความละเอียดในคำขอที่คาดเดาได้เดียว

เริ่มต้นอย่างรวดเร็ว

จากการทดสอบพรอมต์ไปยังคำขอ API รูปภาพ

เส้นทางโดยตรงสำหรับทีมที่ต้องการตรวจสอบคุณภาพของภาพก่อนการสร้างการเชื่อมต่อเข้าแอปหรือกระบวนการผลิตเนื้อหา

1. เลือกโหมด

เลือก ข้อความเป็นภาพ สำหรับภาพใหม่ หรือ ภาพเป็นภาพ เมื่อคุณต้องการแก้ไขโดยมีภาพอ้างอิง

2. ส่งการสร้าง

เรียกใช้ API ด้วยคีย์บัญชีของคุณ รหัสโมเดล พรอมต์ URL ของภาพนำเข้าที่เลือก อัตราส่วนภาพ และความละเอียด

3. สำรวจและใช้

ติดตามงานจนกว่าจะสำเร็จ จากนั้นใช้ผลลัพธ์ของภาพที่สร้างขึ้นในแอป แคมเปญ หรือคลังสินทรัพย์ของคุณ

กรณีการใช้งาน

สิ่งที่คุณสามารถสร้างได้ด้วย GPT Image 2 API

ใช้ API เมื่อผลิตภัณฑ์ของคุณต้องการการสร้างภาพคุณภาพสูงซ้ำ ๆ แทนการส่งออกด้วยตนเองครั้งเดียว

ภาพตัวอย่างสินค้าหลักและภาพประกอบอีคอมเมิร์ซ
โพสต์โซเชียล รูปขนาดย่อ และสื่อโฆษณา
โปสเตอร์ ใบปลิว และงานศิลป์หลักของแคมเปญ
การแก้ไขชุด ฉากหลัง และสไตล์โดยอ้างอิงจากตัวอย่าง
การออกแบบตัวอย่างและการสำรวจแนวคิดทางภาพ
การสร้างสรรค์แบบแบทช์สำหรับสายงานเนื้อหา
การแสดงชุมชน

ชุมชนประสบความสำเร็จในการสร้าง GPT Image 2 รุ่น

เรียกดูผลลัพธ์ GPT Image 2 สาธารณะที่เสร็จสมบูรณ์แล้ว จากนั้นเปิดกรณีใดก็ได้เพื่อตรวจสอบคำสั่ง การตั้งค่า และผลลัพธ์

ดูเพิ่มเติม
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

舊官員至今仍然不願悔改。持續讓魔鬼撒旦駕馭他們的身體:〔魔成肉身〕。 ▲上述文字意境的繪圖風格: 社論漫畫插圖,黑色墨水勾勒輪廓,柔和的水彩渲染,交叉排線陰影,邊緣呈現暈染效果; 採用深色墨水陰影點綴。 使用MBM素描紙,高品質的進口素描紙。纖維略長且質地結實,紙面有明顯且獨特的橫條紋理,耐摩擦、抓粉力極強,

31 ส.ค. 2569ดูรายละเอียด
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

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.

30 ส.ค. 2569ดูรายละเอียด
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

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

30 ส.ค. 2569ดูรายละเอียด
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

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.

30 ส.ค. 2569ดูรายละเอียด
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

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.

30 ส.ค. 2569ดูรายละเอียด
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

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.

30 ส.ค. 2569ดูรายละเอียด
บันทึกการผลิต

สร้างขึ้นสำหรับเวิร์กโฟลว์ API ภาพจริง

การดำเนินการที่ถูกจำกัดด้วยบัญชี

ผู้ใช้เข้าสู่ระบบ ส่งงาน และใช้เครดิตผ่านกระบวนการสร้าง SdanceAI ที่มีอยู่

การจัดการภาพนำเข้า

Image to Image ยอมรับ URL ของภาพต้นฉบับ ดังนั้นทีมสามารถเก็บข้อมูลอ้างอิงไว้ในกระบวนการผลิตสินทรัพย์ของตัวเองในขณะที่สร้างเวอร์ชันใหม่ได้

ความละเอียดที่คำนึงถึงต้นทุน

เริ่มด้วย 1K สำหรับการทำซ้ำอย่างรวดเร็ว จากนั้นจึงไปที่ 2K หรือ 4K เมื่อพรอมต์และทิศทางภาพพร้อมแล้ว

FAQ

คำถามเกี่ยวกับ GPT Image 2 API

GPT Image 2 API เหมาะที่สุดสำหรับอะไร?

มันเหมาะที่สุดสำหรับการสร้างภาพโดยใช้ข้อความสั่งหรือการแก้ไขภาพโดยอ้างอิง รวมถึงภาพสินค้่า โฆษณา สื่อสร้างสรรค์ทางโซเชียล โปสเตอร์ และการจำลองการออกแบบ

ความแตกต่างระหว่างข้อความเป็นภาพกับภาพเป็นภาพคืออะไร?

การสร้างภาพจากข้อความเริ่มต้นจากเพียงข้อความเท่านั้น การสร้างภาพจากภาพใช้หนึ่งหรือมากกว่าหนึ่ง URL ของภาพต้นฉบับพร้อมกับข้อความ ทำให้เหมาะสำหรับการแก้ไข การสร้างสรรค์หลายรูปแบบ และกระบวนการทำงานที่คงไว้ซึ่งการอ้างอิง

มีความละเอียดใดบ้างที่ใช้ได้?

การกำหนดค่า API ปัจจุบันรวมถึงระดับราคาที่ 1K, 2K และ 4K เลือกความละเอียดต่ำสำหรับการทำซ้ำ และความละเอียดสูงสำหรับสินทรัพย์ขั้นสุดท้าย

ฉันสามารถใช้สัดส่วนภาพใดได้บ้าง?

อัตราส่วนภาพที่มีให้เลือกได้แก่ อัตโนมัติ, 1:1, 9:16, 16:9, 4:3 และ 3:4 ให้จับคู่สัดส่วนกับช่องทางเป้าหมายของคุณก่อนสร้างสื่อสุดท้าย

Image to Image ใช้ภาพนำเข้าได้กี่ภาพ?

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 API สำหรับกระบวนงานเชิงพาณิชย์ได้ไหม?

หน้านี้ได้รับการตั้งค่าสำหรับเวิร์กโฟลว์ภาพในสภาพแวดล้อมการผลิต สำหรับการใช้งานเชิงพาณิชย์ โปรดตรวจสอบแผนบัญชี ยอดเครดิต ความพร้อมของโมเดล และข้อกำหนดนโยบายเนื้อหาที่ใช้บังคับ

API รองรับการเรียกกลับหรือไม่?

ใช่ แบบแผนคำขอรวมถึง URL การเรียกกลับที่เป็นทางเลือกเพื่อให้บริการของคุณสามารถรับการแจ้งเตือนการเสร็จสิ้นงานได้

ฉันควรจัดการค่าใช้จ่ายอย่างไร?

ใช้ 1K สำหรับการสำรวจคำสั่งและร่างจำนวนมาก แล้วจึงสร้างใหม่สำหรับผลงานที่เลือกที่ 2K หรือ 4K เมื่อคุณต้องการผลลัพธ์สุดท้ายที่คมชัดขึ้น

ฉันสามารถแก้ไขรูปภาพสินค้าที่มีอยู่ได้หรือไม่?

ใช่ ใช้ภาพต่อภาพพร้อม URL ของภาพต้นฉบับและคำสั่งที่อธิบายพื้นหลัง แสงสว่าง การจัดวาง หรือการเปลี่ยนแปลงสไตล์ที่คุณต้องการอย่างแม่นยำ

เริ่มสร้าง

เปลี่ยน GPT Image 2 ให้เป็นกระบวนการทำงานด้านภาพของคุณ

เปิดเครื่องสร้าง ทดสอบพรอมต์หรือภาพอ้างอิง จากนั้นใช้เอกสาร API เมื่อคุณพร้อมที่จะเชื่อมต่อ GPT Image 2 กับการผลิต

พร้อมใช้งานกับ API
workflow
1พัน-4พัน
resolution
16 ภาพ
references