# ModelPreference

# ModelPreference


```
@Retention(value = AnnotationRetention.SOURCE)
@IntDef(value = [1, 2])
annotation ModelPreference
```

<br />

*** ** * ** ***

Defines the developer's preference to guide model selection, balancing characteristics like speed and capability.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/ModelPreference#FAST() = 1` Prefers models optimized for faster inference speed, typically resulting in lower latency. |
| `const https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/ModelPreference#FULL() = 2` Prefers models offering the fullest capabilities, potentially including higher accuracy or more features, which may result in increased latency and resource consumption. |

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/prompt/ModelPreference#ModelPreference()()` |

## Constants

### FAST

```
const val FAST = 1: Int
```

Prefers models optimized for faster inference speed, typically resulting in lower latency. This may be ideal for real-time applications.

### FULL

```
const val FULL = 2: Int
```

Prefers models offering the fullest capabilities, potentially including higher accuracy or more features, which may result in increased latency and resource consumption.

## Public constructors

### ModelPreference

```
ModelPreference()
```