Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

sora-2-generate索拉 2 生成

Agent Skill

sora-2-generate 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

17,358

周安装

738

GitHub Stars

公开资料未说明

下载量

6,081
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sora-2-generate(索拉 2 生成)
来源仓库:https://github.com/nanophotohq/sora-2-generate
安装命令:
openclaw skills install sora-2-generate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install sora-2-generate

简介

调用 NanoPhoto.AI Sora 2 API 生成文本或图像转视频。

  • 适用于创意短片、产品演示与社交媒体素材制作。
  • 支持自定义时长与分辨率,输出 MP4 格式文件。
  • 需遵守平台内容政策,避免生成侵权或不当画面。
  • 建议先试用免费额度再投入商业用途。sora-2-generate 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
sora-2-generate
description
Generate videos with the NanoPhoto.AI Sora 2 API in text-to-video or image-to-video mode. Use when: (1) User wants to create a Sora 2 video from a prompt, (2) User provides one or more public image URLs and wants image-to-video generation, (3) User mentions Sora 2, NanoPhoto video generation, text to video, image to video, cinematic prompt generation, or checking Sora generation status. Supports submission, status checks, and optional in-process polling from a single bundled script. Prerequisite: Obtain an API key at https://nanophoto.ai/settings/apikeys and configure env.NANOPHOTO_API_KEY.
homepage
https://nanophoto.ai
metadata
{"openclaw":{"homepage":"https://nanophoto.ai","requires":{"env":["NANOPHOTO_API_KEY"]},"primaryEnv":"NANOPHOTO_API_KEY"}}

Sora 2 Generate

Generate videos through the NanoPhoto.AI Sora 2 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": {
      "sora-2-generate": {
        "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.sora-2-generate.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

Choose the mode

  • Use textToVideo when the user gives only a prompt.
  • Use imageToVideo when the user provides one or more public image URLs.
  • Do not use local image files or base64 images for the API. The API only accepts public imageUrls.

Recommended workflow

  1. Collect the prompt.
  2. Decide mode: textToVideo or imageToVideo.
  3. Choose modelTier, aspectRatio, and videoDuration.

- Default to sora2. - Use sora2-pro-standard or sora2-pro-high only if the user explicitly wants the pro tier or higher resolution output.

  1. Submit the generation request.
  2. If the user wants synchronous progress output in the same process, use submit --follow.
  3. Wait 120 seconds before the first status check, then check every 20 seconds until completed or failed.
  4. Return the final videoUrl, generation time, and credits used when available.
  5. Expect real-world wait time to vary from roughly 120 seconds to 480 seconds depending on queue/load, model tier, and prompt complexity; avoid short timeouts.

Preferred commands

Use the single bundled script with subcommands.

Submit only

python3 scripts/sora2_generate.py submit \
  --prompt "A golden retriever running on a beach at sunset, cinematic lighting" \
  --mode textToVideo \
  --model-tier sora2 \
  --aspect-ratio landscape \
  --video-duration 10

Submit and keep polling in the same process

python3 scripts/sora2_generate.py submit \
  --prompt "A golden retriever running on a beach at sunset, cinematic lighting" \
  --mode textToVideo \
  --model-tier sora2 \
  --aspect-ratio landscape \
  --video-duration 10 \
  --follow

Check status of an existing task

python3 scripts/sora2_generate.py status --task-id task_abc123

Image to video

python3 scripts/sora2_generate.py submit \
  --prompt "The person in the painting comes alive, moving naturally and reciting poetry" \
  --mode imageToVideo \
  --image-url https://static.nanophoto.ai/demo/nano-banana-pro.webp \
  --model-tier sora2 \
  --aspect-ratio landscape \
  --video-duration 10

Script behavior

The bundled script resolves credentials in this order: --api-key, then NANOPHOTO_API_KEY from the environment, then ~/.openclaw/openclaw.json at skills.entries.sora-2-generate.env.NANOPHOTO_API_KEY.

Subcommands:

  • submit: submit a task
  • submit --follow: submit and keep polling in the same process
  • status: check an existing taskId

Cross-platform note:

  • Use python3 on macOS/Linux.
  • Use python on Windows unless python3 is available.
  • The script uses Python's standard HTTP client and does not require curl.
  • Use --json-only when another script/tool needs raw JSON output.
  • Use --initial-status-delay to override the default 120-second wait before the first status check.
  • Use --status-check-interval to override the default 20-second interval between progress checks.
  • Default max wait is 1200 seconds.

Manual API calls

Submit generation

curl -X POST "https://nanophoto.ai/api/sora-2/generate" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NANOPHOTO_API_KEY" \
  --data-raw '{
    "prompt": "A golden retriever running on a beach at sunset, cinematic lighting",
    "mode": "textToVideo",
    "modelTier": "sora2",
    "aspectRatio": "landscape",
    "videoDuration": "10"
  }'

Check status

curl -X POST "https://nanophoto.ai/api/sora-2/check-status" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NANOPHOTO_API_KEY" \
  --data-raw '{"taskId": "task_abc123"}'

Parameter guidance

  • modelTier

- sora2: default; lowest cost and fastest turnaround - sora2-pro-standard: 720p pro tier; use only when explicitly requested - sora2-pro-high: 1080p pro tier; use only when explicitly requested

  • aspectRatio

- portrait: vertical/default - landscape: horizontal

  • videoDuration

- 10 - 15

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
PROMPT_REQUIREDMissing promptAsk user for a prompt
IMAGE_REQUIREDMissing image for image-to-videoAsk for public image URLs
IMAGE_URLS_REQUIREDAPI needs imageUrlsDo not send base64 or local file paths
TASK_NOT_FOUNDInvalid or expired task IDRe-submit or verify ownership
GENERATION_FAILEDServer-side failureRetry or try a simpler prompt

Bundled files

  • scripts/sora2_generate.py: single entry point for submit, status, and optional in-process polling.
  • references/api.md: condensed API reference, costs, and response shapes.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.82%
按下载量换算4,367

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills