HIVE

Integrations

OpenAI

OpenAI Integration

Connect OpenAI models to your HIVE Protocol account.

Setup

Getting Your API Key

  1. Go to OpenAI Platform
  2. Sign in or create an account
  3. Navigate to API Keys
  4. Click Create new secret key
  5. Copy the key (it won't be shown again)

Adding to HIVE Protocol

  1. Go to Settings > Integrations
  2. Find the OpenAI card
  3. Click Configure
  4. Paste your API key
  5. Click Save

Available Models

ModelDescriptionContext
gpt-4oMost capable, multimodal128K
gpt-4o-miniFast and affordable128K
gpt-4-turboHigh performance128K
gpt-3.5-turboQuick and economical16K

Configuration Options

Provider: OpenAI
API Key: sk-...

Default Model: gpt-4o
Temperature: 0.7
Max Tokens: 4096

Organization ID: org-... (optional)

Usage Notes

Rate Limits

OpenAI enforces rate limits based on your usage tier:

TierRPMTPM
Free340,000
Tier 1500200,000
Tier 25,0002,000,000
Tier 3+HigherHigher

Error Handling

Common errors and solutions:

ErrorCauseSolution
401Invalid API keyCheck key in Settings
429Rate limitWait or upgrade tier
503Service unavailableRetry in a few minutes

Best Practices

1. Use Organization ID

If you have multiple OpenAI organizations:

API Key: sk-...
Organization: org-abc123

2. Monitor Usage

Check OpenAI dashboard for:

  • Current usage
  • Cost breakdown
  • Rate limit status

3. Choose the Right Model

NeedModel
Highest qualitygpt-4o
Balance of cost/qualitygpt-4o-mini
Budget-friendlygpt-3.5-turbo

Cookie Preferences

We use cookies to enhance your experience, analyze site traffic, and for marketing purposes. By clicking "Accept All", you consent to our use of cookies. Read our Privacy Policy for more information.