Skip to main content

OpenAI

Use OpenAI's GPT models as the AI provider for BDD and test case generation.

Get an API key

  1. Go to platform.openai.comAPI keysCreate new secret key.
  2. Copy the key — it starts with sk-.
Billing required

OpenAI requires a paid plan with a positive credit balance. New accounts receive a small free credit for experimentation.

Configure in QA Hub

  1. Go to Settings → AI Model.
  2. Select OpenAI as the provider.
  3. Paste your API key.
  4. Select a model.
  5. Click Test connection, then Save.

Available models

ModelSpeedContextBest for
gpt-4oFast128K tokensBest quality, recommended default
gpt-4o-miniVery fast128K tokensCost-conscious, high-volume generation
o1-miniSlow128K tokensComplex reasoning, long acceptance criteria

Pricing

OpenAI charges per million tokens. Approximate costs per 100 test cases generated:

ModelEstimated cost
gpt-4o-mini~$0.02
gpt-4o~$0.20
o1-mini~$0.30

Estimates vary depending on acceptance criteria length.

Troubleshooting

ErrorCauseFix
401 UnauthorizedInvalid or expired API keyRegenerate the key
429 insufficient_quotaBilling quota exhaustedTop up credits; QA Hub sets the quotaExhausted flag
429 rate_limit_exceededPer-minute limit hitRetry — QA Hub treats this as transient, no flag set