C
CCAPI
/generate_image
Generate an image
Generate an image from a text prompt, optionally guided by reference images (image-to-image). Returns image URLs directly. Most models finish in 10-60 seconds;
liveunknown~5s typical
mcpccapi
$0.0020
per call
plus $0.001 platform fee per run
Open MCP server; Cracked bills routing only
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run mcp-ai-ccapi-mcp /generate_image for me.
Input
| Field | Type | Description |
|---|---|---|
| model* | string | Exact model name, e.g. gpt-image-2 or nano-banana-pro. Call list_models with category 'ima |
| prompt* | string | Description of the image to generate. |
| images | string | Optional reference images as HTTPS URLs or data URLs, for image-to-image generation. Not a |
| size | string | Output size, e.g. 1024x1024, 1536x1024, or 'auto'. Model-dependent; omit for the model def |
| n | string | How many images to generate. Defaults to 1. Each one is billed. |
| quality | string | Quality hint, e.g. low, medium, high or auto. Model-dependent. |
| response_format | string | 'url' (default) returns links; 'b64_json' returns base64 data, which is far larger and usu |
| aspect_ratio | string | Z-Image only: required output aspect ratio. Supported values: 1:1, 4:3, 3:4, 16:9, 9:16. |
| nsfw_checker | string | Z-Image only: enable or disable the upstream NSFW checker. Explicit false is preserved. |
| async | boolean | Submit asynchronously and return a task_id instead of waiting. Use when the client times o |
| wait_seconds | string | Only with async: poll server-side for up to this many seconds (max 240) and return the fin |
Call it
curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
-H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
-d '{"provider":"mcp-ai-ccapi-mcp","endpoint":"/generate_image","input":{"model":"...","prompt":"..."}}'cli
npx cracked-ai run -p mcp-ai-ccapi-mcp -e /generate_image -i '{"model":"...","prompt":"..."}'mcp
run_tool({ provider: "mcp-ai-ccapi-mcp", endpoint: "/generate_image", input: {"model":"...","prompt":"..."} })Try it
Runs against your signed-in workspace balance. Sign in if you have not.