Skip to content

Skill: OpenClaw integration — nano-banana & gpt-image image generation

OpenClaw has recently become very popular. We've added an image-generation skill that supports multiple models and resolutions. Once configured, you can ask the AI to generate images using natural language.

Step 1 — Get an API Key

Register at https://api.morphogen.top and go to the Token Management page to get your API key (format: sk-xxxxxxxx). You'll need this key later.

Step 2 — Configure environment variables

Add the following two variables to the .env file in your ~/.openclaw directory (create the file if it doesn't exist):

bash
# VAPI
VAPI_BASE_URL=https://api.morphogen.top/v1
VAPI_API_KEY=sk-xxxxxx

VAPI_BASE_URL is optional. VAPI_API_KEY is required and should be the key you obtained from https://api.morphogen.top.

Storing the API key in environment variables keeps secrets safer—avoid putting keys directly in code.

Step 3 — Install the skill

On a device with OpenClaw installed, run one of the following commands to install the plugin:

sh
clawhub install vapi-image-gen

# or
clawhub install popdo/vapi-image-gen

After installation, restart ClawHub:

sh
openclaw gateway restart

Example prompts

Once configured, just tell your AI assistant what you want.

1. Basic generation

EnglishTranslation
Draw a sunset over the oceanDraw a seascape sunset
Generate a cyberpunk city at nightGenerate a cyberpunk city night scene
Create a cute cartoon cat illustrationDraw a cute cartoon cat illustration

2. With aspect ratio

EnglishTranslation
Generate a 16:9 wallpaper of a starry skyGenerate a 16:9 starry sky wallpaper
Draw a 2:3 portrait of a fantasy warriorDraw a 2:3 portrait of a fantasy warrior
Create a 1:1 square avatar of a fox in a suitCreate a 1:1 square avatar of a fox in a suit

3. Save to local

EnglishTranslation
Generate a forest scene and save itGenerate a forest scene image and save locally
Draw 3 variations of a mountain landscape and saveDraw 3 mountain landscape variations and save locally

4. High resolution

EnglishTranslation
Generate a high-res 4K illustration of a dragonGenerate a high-res 4K dragon illustration
Create a 2K detailed city map illustrationGenerate a 2K detailed city map illustration

Supported models

ModelQualityOutput
nano-bananaStandardURL
nano-banana-proBetter — DefaultURL
nano-banana-2Gen 2URL
nano-banana-pro-2kHigh-res 2KURL
nano-banana-pro-4kUltra 4KURL
gpt-image-1High qualitySaved file
gpt-image-1.5Higher qualitySaved file

Image save behavior

FlagBehavior
(default)Returns image URL only, no local file
--saveSaves to ~/.openclaw/media/
--ossSaves to ~/.openclaw/oss/
gpt-image modelsAlways saved (API returns base64 only)