Install
openclaw skills install video-prompt-generatorGenerate professional Sora 2 video prompts with the NanoPhoto.AI Prompt Generator API. Use when: (1) User wants a polished video prompt from a topic or scene idea, (2) User wants prompt generation for text-to-video or image-to-video workflows, (3) User mentions Sora 2 prompt generation, prompt writing, cinematic prompt creation, shot planning, or converting a topic into a production-ready video prompt. Supports locale, technique, duration, and public image URL inputs. Prerequisite: Obtain an API key at https://nanophoto.ai/settings/apikeys and configure env.NANOPHOTO_API_KEY.
openclaw skills install video-prompt-generatorGenerate polished Sora 2 video prompts through the NanoPhoto.AI Prompt Generator API.
NANOPHOTO_API_KEY before using the skill.Preferred OpenClaw setup:
NANOPHOTO_API_KEYEquivalent config shape:
{
"skills": {
"entries": {
"video-prompt-generator": {
"enabled": true,
"env": {
"NANOPHOTO_API_KEY": "your_api_key_here"
}
}
}
}
}
Other valid ways to provide the key:
export NANOPHOTO_API_KEY="your_api_key_here"NANOPHOTO_API_KEY~/.openclaw/openclaw.json at skills.entries.video-prompt-generator.env.NANOPHOTO_API_KEYCredential declaration summary:
NANOPHOTO_API_KEY--api-key → NANOPHOTO_API_KEY environment variable → ~/.openclaw/openclaw.json skill envtextToVideo or imageToVideo.topic
mode
textToVideo: defaultimageToVideo: requires public imageUrlstechnique
montageduration
1015locale
enen, zh, zh-TW, ja, ko, es, fr, de, pt, ru, arUse the bundled script for reliable prompt generation:
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 en
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.jpg
The script resolves credentials in this order: --api-key, then NANOPHOTO_API_KEY from the environment, then ~/.openclaw/openclaw.json at skills.entries.video-prompt-generator.env.NANOPHOTO_API_KEY.
curl -X POST "https://nanophoto.ai/api/sora-2/generate-prompt" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $NANOPHOTO_API_KEY" \
--data-raw '{
"topic": "A futuristic cityscape at sunset with flying vehicles and neon lights",
"technique": "aerial-view",
"duration": 15,
"locale": "en"
}'
| errorCode | Cause | Action |
|---|---|---|
LOGIN_REQUIRED | Invalid or missing API key | Verify key at https://nanophoto.ai/settings/apikeys |
API_KEY_RATE_LIMIT_EXCEEDED | Rate limit exceeded | Wait and retry |
INSUFFICIENT_CREDITS | Not enough credits | Top up credits |
INVALID_INPUT | Missing or invalid topic | Ask for a valid topic under 500 characters |
scripts/video_prompt_generator.py: generate a prompt from a topic using the NanoPhoto Prompt Generator APIreferences/api.md: condensed API reference, inputs, and error behavior