# Image generation for AI agents > morigraph's image generation tool lets Claude, ChatGPT, Cursor, Codex or your own code create images from a written description, using Seedream from BytePlus and Stable Image from Stability AI. It needs no account or API key with either. An image costs 0.6 to 1.8 credits, about 6 to 18 cents, and is saved to your workspace with a link. - **Tool name**: `image_gen` - **Price**: 0.6 to 1.8 credits ($0.06 to about $0.18) a call - **Providers**: BytePlus and Stability AI - **Call it from**: MCP, command line and HTTP API - **Needs**: one morigraph connection; no vendor account or API key ## What it is for - **Campaign and social visuals**: Square, portrait, landscape or wide, up to four at a time. - **Images from a coding agent**: Claude Code and Codex cannot draw; this gives them a call that returns a file. - **A reproducible look**: Fix the seed and pin the model to get the same image again. ## How to call it In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Generate a wide hero image for a landing page: a calm desk at dawn, soft light, no text. Give me the link. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call image_gen --json-args '{"prompt":"A calm desk at dawn, soft light, no text","size":"wide","resolution":"standard"}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/image_gen \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":"A calm desk at dawn, soft light, no text","size":"wide","resolution":"standard"}' ``` What comes back: A preview, a file saved to your workspace and a download link. Links expire, so download what you need to keep. ## Arguments | Argument | Type | Required | What it is | |---|---|---|---| | `prompt` | string | yes | What to generate, described in words. | | `model` | string | no | Pin an exact model from the provider offerings, e.g. dola-seedream-5-0-pro-260628 or seedream-5-0-lite-260128. | | `negative_prompt` | string | no | What to avoid, where the provider supports it. | | `size` | square \| portrait \| landscape \| wide | no | Aspect of the image. | | `resolution` | draft \| standard \| high | no | draft is smallest and always fits a terminal host. | | `n` | integer | no | How many images (1-4). | | `seed` | integer | no | For a reproducible image, where the model supports it. | | `want_link` | boolean | no | Prefer a provider that returns a hosted URL for the full render. | ## Good to know - Ask for low cost and you get the least expensive model; ask for high quality and you get Seedream Pro. - Files land in your workspace, where teammates and other assistants can use them. - To change an existing picture, use image editing. ## When to choose something else Choose fal or Replicate when you want a specific open model or hundreds to pick from. Choose a design tool such as Canva or Figma when the image needs laid-out text and brand templates. This tool is for an assistant that needs a good image now, without another account. ## Can Claude Code generate images? Not by itself. With morigraph connected it can: it calls the image generation tool, which returns a saved file and a link. The same works in Cursor, Codex and ChatGPT. ## Which image models does morigraph use? Seedream from BytePlus and Stable Image from Stability AI. You can let morigraph choose by cost and quality or pin an exact model. ## How much does one image cost? 0.6 to 1.8 credits, about 6 to 18 cents, depending on the model. Your assistant can quote the exact price before it runs. ## Where do the images go? Into your workspace's files, with a download link in the response. Through the API the link is in the response body. ## Related tools - [Image editing](https://morigraph.com/tools/image-editing.md): 0.4 to 8 credits an edit - [Background removal](https://morigraph.com/tools/background-removal.md): free - [Video generation](https://morigraph.com/tools/video-generation.md): about 30 credits for a short clip - [All tools](https://morigraph.com/tools.md) --- Canonical page: https://morigraph.com/tools/image-generation/ Prices read from the production service on 2026-11-27. Connect: https://morigraph.com/connect.md · API docs: https://morigraph.com/docs.md · Site overview: https://morigraph.com/llms.txt