再为openclaw找点粮食:openrouter

再为openclaw找点粮食:openrouter 再为openclaw找点粮食openrouter缘起自从养了龙虾最担心的就是龙虾饿着————没有tokens了所以每次看到有免费的api总想着薅起来注册今天介绍的赛博菩萨就是openrouter。地址https://openrouter.ai/作为找粮老手注册-create api key 就不赘述了。界面可以看到免费的模型直接按照价格倒序不过唯一需要记住的是模型名字并不是配置的时候的id一般可以通过接口查询https://openrouter.ai/api/v1/models配置openclaw的配置文件openrouter:{baseUrl:https://openrouter.ai/api/v1,apiKey:${OPENROUTER_API_KEY},api:openai-completions,models:[{id:openrouter/hunter-alpha,name:openrouter/hunter-alpha,reasoning:false,input:[text],cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:256000,maxTokens:8192}]},测试切换模型/models /models openrouter /model openrouter/openrouter/hunter-alpha聊天试试万事大吉神迹既然叫router没点本事怎么能呢就是他有有个虚拟的模型idopenrouter/free他会自动寻找免费模型调用_小结随时为自己的龙虾找点粮食养好龙虾好好干活欢迎关注再为openclaw找点粮食openrouter