Tool · image_gen
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.
- 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 visualsSquare, portrait, landscape or wide, up to four at a time.
- Images from a coding agentClaude Code and Codex cannot draw; this gives them a call that returns a file.
- A reproducible lookFix the seed and pin the model to get the same image again.
Three ways to call it
The same tool and the same price, whichever way you call it.
In your assistant (MCP). Connect once, then ask in plain words
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)
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)
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. Default "square". |
resolution | draft | standard | high | no | draft is smallest and always fits a terminal host. Default "standard". |
n | integer | no | How many images (1-4). Default 1. |
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. Default true. |
Every tool with more than one provider also takes cost, depth, speed and provider to steer the choice: see the tools reference.
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.
Questions
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.
Prices and availability read from the production service on . A credit is about 10 cents of tool use; see pricing. Your assistant can quote the exact cost before a paid call.