@black_samurai 在 用AI写了一个批量查询gemini-key状态码400和403的脚本 中发帖
每天用T佬的gpt-load跑一遍只有十不存一,也不知道哪些是429还是400/403,干脆用AI写了一个批量查询gemini-key状态码400和403的脚本,上游地址用的是https://api-proxy.me/gemini 默认10个并发
[wechat_2025-09-11_170719_538]
完整代码
import requests
import concurrent.futures
import time
from tqdm import tqdm
import threading
import os
# 锁用于线程安全的文件写入
file_lock = threading.Lock()
def test_api_key(api_key):
"""
测试单个API key的有效性
"""
# 设置请求头
headers ...