代码:
from curl_cffi import requests
headers = {
'accept': '*/*',
'accept-language': 'zh-CN,zh;q=0.9',
'authorization': 'Bearer xxx',
'cache-control': 'no-cache',
'content-type': 'application/json',
'oai-language': 'zh-CN',
'origin': 'https://chatgpt.com',
'pragma': 'no-cache',
'priority': 'u=1, i',
'referer': 'https://chatgpt.com/',
'sec-ch-ua': '"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"',
'sec-ch-ua-arch': '"x86"',
'sec-ch-ua-bitness': '"64"',
'sec-ch-ua-full-version': '"140.0.7339.210"',
'sec-ch-ua-full-version-list': '"Chromium";v="140.0.7339.210", "Not=A?Brand";v="24.0.0.0", "Google Chrome";v="140.0.7339.210"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-model': '""',
'sec-ch-ua-platform': '"Windows"',
'sec-ch-ua-platform-version': '"15.0.0"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'
}
json_data = {
'plan_name': 'chatgptteamplan',
'team_plan_data': {
'workspace_name': 'Fovt',
'price_interval': 'month',
'seat_quantity': 5,
},
'billing_details': {
'country': 'JP',
'currency': 'USD',
},
'cancel_url': 'https://chatgpt.com/?numSeats=5&selectedPlan=month&referrer=https%3A%2F%2Fauth.openai.com%2F#team-pricing-seat-selection',
'promo_campaign': 'team-1-month-free',
'checkout_ui_mode': 'redirect',
}
for i in range(100):
id = requests.post('https://chatgpt.com/backend-api/payments/checkout', headers=headers, json=json_data, impersonate="chrome101").json()["checkout_session_id"]
url = f"https://chatgpt.com/checkout/openai_llc/{id}"
print(url)
开车步骤
第一步:一个有资格的ChatGPT TEAM试用账号第二步:提取账号的AT,并替换脚本headers-authorization中的xxx为你的AT
- 直接访问下面链接即可获取AT:
第四步:你会获得N个付款链接,依次付款,付款N个,账号就会出现N个TEAM
说明:
- 一定要是0刀的才可以1刀不行
- 开tun模式,否则可能会报错
- 不确保一直可用,随时可能失效
代码:
from curl_cffi import requests
headers = {
'accept': '*/*',
'accept-language': 'zh-CN,zh;q=0.9',
'authorization': 'Bearer at',
'cache-control': 'no-cache',
'chatgpt-account-id':"团队空间id",
'content-type': 'application/json',
'Dnt':"1",
'oai-client-version': 'prod-e17eef4be1de2d3bd6648da3e7bdb4689f5d4769',
'oai-language': 'en-US',
'origin': 'https://chatgpt.com',
'priority': 'u=1, i',
'referer': 'https://chatgpt.com/admin',
'sec-ch-ua': 'Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'sec-gpc': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36'
}
json_data = {
"email_addresses": [
"待邀请邮箱"
],
"role": "standard-user",
"resend_emails": True
}
ret = requests.post('https://chatgpt.com/backend-api/accounts/团队空间id/invites', headers=headers, json=json_data, impersonate="chrome101")
print(ret.text)