Sora 2 Generate for Openclaw

A professional-grade skill for generating high-fidelity AI videos from text prompts or public image URLs using the Sora 2 engine.

nanophotohq
v1.2.1
Mar 23, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install sora-2-generate

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install sora-2-generate using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Sora 2 Generate?

The Sora 2 Generate skill provides a robust interface to the NanoPhoto.AI Sora 2 API, enabling developers and AI agents to create cinematic videos seamlessly. It bridges the gap between creative prompts and high-quality video output, supporting both standard and pro tiers for resolutions up to 1080p.

As part of the Openclaw Skills ecosystem, this tool simplifies the complexity of asynchronous video generation. It handles task submission, status polling, and credit management through a unified Python script, ensuring a reliable developer experience when building video-centric AI applications.

Sora 2 Generate Use Cases

  • Creating cinematic 10-15 second videos from descriptive text prompts.
  • Animating static images by providing public URLs for image-to-video transformation.
  • Building automated video content pipelines within AI-powered coding environments.
  • Experimenting with high-resolution video tiers like sora2-pro-high for professional presentations.

How Sora 2 Generate Works

  1. The user provides a text prompt or a public image URL to the Openclaw Skills interface.
  2. The skill validates the environment credentials and selects the appropriate model tier (sora2, pro-standard, or pro-high).
  3. A POST request is sent to the NanoPhoto.AI API to initialize the video generation task.
  4. The system receives a unique taskId and enters a polling phase (either manually or via the --follow flag).
  5. After the generation process (typically 120-480 seconds), the skill retrieves the final videoUrl and usage metadata.

Sora 2 Generate Setup

To use this skill within the Openclaw Skills framework, you must configure your API key.

  1. Obtain an API key from NanoPhoto settings.
  2. Set the environment variable:
export NANOPHOTO_API_KEY="your_api_key_here"
  1. Alternatively, add the key to your ~/.openclaw/openclaw.json configuration file under the skill entries.

Sora 2 Generate Data Schema & Taxonomy

The skill utilizes a structured parameter system and returns detailed task metadata:

Parameter Type Description
prompt String The creative description for the video content.
mode String Choice between textToVideo or imageToVideo.
modelTier String sora2 (standard), sora2-pro-standard (720p), or sora2-pro-high (1080p).
aspectRatio String landscape or portrait orientation.
videoDuration Integer Duration in seconds (10 or 15).

Successful responses include a taskId, videoUrl, generationTime, and creditsUsed.

Sora 2 Generate Advanced Features

  • Synchronous polling: Use the --follow flag to keep the process alive until the video is ready.
  • Granular control: Adjust --initial-status-delay and --status-check-interval to optimize for different queue loads.
  • JSON output mode: The --json-only flag allows for easy integration with other automated scripts and tools.
  • Multi-tier support: Explicit access to professional-grade high-bitrate video models.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*