gpt-image-1.5 の作成
POST
/v1/images/generations
- テキスト
promptから画像を生成します(gpt-image-1.5) - 生成枚数
nと出力サイズsizeを指定できます - リクエストボディは
application/json - 公式ドキュメント:Images create
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
Required
画像生成に使用するモデル(例:gpt-image-1.5)。
prompt
string
Required
生成したい画像のテキスト説明。最大 1000 文字。
n
integer
生成する画像の枚数。1 から 10 の間である必要があります。
size
string
生成画像のサイズ。GPT 画像モデルは 1024x1024、1536x1024(横)、1024x1536(縦)、 auto(デフォルト)のいずれか。dall-e-2 は 256x256、512x512、1024x1024 のいずれか。 dall-e-3 は 1024x1024、1792x1024、1024x1792 のいずれか。
Responses
application/json
object
id
string
Required
object
string
Required
created
integer
Required
choices
object[]
Required
usage
object
Required