← すべてのモデル

GPT Image 2

OpenAI · 画像

OpenAI gpt-image-2 は公式の画像モデルで、テキストからの画像生成と画像から画像への変換に対応し、最大 2K/4K の出力が可能です。getmodel の画像グループ経由で生成ごとに課金されます。 GPT Image 2はGetModelでOpenAI互換APIを通じて利用でき、従量課金です。キーを1つ取得すれば、任意のOpenAI SDKから呼び出せます。

Text-to-imageImage-to-image

料金

項目価格
生成ごと¥3.8

呼び出し方法

curl https://getmodel.ai/v1/chat/completions \
  -H "Authorization: Bearer $GETMODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","messages":[{"role":"user","content":"Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://getmodel.ai/v1", api_key="$GETMODEL_API_KEY")
resp = client.chat.completions.create(
    model="gpt-image-2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

詳細

プロバイダーOpenAI
タイプ画像
エンドポイントimage-edit / image-generation
利用可能なグループGPT Image / Image generation

関連モデル