Skip to main content

OpenAI Setup

Env variables​

apps/api/.env
OPENAI_API_KEY=...

OPENAI_API_KEY​

Create an api key by visiting OpenAI platform

danger

Please setup usage limits to avoid overspend during testing phases. e.g: Scenarions where a very large document is embed using openai will incur more cost than usual. Try to use smaller documents for testing purposes.

Models to enable​

Within the OpenAi platform, go to Project -> Limits and enable the following models

Models to request access:

  • gpt-4o
  • gpt-4o-mini
  • dall-e-3
  • gpt-3.5-turbo
  • gpt-4-turbo
  • text-embedding-3-small
  • text-embedding-3-large
  • text-embedding-ada-002

openai-models