Video Prompt Generator
Generate professional Sora 2 video prompts with the NanoPhoto.AI Prompt Generator API via OpenClaw.
Generate polished Sora 2 video prompts through the NanoPhoto.AI Prompt Generator API.
Install: npx clawhub@latest install video-prompt-generator
ClawHub: clawhub.ai/u/nanophotohq
Prerequisites
- Obtain an API key at nanophoto.ai/settings/apikeys
- Configure
NANOPHOTO_API_KEYin your OpenClaw skill settings
{
"skills": {
"entries": {
"video-prompt-generator": {
"enabled": true,
"env": {
"NANOPHOTO_API_KEY": "your_api_key_here"
}
}
}
}
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
topic | string | Yes | Scene idea or topic (max 500 chars) |
mode | string | No | textToVideo (default) or imageToVideo |
technique | string | No | Visual technique (default: montage) |
duration | number | No | 10 or 15 seconds |
locale | string | No | Output language: en, zh, zh-TW, ja, ko, es, fr, de, pt, ru, ar |
imageUrls | string[] | Conditional | Required for imageToVideo mode (1-3 URLs) |
Usage
Text-to-Video Prompt
python3 scripts/video_prompt_generator.py \
--topic "A serene Japanese garden with cherry blossoms falling into a koi pond" \
--mode textToVideo \
--technique slow-motion \
--duration 15 \
--locale enImage-to-Video Prompt
python3 scripts/video_prompt_generator.py \
--topic "Animate this landscape with gentle wind and floating clouds" \
--mode imageToVideo \
--technique long-take \
--duration 10 \
--locale en \
--image-url https://example.com/landscape.jpgError Codes
| Code | Cause | Action |
|---|---|---|
LOGIN_REQUIRED | Invalid API key | Verify at settings/apikeys |
INSUFFICIENT_CREDITS | Not enough credits | Top up |
INVALID_INPUT | Missing or invalid topic | Provide a valid topic under 500 chars |
NanoPhoto.AI Документация