toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.image.internal
/
ImageCreationRequest
Image
Creation
Request
@
Serializable
data
class
ImageCreationRequest
(
val
prompt
:
String
,
val
n
:
Int
?
=
null
,
val
size
:
ImageSize
?
=
null
,
val
user
:
String
?
=
null
,
val
responseFormat
:
ImageResponseFormat
,
val
model
:
String
?
=
null
,
val
quality
:
Quality
?
=
null
,
val
style
:
Style
?
=
null
)
Image generation request. Results are expected as URLs.
Members
Constructors
Image
Creation
Request
Link copied to clipboard
constructor
(
prompt
:
String
,
n
:
Int
?
=
null
,
size
:
ImageSize
?
=
null
,
user
:
String
?
=
null
,
responseFormat
:
ImageResponseFormat
,
model
:
String
?
=
null
,
quality
:
Quality
?
=
null
,
style
:
Style
?
=
null
)
Properties
model
Link copied to clipboard
@
SerialName
(
value
=
"model"
)
val
model
:
String
?
=
null
n
Link copied to clipboard
@
SerialName
(
value
=
"n"
)
val
n
:
Int
?
=
null
prompt
Link copied to clipboard
@
SerialName
(
value
=
"prompt"
)
val
prompt
:
String
quality
Link copied to clipboard
@
SerialName
(
value
=
"quality"
)
val
quality
:
Quality
?
=
null
response
Format
Link copied to clipboard
@
SerialName
(
value
=
"response_format"
)
val
responseFormat
:
ImageResponseFormat
size
Link copied to clipboard
@
SerialName
(
value
=
"size"
)
val
size
:
ImageSize
?
=
null
style
Link copied to clipboard
@
SerialName
(
value
=
"style"
)
val
style
:
Style
?
=
null
user
Link copied to clipboard
@
SerialName
(
value
=
"user"
)
val
user
:
String
?
=
null