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
ã©ã¡ãã® ID ã䜿ã£ãŠã API ã§ãã®ã¢ãã«ãåŒã³åºããŸãã
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,360 ä»¶ã®ãªã¯ãšã¹ã