toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.chat
/
ImagePart
Image
Part
@
Serializable
@
SerialName
(
value
=
"image_url"
)
data
class
ImagePart
(
val
imageUrl
:
ImagePart.ImageURL
)
:
ContentPart
Image content part.
Parameters
image
Url
the image url.
Members
Constructors
Image
Part
Link copied to clipboard
constructor
(
url
:
String
,
detail
:
String
?
=
null
)
Image content part.
constructor
(
imageUrl
:
ImagePart.ImageURL
)
Types
Image
URL
Link copied to clipboard
@
Serializable
data
class
ImageURL
(
val
url
:
String
,
val
detail
:
String
?
=
null
)
Image content part data.
Properties
image
Url
Link copied to clipboard
@
SerialName
(
value
=
"image_url"
)
val
imageUrl
:
ImagePart.ImageURL