【Undying API】源头供应Gemini API,支持Gemini CLI中转,抽奖最高送$1000额度

Undying API 为您提供纯正 vertex-ai 渠道,支持 Gemini CLI 中转功能,同时完美兼容 OpenAI/Gemini 格式调用

:backhand_index_pointing_right: 立即体验: https://vip.undyingapi.com
:gem_stone: 注册即送 1 刀额度
:money_bag: 价格低至 0.2 元/刀, 量大者可 咨询客服 获取更优惠价格

:wrapped_gift: 抽奖活动

时间:2025/8/23 21:00
奖品:

  • 第1楼:$1000 额度
  • 第2楼:$200 额度
  • 第3-10楼:$100 额度

:pushpin: 参与方式

  1. 注册 Undying API(截止 8/23 21:00)
  2. 本帖留言

:sparkles: 公平规则说明

================================================================================
                            LINUX DO 抽奖结果 - 0.1.1                             
================================================================================
帖子链接: https://linux.do/t/topic/889949
帖子标题: 【Undying API】源头供应Gemini API,支持Gemini CLI中转,抽奖最高送$1000额度
帖子作者: thisrainy
发帖时间: 2025-08-22 09:42:55
--------------------------------------------------------------------------------
抽奖时间: 2025-08-24 15:51:16
参与楼层: 2 - 259 楼
有效楼层: 258 楼
中奖数量: 10 个
最终种子: 5d89c5908a0dab295c45d268d2e8ac6146168420b42b4a8f28989dcb33fd759f
--------------------------------------------------------------------------------
恭喜以下楼层中奖:
--------------------------------------------------------------------------------
[  1   ]  172 楼,楼层链接: https://linux.do/t/topic/889949/172
[  2   ]  215 楼,楼层链接: https://linux.do/t/topic/889949/215
[  3   ]  184 楼,楼层链接: https://linux.do/t/topic/889949/184
[  4   ]  257 楼,楼层链接: https://linux.do/t/topic/889949/257
[  5   ]   46 楼,楼层链接: https://linux.do/t/topic/889949/46
[  6   ]  188 楼,楼层链接: https://linux.do/t/topic/889949/188
[  7   ]  220 楼,楼层链接: https://linux.do/t/topic/889949/220
[  8   ]    3 楼,楼层链接: https://linux.do/t/topic/889949/3
[  9   ]  126 楼,楼层链接: https://linux.do/t/topic/889949/126
[  10  ]   77 楼,楼层链接: https://linux.do/t/topic/889949/77
================================================================================
注: 楼层顺序即为抽奖顺序
================================================================================


Gemini CLI 中转配置教程

前提 需要安装Node.js version 18 及以上版本

教程:

  1. 安装 gemini-cli

    npm install -g @google/gemini-cli
    
  2. 设置环境变量,你的 apikey 和 baseurl

    echo 'export GOOGLE_GEMINI_BASE_URL=https://vip.undyingapi.com' >> ~/.profile
    echo 'export GEMINI_API_KEY="你在undyingapi.com申请的令牌"' >> ~/.profile
    
  3. 刷新加载环境变量

    source ~/.profile
    
  4. 启动gemini

    gemini
    
  5. 进入gemini之后选择 Use Gemini API Key 选项即可开启聊天

各系统设置详解

macOS(默认 zsh,推荐写入 ~/.zshrc)

将环境变量写入 ~/.zshrc(登录 Shell 用 ~/.zprofile 也可):

echo 'export GOOGLE_GEMINI_BASE_URL=https://vip.undyingapi.com' >> ~/.zshrc
echo 'export GEMINI_API_KEY="你在undyingapi.com申请的令牌"' >> ~/.zshrc
source ~/.zshrc

验证是否生效:

echo $GOOGLE_GEMINI_BASE_URL
echo $GEMINI_API_KEY

说明:当前教程示例使用 ~/.profile 也能生效,但在 macOS 的 zsh
下更推荐 ~/.zshrc/~/.zprofile

Linux(bash 常见)

将环境变量写入 ~/.bashrc(若仅登录 Shell 生效可写 ~/.profile):

echo 'export GOOGLE_GEMINI_BASE_URL=https://vip.undyingapi.com' >> ~/.bashrc
echo 'export GEMINI_API_KEY="你在undyingapi.com申请的令牌"' >> ~/.bashrc
source ~/.bashrc

验证是否生效:

echo $GOOGLE_GEMINI_BASE_URL
echo $GEMINI_API_KEY

若使用其他 Shell(如 fish、zsh),请写入对应的启动配置文件并使用该
Shell 的加载命令。

Windows(gemini cli 部署配置)

步骤 1:安装 gemini-cli(确保已安装 Node.js,建议 LTS 版本)

npm install -g @google/gemini-cli

步骤 2:设置环境变量(API Key 和 Base URL)

方法 A:临时设置(仅当前终端有效)

  • PowerShell:

    $env:GOOGLE_GEMINI_BASE_URL = "https://vip.undyingapi.com"
    $env:GEMINI_API_KEY = "你在undyingapi.com申请的令牌"
    
  • CMD:

    set GOOGLE_GEMINI_BASE_URL=https://vip.undyingapi.com
    set GEMINI_API_KEY=你在undyingapi.com申请的令牌
    

方法 B:永久设置(推荐,重启终端生效)

  • 命令行写入用户环境:

    setx GOOGLE_GEMINI_BASE_URL "https://vip.undyingapi.com"
    setx GEMINI_API_KEY "你在undyingapi.com申请的令牌"
    
  • 图形界面手动设置:

    1. 打开 开始菜单 → 输入"环境变量" → 编辑系统环境变量
    2. 点击 环境变量(N)...
    3. 在 用户变量 中添加:

步骤 3:刷新环境变量

重新打开 PowerShell 或 CMD 使其生效,或(可选,需 Chocolatey 支持):

refreshenv

步骤 4:启动 gemini

gemini

Git Bash / WSL:也可按 Linux 的方式配置,将变量写入 ~/.bashrc
source ~/.bashrc

启动与使用

环境变量设置完成后,执行:

gemini

进入交互界面后,选择「Use Gemini API Key」开始对话。

63 个赞

我来抽奖

1 个赞

来了来了

1 个赞

我来抽奖

1 个赞

新的富可敌国吗,参与一下

1 个赞

抽奖抽奖

1 个赞

拉低中奖率

1 个赞

来抽奖了!

1 个赞

前来支持

1 个赞

支持支持

1 个赞

来抽奖了!

1 个赞

来了来了

1 个赞

牛逼牛币,再次参与

参与参与下

参与一下

正在用,顺便也抽个奖

参与一下!

来了来了

谢谢佬友支持

参与一下