generate_image
Queue an AI image generation job and return a job ID; poll status until complete, then use the image URLs to create social posts.
Instructions
Queue an AI image job via posterly using Nano Banana (Gemini) or Grok Imagine Image 2.0 (xAI). Returns job_id. Poll list_jobs with type=image until status is completed, then pass urls to create_post as media_url / media_urls. Gemini thinking high does not change the credit price.
COSTS CREDITS. Every call consumes part of the user's monthly AI image quota (or purchased credits once the quota is exhausted). Do NOT call speculatively - always describe the image you're about to generate (subject, style, aspect ratio, quality/thinking, resolution) to the user and get confirmation before calling.
If the user is over their plan limit and has no credits, this tool returns a 402 with upgrade info. Surface that message verbatim - do not retry.
Common aspect ratios by platform: • Instagram feed / LinkedIn: 1:1 (square) or 4:5 (portrait) • Instagram Story/Reel, TikTok, YouTube Shorts: 9:16 • YouTube thumbnail, Twitter cards, landscape feed: 16:9 • Pinterest: 2:3
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Google-only. lite (8 credits, 1K only) suits drafts; flash (default, Nano Banana 2.1, 15 at 1K) balances quality and cost; pro (30 at 1K) is highest quality. Ignored for xAI. | |
| style | No | Preset style. Default photographic. Use youtube_thumbnail / reel_cover for platform-optimized covers; review_background for testimonial backgrounds. | |
| prompt | Yes | Detailed image description. 5-4000 characters. Describe subject, scene, lighting, mood, and style. | |
| confirm | Yes | Must be true after explicit user confirmation of subject, style, aspect ratio, quality, and credit use. | |
| quality | No | Google: high turns on Gemini thinking (dashboard thinkingLevel=high). low/medium leave thinking minimal unless thinking_level is set. xAI: low or medium credit tiers; high is invalid. | |
| provider | No | Image provider. Default google. Use xai for Grok Imagine Image 2.0. | |
| resolution | No | Output resolution. Default 1K. xAI supports 1K/2K only. Google flash (Nano Banana 2.1): 15/23/35 credits at 1K/2K/4K. 512 is no longer available. Pro: 30 at 1K-2K, 55 at 4K. | |
| variations | No | How many variations to generate. Default 1. Each variation costs credits separately - prefer 1 unless the user explicitly wants options. | |
| aspect_ratio | No | Aspect ratio. Default 1:1. Pick based on target platform (see tool description). | |
| workspace_id | No | Optional. The workspace this acts in and whose plan pays (from whoami). Needed only when your connection can act in several workspaces. | |
| thinking_level | No | Google flash/lite only. Gemini image quality control. minimal is fastest; high is for infographics, grounded scenes, and harder layouts. Pro reasons automatically. Overrides quality when both are set. | |
| reference_image_urls | No | Google only. Up to 14 HTTPS image URLs used as references (logo, product, style lock). Same as dashboard reference images. |