Generate Image
generate_imageGenerate a single image from a text prompt through Frenchie. Required: prompt. Optional: style (free-text style direction), size, quality, format, background. stdio mode auto-saves the image to .frenchie//generated.; HTTP mode returns a presigned imageUrl that the agent should download for the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Optional output size. Defaults to automatic selection. | |
| style | No | Optional style direction (e.g. 'flat vector, neon palette'). Merged into the generation prompt by Frenchie. | |
| format | No | Optional output format. Defaults to png. | |
| prompt | Yes | Required. Plain-language description of the image to generate (e.g. 'poster of a ramen shop at night'). | |
| api_key | No | Optional Frenchie API key (fr_...). Falls back to the FRENCHIE_API_KEY env var when omitted. | |
| quality | No | Optional output quality. | |
| background | No | Optional background. transparent is rejected when format is jpeg. | |
| output_dir | No | Stdio mode only: absolute directory under which .frenchie/<slug>/generated.<ext> is saved. Defaults to the MCP server's process cwd. Recommended: pass your workspace root so the image lands next to your work instead of $HOME. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | ||
| result | No | ||
| status | Yes | ||
| creditsUsed | No | ||
| resultExpiresAt | No | ||
| estimatedCompletion | No |