---
title: "ImageInput"
sidebar_label: "ImageInput"
description: "Kotlin binding reference: ImageInput."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[ImageInput](index.md)

# ImageInput

sealed interface [ImageInput](index.md)

A picture handed to a vision model: the bitmap's pixels, or the encoded file.

#### Inheritors

| |
|---|
| [Rgba8888](Rgba8888/index.md) |
| [Encoded](Encoded/index.md) |

## Types

| Name | Summary |
|---|---|
| [Encoded](Encoded/index.md) | [common]<br>class [Encoded](Encoded/index.md)(val bytes: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)) : [ImageInput](index.md)<br>An encoded image file (PNG or JPEG bytes), decoded by the library. |
| [Rgba8888](Rgba8888/index.md) | [common]<br>class [Rgba8888](Rgba8888/index.md)(val pixels: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html), val width: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val height: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)) : [ImageInput](index.md)<br>The pixels of an `ARGB_8888` bitmap as `Bitmap.copyPixelsToBuffer` writes them: four bytes per pixel in the order red, green, blue, alpha, row by row, [width](Rgba8888/width.md) × [height](Rgba8888/height.md) pixels. The alpha is dropped; the model reads the color. |