Skip to content

OpenAI ​

OpenAI provides the GPT series of models, including GPT-4o, GPT-4, and GPT-3.5.

Setup ​

  1. Get an API key from platform.openai.com/api-keys
  2. In Alma, go to Settings → Providers → Add Provider
  3. Select OpenAI as the provider type
  4. Enter your API key
  5. Click Save

Available Models ​

After setup, Alma fetches available models automatically. Common models include:

ModelDescriptionContext Window
gpt-4o-miniSmaller, faster, cost-effective version of GPT-4o128K
gpt-4oFlagship model, multimodal128K
gpt-4-turboPrevious generation flagship128K
gpt-4Original GPT-48K
gpt-3.5-turboFast and cost-effective16K
o1-previewReasoning model (extended thinking)128K
o1-miniSmaller reasoning model128K

Configuration Options ​

Base URL ​

Leave empty for official OpenAI API. Set a custom URL for:

  • OpenAI-compatible proxies
  • Self-hosted models
  • Regional endpoints

Organization ID ​

If your API key belongs to multiple organizations, specify the organization ID to use.

Features ​

Vision ​

GPT-4o and GPT-4-turbo support image inputs. Attach images to your messages for visual analysis.

Tools ​

OpenAI models fully support Alma's tool system for file operations, web search, and more.

JSON Mode ​

Request structured JSON output for parsing and automation.

Pricing ​

See OpenAI Pricing for current rates. Costs are based on:

  • Input tokens (your messages)
  • Output tokens (AI responses)
  • Image inputs (for vision models)

Troubleshooting ​

"Invalid API Key" ​

  • Verify the key at platform.openai.com
  • Check for extra spaces in the key
  • Ensure the key has not been revoked

"Rate Limited" ​

  • You've exceeded your usage tier limits
  • Wait a few minutes or upgrade your plan
  • Consider using a smaller model

"Model Not Found" ​

  • The model may not be available in your region
  • Check model availability in your OpenAI dashboard
  • Try fetching models again