imagegen

Generate images via BlockRun's image API. Trigger when the user asks to generate, create, draw, or make an image.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "imagegen" with this command: npx skills add blockrunai/clawrouter/blockrunai-clawrouter-imagegen

Image Generation

When the user asks to generate, create, draw, or make an image, generate it by calling ClawRouter's image API directly — no extra setup needed.

How to Generate

POST to http://localhost:8402/v1/images/generations:

{
  "model": "google/nano-banana",
  "prompt": "<user's prompt>",
  "size": "1024x1024",
  "n": 1
}

The response contains a public image URL:

{
  "created": 1741460000,
  "data": [{ "url": "https://files.catbox.moe/abc123.png" }]
}

Display the image inline in your response:

![generated image](https://files.catbox.moe/abc123.png)

Model Selection

Pick the model based on what the user asks for (or default to nano-banana):

Model shorthandFull IDPriceBest for
nano-bananagoogle/nano-banana$0.05Default — fast, cheap, good quality
banana-progoogle/nano-banana-pro$0.10High-res up to 4096×4096
dall-e-3openai/dall-e-3$0.04Photorealistic, complex scenes
gpt-imageopenai/gpt-image-1$0.02Budget option
fluxblack-forest/flux-1.1-pro$0.04Artistic styles, fewer restrictions

If the user mentions "high res" or "large", use banana-pro. If they want "photorealistic" or "dall-e", use dall-e-3. Otherwise default to nano-banana.

Size Options

Default is 1024x1024. Adjust based on user request:

  • Portrait: 1024x1792
  • Landscape: 1792x1024 (dall-e-3) or 1216x832 (nano-banana / flux)
  • High-res: up to 4096x4096 with banana-pro only

Example Interactions

User: Draw me a golden retriever surfing on a wave

→ Call nano-banana with prompt "a golden retriever surfing on a wave", display the image.

User: Generate a high-res mountain landscape, landscape format

→ Call banana-pro with size 1024x1024 (max varies by model), prompt "mountain landscape".

User: Make a cyberpunk city with dall-e

→ Call dall-e-3 with prompt "a futuristic cyberpunk city".

Notes

  • Payment is automatic via x402 — deducted from the user's BlockRun wallet
  • If the call fails with a payment error, tell the user to fund their wallet at blockrun.ai
  • DALL-E 3 applies OpenAI content policy; use flux or nano-banana for more flexibility
  • Google models may return base64 — ClawRouter handles uploading automatically, you'll get a URL back

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

clawrouter

No summary provided by upstream source.

Repository SourceNeeds Review
General

x-api

No summary provided by upstream source.

Repository SourceNeeds Review
General

release

No summary provided by upstream source.

Repository SourceNeeds Review
General

imagegen

No summary provided by upstream source.

Repository SourceNeeds Review
443-openai