gpt4 book ai didi

python - 如何检查 AlchemyAPI 中剩余的调用次数? Python

转载 作者:太空宇宙 更新时间:2023-11-03 12:59:38 26 4
gpt4 key购买 nike

AlchemyAPI 的免费用户每天可以调用 1000 个请求 (http://www.alchemyapi.com/products/pricing/)。

我一直在使用 python 访问 API:

from alchemyapi import AlchemyAPI
demo_text = 'Yesterday dumb Bob destroyed my fancy iPhone in beautiful Denver, Colorado. I guess I will have to head over to the Apple Store and buy a new one.'
response = alchemyapi.keywords('text', demo_text)
json_output = json.dumps(response, indent=4)
print json_output

我知道我用完了调用,因为请求是响应返回 None。

如何通过 python 界面查看我剩余的调用次数?

支票会算作一个请求吗?

最佳答案

您可以使用 Here 中的 alchemy_calls_left(api_key) 函数

不,它本身不算作调用。

关于python - 如何检查 AlchemyAPI 中剩余的调用次数? Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27107571/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com