← 返回
未分类 Key 中文

Video Prompt Generator

Generate 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...
通过NanoPhoto.AI提示生成器API,将主题或场景转化为专业的Sora 2视频提示词。适用场景:用户希望根据主题或场景生成精炼的视频提示词时使用。
nanophotohq nanophotohq 来源
未分类 clawhub v1.0.0 1 版本 99860.3 Key: 需要
★ 1
Stars
📥 695
下载
💾 8
安装
1
版本
#latest

概述

Video Prompt Generator

Generate polished Sora 2 video prompts through the NanoPhoto.AI Prompt Generator API.

Prerequisites

  1. Obtain an API key at: https://nanophoto.ai/settings/apikeys
  2. Configure NANOPHOTO_API_KEY before using the skill.
  3. Do not paste the API key into chat; store it in the platform's secure env setting for this skill.

Preferred OpenClaw setup:

  • Open the skill settings for this skill
  • Add an environment variable named NANOPHOTO_API_KEY
  • Paste the API key as its value

Equivalent config shape:

{
  "skills": {
    "entries": {
      "video-prompt-generator": {
        "enabled": true,
        "env": {
          "NANOPHOTO_API_KEY": "your_api_key_here"
        }
      }
    }
  }
}

Other valid ways to provide the key:

  • Shell: export NANOPHOTO_API_KEY="your_api_key_here"
  • Tool-specific env config: any runtime that injects NANOPHOTO_API_KEY
  • OpenClaw config fallback: the bundled script also falls back to ~/.openclaw/openclaw.json at skills.entries.video-prompt-generator.env.NANOPHOTO_API_KEY

Credential declaration summary:

  • Primary credential: NANOPHOTO_API_KEY
  • Resolution order in the bundled script: --api-keyNANOPHOTO_API_KEY environment variable → ~/.openclaw/openclaw.json skill env
  • No unrelated credentials are required

Recommended workflow

  1. Collect the user's topic or scene idea.
  2. Decide whether the prompt is for textToVideo or imageToVideo.
  3. Choose a technique, duration, locale, and optional model override.
  4. For image-to-video mode, require one to three public image URLs.
  5. Run the bundled script or call the API directly.
  6. Return the generated prompt text exactly as produced unless the user asks for adaptation or rewriting.

Parameter guidance

  • topic
  • Required
  • Maximum 500 characters
  • Keep it specific enough to imply subject, mood, or motion
  • mode
  • textToVideo: default
  • imageToVideo: requires public imageUrls
  • technique
  • Default: montage
  • Choose the technique that best matches the intended visual language
  • duration
  • 10
  • 15
  • locale
  • Default: en
  • Supported: en, zh, zh-TW, ja, ko, es, fr, de, pt, ru, ar

Preferred command

Use the bundled script for reliable prompt generation:

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 en

Image-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.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.

Output behavior

  • The API returns streaming text, but the bundled script prints the final assembled prompt text
  • Return the prompt directly when the user asked for prompt generation
  • If the user wants editing or localization after generation, transform the generated prompt in a second step instead of changing API parameters retroactively

Manual API call

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"
  }'

Error handling

errorCodeCauseAction
--------------------------
LOGIN_REQUIREDInvalid or missing API keyVerify key at https://nanophoto.ai/settings/apikeys
API_KEY_RATE_LIMIT_EXCEEDEDRate limit exceededWait and retry
INSUFFICIENT_CREDITSNot enough creditsTop up credits
INVALID_INPUTMissing or invalid topicAsk for a valid topic under 500 characters

Bundled files

  • scripts/video_prompt_generator.py: generate a prompt from a topic using the NanoPhoto Prompt Generator API
  • references/api.md: condensed API reference, inputs, and error behavior

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 18:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 900 📥 205,480
design-media

Nano Banana Pro

nanophotohq
使用 NanoPhoto.AI Nano Banana Pro API 生成或编辑 AI 图像。适用场景:(1) 用户希望根据提示词生成文本图像,(2) 用户希望进行图像编辑。
★ 4 📥 2,144
content-creation

Marketing Skills

jchopard69
{"answer":"获取23个营销模块,包含CRO、SEO、文案、分析、发布、广告及社媒的清单、框架与现成交付物。"}
★ 143 📥 30,682