# AI API

The AI API is the REST API for models, conversions, datasets, projects with their training runs, and jobs in Luxonis Hub. All
requests go to the base URL `https://api.cloud.luxonis.com/ai`. Each path starts with its service name, such as `/models/...` or
`/datasets/...`. Conversions have no prefix of their own. They belong to the models service, under
`/models/api/v1/modelInstances/{model_instance_id}/export/...`.

Authenticate with a Hub API key in the `Authorization` header with the `Bearer` prefix. See [API
keys](https://docs.luxonis.com/cloud/api/api-keys.md) to create one.

```bash
curl https://api.cloud.luxonis.com/ai/models/api/v1/models \
  -H "Authorization: Bearer <your-api-key>"
```

To call the API from Python, use the [Luxonis Hub AI SDK](https://docs.luxonis.com/cloud/hubai/model-registry/hubai-sdk.md).
