免费5000万token GLM5和MiniMax-M2.5

正常领取是2500万token,一个月到期。 并发领取能领取两次就是5000万。其中2500万会在一个月后过期,另外2500万token则是到2026年12月31日到期。 (我注册了8亿token,到时候发出来给大家用) 登录 https://eaichat.ctyun.cn/chat/ 获取coo...
免费5000万token GLM5和MiniMax-M2.5
免费5000万token GLM5和MiniMax-M2.5

正常领取是2500万token,一个月到期。

并发领取能领取两次就是5000万。其中2500万会在一个月后过期,另外2500万token则是到2026年12月31日到期。

(我注册了8亿token,到时候发出来给大家用)

fa65aa54d9ef093c7ff21c070f788a68

登录 https://eaichat.ctyun.cn/chat/ 获取cookie 填入脚本执行领取。

打开 https://pc.ctyun.cn/#/desktop-list 登录刚刚领取的云电脑,桌面有个云智助手,获取API Key。

里面有个coding plan是刚上新的,跟天翼云的息壤套餐不一样。

价格40一个月。

电信的可以直接领取,联通和移动需要下载天翼云电脑APP登录身份证实名。

可以尝试注销了重新注册看看能不能重复领取。

image

image

import asyncio
from typing import Dict, List

import aiohttp
import sys

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

def build_request_headers() -> Dict[str, str]:
    headers = {
        "Host": "eaichat.ctyun.cn",
        "Accept": "application/json, text/plain, */*",
        "Content-Type": "application/json",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
        "Cookie": ""
    }
    
    return headers


def build_request_payload() -> Dict[str, int]:
    payload = {
        "mirrorType": 1
    }
    
    return payload


async def send_single_request(
    session: aiohttp.ClientSession,
    url: str,
    headers: Dict[str, str],
    payload: Dict[str, int],
    task_id: int
) -> None:
    try:
        # 本地 HTTPS 环境通常无有效证书,配置 ssl=False 避免证书验证报错
        async with session.post(url, headers=headers, json=payload, ssl=False) as response:
            status_code = response.status
            
            #print(f"[Task {task_id:03d}] 请求完成,状态码: {status_code}")
            
    except Exception as error:
        #print(f"[Task {task_id:03d}] 请求发生异常: {error}")
        pass


async def execute_load_test(
    target_url: str,
    concurrency_level: int
) -> None:
    headers = build_request_headers()
    
    payload = build_request_payload()
    
    connector = aiohttp.TCPConnector(limit=concurrency_level, ssl=False)
    
    async with aiohttp.ClientSession(connector=connector) as session:
        tasks: List[asyncio.Task] = []
        
        for index in range(concurrency_level):
            task = asyncio.create_task(
                send_single_request(session, target_url, headers, payload, index + 1)
            )
            
            tasks.append(task)
            
        await asyncio.gather(*tasks)


def main() -> None:
    target_url = "https://eaichat.ctyun.cn/api/v1/openclaw-hub/desktop-claims"
    
    concurrency_level = 200
    
    print(f"开始向 {target_url} 并发发送 {concurrency_level} 个请求...")
    
    # 启动异步事件循环
    asyncio.run(execute_load_test(target_url, concurrency_level))
    
    print("\n所有并发请求测试执行完毕。")


if __name__ == "__main__":
    main()

2 个帖子 - 2 位参与者

阅读完整话题

来源: linux.do查看原文