is_valid_api_key
Keys are known to start with “sk-”, “sk-proj”, “sk-None”, and “sk-svcaat” Parameters:
Returns:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
is_valid_api_key(api_key: str) -> bool
| Name | Description |
|---|---|
api_key | An input string to be validated. Type: str |
| Type | Description |
|---|---|
| bool | bool: A boolean that indicates if input is valid OpenAI API key. |