openai compat generate
OpenAi
openai compat generate
generate a image
POST
openai compat generate
Normal Request Example
- Java
Body
application/json
prompt
Minimum string length:
1model
Available options:
gpt-image-2 background transparency
Available options:
transparent, opaque, auto Audit intensity
Available options:
auto, low Generation quantity (currently only supports 1)
JPEG/WebP compression level 0-100
Output file format
Available options:
png, jpeg, webp partial images
quality grade
Available options:
auto, low, medium, high, standard Response format (compatible with DALL · E; The gpt image series always returns b64_json)
Available options:
url, b64_json image size
Available options:
auto, 1024x1024, 1024x1536, 1536x1024, 2048x2048, 2048x1152, 3840x2160, 2160x3840 Input image fidelity (newly added in gpt-image-2, only effective for editing scenes); Generate can be ignored)
Available options:
high, low user
Response
200 - */*
OK
The response is of type object.
