You can enable Graphite, Nhost’s AI service, with the following steps:
1

Check your database version

Check your project’s settings and make sure the database version is at least 14.6-20231018-1. If it isn’t upgrade your database version (latest available version is recommended).
database settings
2

Get an OpenAPI key

Get an OpenAI API key from their customer portal.openai dashboard
3

Configure the service

Finally, you can head to your project’s settings -> AI section and enable the service or, alternatively, use your TOML configuration file to enable the service:
ai configuration screenshot