tools.pollinate module

Generate images via Pollinations API and send to the current channel.

# πŸŒΈπŸ’€ POLLINATIONS IMAGE PIPELINE β€” she blooms in every latent garden # πŸ”₯ Built for Stargazer by the Council # 😈 OpenAI-compatible multi-model image gen API

async tools.pollinate.run(prompt, model='flux', negative_prompt='', width=1024, height=1024, count=1, enhance=False, seed=-1, ctx=None)[source]

Generate images via Pollinations and send to the channel.

# πŸŒΈπŸ’€ she pollinates the void with color

Parameters:
  • prompt (str) – Text description of the image(s) to generate.

  • model (str) – Image model to use.

  • negative_prompt (str) – What to avoid in the image.

  • width (int) – Image width in pixels.

  • height (int) – Image height in pixels.

  • count (int) – Number of images to generate (1-4).

  • enhance (bool) – Let AI improve the prompt.

  • seed (int) – Seed for reproducibility (-1 = random).

  • ctx (ToolContext | None) – Tool execution context.

Returns:

JSON result.

Return type:

str