Get an Anthropic Claude API key

Pro1 min read

All guides

Claude follows your Site brief, notes per language, tone and glossary, so it suits pages where wording matters. Anthropic bills by tokens, from credit you buy in advance.

A Claude.ai subscription (Pro or Max) doesn’t include API use. The API is billed on its own.

Get the key

  1. Go to the Claude Console and sign up or sign in.
  2. Open Billing and buy credit. Keys don’t work until the account has credit.
  3. Open Settings → API keys and click Create key. Name it, for example “Lango7 example.com”.
  4. Copy the key straight away. It starts with sk-ant- and is shown only once.

Add it to Lango7

  1. Go to Translate → Settings → Translation engine.
  2. Paste the key into the Anthropic Claude box.
  3. Under Model, pick one. Sonnet is a good balance of quality and cost; Haiku costs least.
  4. Click Test and save. Lango7 sends a short test sentence and saves the key only if it works.

Keys are stored encrypted. If you’d rather keep the key out of the database, add define( 'LANGO7_ANTHROPIC_KEY', '…' ); to wp-config.php instead.

Keep the bill in check

  • In the Claude Console, set a monthly spend limit under Limits.
  • In Lango7, set a daily character limit.
  • Turn off auto-reload of credit if you don’t want charges to continue on their own.