# Prediction API

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

<figure><img src="/files/Z592G9zMIchiw340QS1u" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.graphite-note.com/graphite-note-documentation/rest-api/prediction-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
