Skip to main content
POST
Generate an image

Authorizations

Authorization
string
header
required

Prism API key beginning with sk-prism-

Body

model
string
required
Required string length: 1 - 256
prompt
string
required
Required string length: 1 - 4000
n
integer
Required range: 1 <= x <= 10
size
string
quality
enum<string>
Available options:
standard,
hd
style
enum<string>
Available options:
vivid,
natural
user
string
response_format
enum<string>
Available options:
url,
b64_json

Response

OpenAI-compatible image generation result.

The response is of type object.