codex 生图工具包
在 Codex 中生成和编辑图片
先运行对应系统的安装命令,按中文向导填写 API Key、选择模型并检查连接。
(
case "$(uname -s)-$(uname -m)" in
Darwin-arm64) target=darwin-arm64; launcher=install.command ;;
Darwin-x86_64) target=darwin-amd64; launcher=install.command ;;
Linux-aarch64|Linux-arm64) target=linux-arm64; launcher=install.sh ;;
Linux-x86_64) target=linux-amd64; launcher=install.sh ;;
*) echo "当前系统或芯片暂不支持此命令。" >&2; exit 1 ;;
esac
work=$(mktemp -d) || exit 1
trap 'rm -rf -- "$work"' EXIT
curl -fsSL "https://www.mosshubs.com/docs/downloads/installers/mosshubs-image-tool/1.2.5/mosshubs-image-tool-1.2.5-$target.zip" -o "$work/package.zip" &&
unzip -q "$work/package.zip" -d "$work" &&
cd "$work" && bash "$launcher"
)跟着中文向导填写 Key、选择模型,完成连接检查后,直接用中文描述你想要的图片。
在 Codex 中生成和编辑图片
install.command,按提示粘贴 API Key。# 仅 Linux 用户
sh install.shmosshubs-image-tool uninstall --purge(Windows 执行 mosshubs-image-tool.exe)。