smartapi-images
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@smartapi-imagesCreate a realistic painting of a sunset over the ocean."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SmartAPI Images for Codex
smartapi-images packages a local MCP server and a Codex skill for generating one image through
SmartAPI's explicit POST /v1/images/generations endpoint.
The Codex reasoning model remains a text model such as gpt-5.6-sol. When the user asks for an
image, Codex calls the generate_image tool, which spends the user's SmartAPI balance and saves the
returned image locally.
Requirements
Node.js 20 or newer
A normal SmartAPI user key with enough available balance
Related MCP server: OpenAI Image Generation MCP Server
Local setup
corepack pnpm install
corepack pnpm check
export SMARTAPI_API_KEY='sk-smart-...'The default API URL is https://api.smartapi.shop/v1. Generated files are written to
~/Pictures/SmartAPI by default. Override either setting without editing the repository:
export SMARTAPI_BASE_URL='https://api.smartapi.shop/v1'
export SMARTAPI_IMAGE_OUTPUT_DIR="$HOME/Pictures/SmartAPI"For a direct Codex MCP configuration:
[mcp_servers.smartapi_images]
command = "node"
args = ["/absolute/path/to/smartapi-images/dist/index.js"]
env_vars = ["SMARTAPI_API_KEY", "SMARTAPI_BASE_URL", "SMARTAPI_IMAGE_OUTPUT_DIR"]
tool_timeout_sec = 360
enabled_tools = ["generate_image"]Never put a SmartAPI key in .mcp.json, config.toml, source files, logs, or Git.
Tool
generate_image accepts:
prompt: required image descriptionsize:autoor anyWIDTHxHEIGHT; SmartAPI reports the normalized effective sizequality:auto,low,medium, orhighoutput_format:png,jpeg, orwebpfilename: optional safe filename without an extension
The tool never overwrites a file and never retries an ambiguous network or timeout failure. It returns the absolute file path, effective size, charged tokens, and SmartAPI request ID.
Development
corepack pnpm typecheck
corepack pnpm test
corepack pnpm buildTests use a local mock HTTP server and never call SmartAPI.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/smrcdr/smartapi-images'
If you have feedback or need assistance with the MCP directory API, please join our Discord server