Tous les guides

OpenAI follows your Site brief, notes per language, tone and glossary, so it suits pages where wording matters. OpenAI bills by tokens, and new API accounts pay from credit bought in advance.

A ChatGPT Plus subscription doesn’t include API use. The API is billed on its own.

Obtenez la clé

  1. Go to the OpenAI API platform and sign up or sign in.
  2. Open the billing overview, click Add payment details and buy credit. The minimum is $5, and purchased credit expires after one year in most countries.
  3. Check Use auto-reload before you confirm. It’s on by default, so turn it off if you don’t want OpenAI to buy more credit by itself.
  4. Open API keys and click Create new secret key. Name it, for example “Lango7 example.com”.
  5. Copy the key straight away. It starts with sk- and you can’t view it again.

Anyone with the key can spend your credit, so don’t put it in emails, screenshots or support messages. If it leaks, delete it on the API keys page and create a new one.

Ajoutez-le à Lango7

  1. Allez à Translate → Paramètres → Moteur de traduction.
  2. Paste the key into the OpenAI box.
  3. Under Model, pick one. GPT-5 nano is the default and costs least; GPT-5 mini balances quality and cost.
  4. Cliquez sur Tester et enregistrer. Lango7 envoie une courte phrase de test et n'enregistre la clé que si elle fonctionne.

Les clés sont stockées cryptées. Si vous préférez garder la clé hors de la base de données, ajoutez plutôt define( 'LANGO7_OPENAI_KEY', '…' ); à wp-config.php.

Contrôlez la facture

  • In the OpenAI platform, open your project’s Limits, set a monthly spend limit and turn on Enforce a hard limit. Without it, the limit only tracks spending. OpenAI says enforcement isn’t instant.
  • Dans Lango7, définissez une limite quotidiennement character.
  • Turn off auto-reload if you don’t want credit bought automatically.