Generate an image with AI
generate_imageCreates AI-generated photos or illustrations for LinkedIn posts using a chosen provider and the user’s API key, then saves verified PNG/JPEG files locally without publishing to LinkedIn.
Instructions
Create photos or illustrations for a post with an AI image model (Higgsfield, OpenAI, Gemini, fal.ai, Replicate or Ideogram). It uses the user's own API key for that provider and may cost money on their account, so generate only what the user asked for and say which provider was used. Files are saved to linkedin-mcp's media folder and checked to be real PNG/JPEG images. Nothing is sent to LinkedIn. Ideogram is best for legible text in images; for quotes and slides use create_quote_card or create_carousel instead (free, no AI). Avoid depicting real people or brands without permission. Call image_providers to see which providers are set up. If it returns status pending, call again with only job_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | For repeatable results, where the provider supports it. | |
| count | No | How many images (1-4). Each one costs money. | |
| model | No | Use this model id instead of the provider's default. | |
| style | No | Style direction, e.g. 'editorial photo, soft daylight' or 'flat vector illustration'. | |
| job_id | No | From an earlier pending result: wait for that generation instead of starting a new one. | |
| prompt | No | What to draw: subject, setting, composition, lighting, mood. Required unless job_id is given. | |
| provider | No | Use this provider instead of the configured one. | |
| aspect_ratio | No | 1:1 square, 4:5 portrait (most feed space), 16:9 landscape, 1.91:1 link-preview landscape. Providers without a ratio use the closest one and say so. | 1:1 |
| negative_prompt | No | Things to avoid. |