MCP servers · Stability AI · MCP server
Connect Codex CLI to Stability AI
One line gives Codex CLI your Stability AI account as tools: 6 endpoints, generate image, engines, more, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.
Three steps
- Create a free 0n3 account and connect Stability AI. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
- Ask Codex CLI: whoami. Then: "Text to image in Stability AI".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"
Add it to your shell profile so Codex finds it next time.
The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.
What Codex CLI can then do in Stability AI
Generate image · Generate and edit images3
Text to image
POST /v1/generation/{engine_id}/text-to-imageImage to image
POST /v1/generation/{engine_id}/image-to-imageUpscale
POST /v1/generation/{engine_id}/image-to-image/upscaleEngines · List available engines1
List engines
GET /v1/engines/listMore · Everything else this app exposes.2
Get an account
GET /v1/user/accountGet a balance
GET /v1/user/balanceStability AI in other AI clients
Claude Code + Stability AIMCP server + skillClaude (desktop & claude.ai) + Stability AIconnectorChatGPT + Stability AIconnector · GPT actionGemini CLI + Stability AIMCP serverCursor + Stability AIMCP serverVS Code (Copilot) + Stability AIMCP serverWindsurf + Stability AIMCP server
