這是一張有關標題為 How to Apply for a Free ChatGPT API Key 的圖片

How to Apply for a Free ChatGPT API Key

No phone verification required, obtain API key for free

This method is currently no longer valid.

What is ChatGPT?

ChatGPT is a language model developed by OpenAI, utilizing generative pre-trained transformers (GPT) to learn natural language processing capabilities through extensive textual content. It understands user inputs and generates corresponding responses based on the context.

In programming, ChatGPT can answer questions about various programming languages, libraries, and frameworks, provide code snippets, and explain their workings or give relevant suggestions.

It can also offer advice on editing and proofreading or translate content into English, Japanese, and other languages.

While it is an essential tool for modern computer users, it should not be overly relied upon, as the output may sometimes contain incorrect information.

ChatGPT API Key

Traditionally, to use ChatGPT, you would visit the official website and use the web interface to interact and receive responses.

With the API key provided by OpenAI, you can access the service through the official API, integrating it with other services.

For example, using an API key, you can:

  1. Integrate with VS Code plugins (Genie AI for coding queries and suggestions)
  2. Use browser extensions (ChatGPT Summary for Chrome for page summaries)
  3. Use command line interfaces (SGPT for direct interaction with ChatGPT in the terminal)
  4. Translation software
  5. Mobile apps (Keybot, OpenCat, etc.)

The pricing for API keys, according to the official description, can be summarized in the table below:

ModelInputOutput
gpt-3.5-turbo-1106$0.0010 / 1K tokens$0.0020 / 1K tokens
gpt-3.5-turbo-instruct$0.0015 / 1K tokens$0.0020 / 1K tokens
gpt-4-1106-preview$0.01 / 1K tokens$0.03 / 1K tokens
gpt-4-1106-vision-preview$0.01 / 1K tokens$0.03 / 1K tokens
gpt-4$0.03 / 1K tokens$0.06 / 1K tokens
gpt-4-32k$0.06 / 1K tokens$0.12 / 1K tokens

A verified phone number provides $5 of usage credit within three months. You can generate an API key via the official channel and start using it immediately.

For unverified accounts or accounts that have exhausted their credit, a session API key is generated when logging into the API page. This key allows access to ChatGPT API without any cost.

Obtaining the Session API Key

  1. First, log in at the official website (Login). If you don’t have an account, you can register one without phone number verification.

    Register and log in

  2. After logging in, the URL should be https://platform.openai.com/docs/overview

    Overview page

  3. Open Developer Tools (F12) and find the Network tab.

    Refresh the page to see the login entry. In the preview on the right, you will find the sensitive_id, which is the session key or API key.

    Find the session key in Developer Tools

Conclusion

After copying the API key, you can paste it into any third-party application requiring the API. The key features are:

  1. Valid for 14 days; a new key is required after expiry.
  2. Re-logging within 14 days will invalidate the key.
  3. Supports only gpt-3.5 and lower versions; gpt-4 is not supported.
  4. Use it discreetly.

References

  1. ChatGPT
Theme Stack designed by Jimmy