File Object
@Serializable
A file stored by the DeepSeek Files API.
Feed id to a FilePart — or to the imageFile(...) step of the user { } DSL — to let a vision model read the file:
val uploaded = client.uploadFile(imageBytes, "cat.jpg")
client.chatCompletion {
params { model = ChatModel.DEEPSEEK_FLASH }
messages {
user {
text("What is in this image?")
imageFile(uploaded.id)
}
}
}Content copied to clipboard