Xpersona
V

Video Reverse Prompt

CLAWHUB · Unverified

Analyze videos to extract reverse prompts, shot-by-shot breakdowns, and AI-ready visual descriptions via the NanoPhoto.AI Video Reverse Prompt API. Use when:...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179cdcvysgpcve1bgbanj2jy183e57q:video-reverse-prompt
  1. Install using `clawhub skill install s179cdcvysgpcve1bgbanj2jy183e57q:video-reverse-prompt` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/nanophotohq/video-reverse-prompt before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nanophotohq-video-reverse-prompt/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

45,362 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: video-reverse-prompt
description: "Analyze videos to extract reverse prompts, shot-by-shot breakdowns, and AI-ready visual descriptions via the NanoPhoto.AI Video Reverse Prompt API. Use when: (1) User wants reverse prompt, prompt extraction, or video-to-prompt analysis, (2) User provides a YouTube link, direct MP4 URL, or local MP4 file and wants a shot list / storyboard-style breakdown, (3) User mentions video analysis, shot breakdown, extract prompt from video, NanoPhoto, or reverse engineer a video prompt. Supports YouTube links, direct .mp4 URLs, and local file upload. 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"}}
---

# Video Reverse Prompt

Analyze videos to extract detailed shot breakdowns and AI-ready prompts via the NanoPhoto.AI API.

Use the bundled script for local file uploads instead of inlining large base64 payloads directly in the shell; it is more reliable for multi-megabyte videos.

## Prerequisites

1. Obtain an API key at: https://nanophoto.ai/settings/apikeys
2. Configure `NANOPHOTO_API_KEY` before using the 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:

```json
{
  "skills": {
    "entries": {
      "video-reverse-prompt": {
        "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`

Credential declaration summary:

- Required env var: `NANOPHOTO_API_KEY`
- Primary credential: `NANOPHOTO_API_KEY`
- No unrelated credentials are required

If the env var is not set, ask the user to configure it before proceeding.

## Workflow

1. Collect the video source from the user (YouTube link, direct .mp4 URL, or local file path)
2. Determine `videoSource` type: `youtube`, `url`, or `file`
3. Confirm the user is authorized to upload or process the content
4. If local file: read and base64-encode it (must be .mp4, max 30 MB)
5. Call the API (streaming response)
6. Return the shot breakdown and prompts to the user

## API Call

### YouTube Video

```bash
curl -X POST "https://nanophoto.ai/api/sora-2/reverse-prompt" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NANOPHOTO_API_KEY" \
  --data-raw '{
    "videoSource": "youtube",
    "locale": "en",
    "videoUrl": "https://www.youtube.com/watch?v=XXXXXXXXXXX"
  }'
```

### Direct Video URL

