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. Note that since April 2024, API keys caught by this detector are being deprecated in favor of Project API Keys.

Details for OpenAI API Key​

  • Family: token

  • Category: ai

  • Company: OpenAI

  • High recall: True

  • Validity check available: True

  • Analyzer available: True

  • Revoker available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 120.77

  • Prefixed: True

Secret Analyzer​

Analysis Method​

  • Provider allows scopes enumeration: False
  • Total network call count: 14
  • Total call count may vary: True

HTTP Calls​

Requests are designed to capture metadata and not to function effectively.

  • DELETE: /v1/responses/*
  • GET: /v1/files
  • GET: /v1/fine_tuning/jobs
  • GET: /v1/me
  • GET: /v1/models
  • GET: /v1/responses/*
  • POST: /v1/files
  • POST: /v1/fine_tuning/jobs
  • POST: /v1/moderations

Other Calls​

Non-HTTP queries or HTTP calls made through a third-party app (e.g., Python package). No other calls for this analyzer.

Revoker​

Auth Credentials​

Valid credentials needed to authenticate the request.

  • email: Reporter's email

HTTP Calls​

List of calls performed by the revoker.

  • POST: /external/compromised_secret

Revocation Mode​

Revocation is asynchronous.