Skip to main content

OpenAI API Key

Description

General

  • Documentation: https://platform.openai.com/docs/introduction
  • Summary: OpenAI is an AI-based service that can be used to perform any task that involves understanding or generating natural language, code, or images. It provides a powerful API to interact with a wide variety of models. This detector aims at catching API keys for this service.
  • IPs allowlist: The number of IP addresses that can be used by a single user account can be reduced. Please refer to this documentation for more details.
  • Scopes: This information could not be found in the documentation.

Revoke the secret

Secrets can be revoked from the platform in the dedicated section.

Check for suspicious activity

Usage can be audited at a user level. This can help to detect suspicious activities.

Details for Openai apikey

  • Family: Api

  • Category: AI

  • Company: OpenAI

  • High recall: True

  • Validity check available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Minimum number of matches: 1

  • Occurrences found for one million commits: 0.35

  • Prefixed: True

  • PreValidators:

- type: ContentWhitelistPreValidator
patterns:
- sk-[0-9a-z]{40}

Examples

- text: |
openai.api_key = "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"
apikey: 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
- text: |
TOKEN=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
apikey: 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
- text: |
OPENAPI_API_KEY=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
apikey: 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

How can I help you ?