openai/gpt-image-2
OpenAI's latest image model. Generates and edits images with strong prompt adherence and text rendering. Token-based billing: text + image input tokens and image output tokens. Use for product imagery, design, and creative assets.
์ถ์ฒ: official_x0.3 ยท 2026-06-01 ํ์ธ
์บ์ ์ฝ๊ธฐ $0.375/M ยท ์บ์ ์ฐ๊ธฐ โ/M
API ํธ์ถ ์ ์ด๋ค ID๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
openai/gpt-image-2ONEHOP_KEY ์๋ฆฌ ํ์์๋ฅผ ๊ทํ์ API key๋ก ๊ต์ฒดํ์ธ์. ์์ฑํ๊ธฐ โ
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
response = client.images.generate(
model="openai/gpt-image-2",
prompt="A red panda coding under the moonlight",
n=1,
)
print(response.data[0].url)์ต๊ทผ 30์ผ๊ฐ ์์ฒญ 2,603๊ฑด