```bash
curl -X POST "https://nanophoto.ai/api/sora-2/reverse-prompt" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NANOPHOTO_API_KEY" \
  -

_meta.json

{
  "ownerId": "kn74jghfzf73f5typhj8khghz183d452",
  "slug": "video-reverse-prompt",
  "version": "1.0.3",
  "publishedAt": 1774694877758
}

references/api.md

# Video Reverse Prompt API Reference

## Endpoint

```
POST https://nanophoto.ai/api/sora-2/reverse-prompt
```

## Authentication

```
Authorization: Bearer YOUR_API_KEY
```

Obtain API key at: https://nanophoto.ai/settings/apikeys

For OpenClaw users, the recommended setup is to configure the skill with:

- `env.NANOPHOTO_API_KEY=YOUR_API_KEY`

## Credits

**1 credit** per analysis (API calls only; web interface is free).

## Request Body

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `videoSource` | string | Yes | Video source type: `youtube`, `url`, or `file` |
| `locale` | string | No | Output language (default: `en`). Supported: `en`, `zh`, `zh-TW`, `ja`, `ko`, `es`, `fr`, `de`, `pt`, `ru`, `ar` |
| `videoUrl` | string | Conditional | YouTube link (when `videoSource` is `youtube`) or direct .mp4 URL (when `videoSource` is `url`) |
| `videoFile` | string | Conditional | Base64-encoded video file (required when `videoSource` is `file`) |
| `videoFileName` | string | No | Original filename for uploaded videos |

## File Upload Notes

- Only `.mp4` format is supported
- Maximum file size: **30 MB** (before Base64 encoding)
- `videoFile` accepts plain Base64 string or Data URL (`data:video/mp4;base64,...`)
- For local files, prefer the bundled `scripts/reverse_prompt_file.py` helper instead of embedding multi-megabyte base64 directly in the shell.

## Response Format

**Streaming text response** (`Content-Type: text/plain; charset=utf-8`)

The AI analysis is streamed as generated, containing a detailed shot breakdown in Markdown table format:

- Shot number, framing/angle, camera movement
- Detailed visual description
- Audio analysis (BGM, sound effects, narration)
- Duration per shot
- Overall summary

## Error Response

```json
{
  "success": false,
  "error": "Error description",
  "errorCode": "ERROR_CODE"
}
```

## Error Codes

| errorCode | HTTP Status | Description |
|-----------|-------------|-------------|
| `LOGIN_REQUIRED` | 401 | Authentication required |
| `API_KEY_RATE_LIMIT_EXCEEDED` | 429 | Rate limit exceeded |
| `INSUFFICIENT_CREDITS` | 402 | Not enough credits |
| `INVALID_INPUT` | 400 | Missing required parameters |
| `INVALID_YOUTUBE_URL` | 400 | Invalid YouTube URL |
| `INVALID_VIDEO_URL` | 400 | Invalid video URL |
| `INVALID_FORMAT` | 400 | Invalid MP4 format |
| `FILE_TOO_LARGE` | 400 | File exceeds 30MB |
| `VIDEO_DOWNLOAD_FAILED` | 400 | Video download failed |
| `VIDEO_PROCESSING_FAILED` | 422 | Video processing failed |
| `AI_SERVICE_ERROR` | 503 | AI service unavailable |
| `SERVICE_UNAVAILABLE` | 503 | Service configuration issue |
| `INTERNAL_ERROR` | 500 | Internal server error |

## Example: TypeScript (File Upload with Streaming)

```ts
import { readFile } from "node:fs/promises";

const videoBuffer = await readFile("your-video.mp4");
const videoBase64 = videoBuffer.toString("base64");

const response = await fetch("https://nanophoto.ai/api/sora-2/reverse-prompt",

PUBLISHING.md

# Publishing / provenance notes

- Publisher: NanoPhotoHQ
- Service homepage: https://nanophoto.ai
- API key management page: https://nanophoto.ai/settings/apikeys
- Skill purpose: analyze videos with the NanoPhoto.AI reverse-prompt API to extract shot breakdowns, visual prompts, and structured descriptions.

## Required credential

This skill requires exactly one credential:

- `NANOPHOTO_API_KEY` — required

Do not paste the API key into chat. Configure it through the platform's secure environment-variable setting for this skill.

## Safety / usage notes

- Only analyze content you are authorized to upload or process.
- For local files, prefer the bundled script instead of manual shell base64 for reliability.
- This skill does not ask for unrelated credentials.

skill-card.md

## Description:

Analyzes YouTube links, direct MP4 URLs, or local MP4 files with NanoPhoto.AI to produce reverse prompts, shot-by-shot breakdowns, and AI-ready visual descriptions.

This skill is ready for commercial/non-commercial use.

## Publisher:

[nanophotohq](https://clawhub.ai/user/nanophotohq)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill to turn authorized video inputs into structured shot analysis, reverse prompts, storyboard-style breakdowns, and AI-ready visual descriptions through the NanoPhoto.AI API.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Selected videos, video URLs, and generated analysis are sent to NanoPhoto.AI for processing.

Mitigation: Use only content the user is authorized to upload or process, and avoid private, regulated, or third-party content unless authorization is clear.

Risk: Passing the NanoPhoto.AI API key directly as a command argument can expose it through shell history or process metadata.

Mitigation: Configure the credential with platform skill settings or the NANOPHOTO_API_KEY environment variable instead of passing it with --api-key.

## Reference(s):

- [Video Reverse Prompt API Reference](references/api.md)
- [NanoPhoto.AI](https://nanophoto.ai)
- [NanoPhoto.AI API Key Settings](https://nanophoto.ai/settings/apikeys)
- [ClawHub Skill Page](https://clawhub.ai/nanophotohq/skills/video-reverse-prompt)
- [ClawHub Publisher Profile](https://clawhub.ai/user/nanophotohq)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Streaming text response, typically Markdown with shot breakdowns and prompts]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires NANOPHOTO_API_KEY and supports YouTube URLs, direct MP4 URLs, and local MP4 files up to 30 MB.]

## Skill Version(s):

1.0.3 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Video Reverse Prompt and adjacent AI workflows.