> ## Documentation index
> Fetch the complete documentation index at: https://docs.prescientai.com/llms.txt
> Use this file to discover all available pages before exploring further. Add `.md` to any page URL to get that page as Markdown.

# models

> Reference for the models query of the Prescient GraphQL API, with its return type and an example request.

```graphql
# Query
models: [Model!]!
```

Returns all of the available models.

## Arguments

This query takes no arguments.

## Returns

The query returns [`Model`](https://docs.prescientai.com/api/types#model), written as `[Model!]!` in the schema. The type has these fields.

| Field  | Type          | Nullable | Description                                            |
| ------ | ------------- | -------- | ------------------------------------------------------ |
| `name` | `String!`     | No       | The name of the model                                  |
| `unit` | `MetricUnit!` | No       | The unit in which this model's metrics are measured in |

## Example request

Send the query in the `query` field of the request body.

```graphql title="Query"
query models {
  models {
    name
    unit
  }
}
```

## Example response

The values in this response are examples. They are not real data.

```json title="Response"
{
  "data": {
    "models": [
      {
        "name": "example_revenue",
        "unit": "REVENUE"
      }
    ]
  }
}
```
