# Prediction API

Prediction API allows users to request predictions by sending data to a trained model in Graphite Note.

<figure><img src="https://3727300098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgnR78y9L7FDWeb4jdvdW%2Fuploads%2Fuin1iwI473t6rp8pGp1m%2Fimage.png?alt=media&#x26;token=c97af477-478d-43de-8a40-cbbc7e15c705" alt="" width="563"><figcaption><p>Prediction API marked in red</p></figcaption></figure>

***

To interact with the Graphite Note API and perform predictions using a specific model, you need to make a POST request to the API endpoint. Depending on the model type and use case, you can now use two different versions of the API, each with its own request body format:

* **v1 Endpoint** – for backward-compatible, alias-based input
* **v2 Endpoint** – for simplified, column-name-based input (recommended for new users)

***

In the following sections, you will find more details about the Prediction API.
