Skip to main content

Anthropic Claude

Use Anthropic's Claude models as the AI provider for BDD and test case generation. Claude excels at long-context documents and produces nuanced, detailed Gherkin scenarios.

Get an API key

  1. Go to console.anthropic.comAPI KeysCreate Key.
  2. Copy the key — it starts with sk-ant-.

Configure in QA Hub

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

Available models

ModelSpeedContextBest for
claude-sonnet-4-6Fast200K tokensProduction workloads, best quality/cost ratio
claude-haiku-4-5Very fast200K tokensHigh-volume, cost-efficient generation
claude-opus-4-7Slow200K tokensMaximum quality for complex test suites

Long-context advantage

Claude's 200K token context window allows QA Hub to include full specification documents, multiple Confluence pages, and rich acceptance criteria in a single generation call — resulting in more comprehensive and accurate test coverage than shorter-context models.

Pricing

Anthropic charges per million input/output tokens. Sonnet offers the best balance for typical QA Hub usage patterns.

Troubleshooting

ErrorCauseFix
401 authentication_errorInvalid API keyGenerate a new key
529 overloaded_errorAnthropic service busyRetry — treated as transient, no quota flag
Quota exhaustedCredit balance depletedTop up account; QA Hub sets the quotaExhausted flag