---
title: Get a Single Prediction
sidebarTitle: Get a Single Prediction
---

## Description

The `query()` function fetches a single prediction from the model.

## Syntax

Here is the syntax:

```
await model_name.query(queryOptions);
```

<Tip>
Here are some useful links:
- [training options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_trainingOptions.TrainingOptions.html),
- [query options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_queryOptions.QueryOptions.html),
- [batch query options](https://mindsdb.github.io/mindsdb-js-sdk/interfaces/models_queryOptions.BatchQueryOptions.html).
</Tip>
