> For the complete documentation index, see [llms.txt](https://docs.graphite-note.com/graphite-note-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphite-note.com/graphite-note-documentation/rest-api/prediction-api.md).

# 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&amp;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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
