OpenAI 公佈了 ChatGPT 的付費 API 了:「Introducing ChatGPT and Whisper APIs」。
比較意外的是這次的 model 價錢直接比 text-davinci-003
(GPT-3.5) 少了 90%,也就是直接 1/10 的價錢:
Model: The ChatGPT model family we are releasing today, gpt-3.5-turbo, is the same model used in the ChatGPT product. It is priced at $0.002 per 1k tokens, which is 10x cheaper than our existing GPT-3.5 models. It’s also our best model for many non-chat use cases—we’ve seen early testers migrate from text-davinci-003 to gpt-3.5-turbo with only a small amount of adjustment needed to their prompts.
看起來基本的架構是相容的,現有的 text-davinci-003
轉到 gpt-3.5-turbo
看起來不用花太多功夫?不過 API 是不同隻,不能直接轉:
We’ve created a new endpoint to interact with our ChatGPT models[.]
從 Python bindings 可以看到新的用法:
import openai
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Tell the world about the ChatGPT API in the style of a pirate."}]
)
print(completion)
這樣就真的就可以想像得到很多 startup 的輪替了...