Z-Image API and MCP: how to add image generation to your project
Z-Image is an image generation model. NeuralSpace offers the following models: Z-Image. They all run through a single public API, and there is a ready MCP server for AI agents. The key is issued on the API keys page. Below are the model capabilities, request examples and setup steps.
What Z-Image can do
Z-Image generates images from a text description with a single price per image. It works in text-to-image mode and suits quick tasks where you need one image from a short description.
API endpoint
Send a request to POST /v1/images/generations. Example: {"model": "z-image", "prompt": "a minimalist poster"}. Authorization uses an API key in the x-api-key header. Available model ids: z-image.

MCP tools
The NeuralSpace MCP server is available at POST /mcp (Streamable HTTP). To work with Z-Image, an agent uses the tools: generate_image, list_models, get_balance. This lets Claude Code, Cursor and other MCP clients use the site models directly.
How to connect
Sign up on NeuralSpace, open the API keys page and create an nsk-… key. Then pass it in the request header or in your MCP client settings. Full documentation is on the the /v1/docs page.
FAQ
What is the price per image?
A single price per image.
Does it support references?
No, text-to-image only.
What format is the request?
POST /v1/images/generations with model and prompt fields.