ponyflash
Generate images, videos, speech audio, and music using the PonyFlash Python SDK. Also handle local media editing with FFmpeg, including clip, concat, transcode, extract audio, frame capture, subtitle capability checks, and ASS subtitle prep. Use when the user asks to create, generate, produce, edit, trim, merge, concatenate, transcode, subtitle, or render AI-generated media content.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ponyflash.zip https://jpskill.com/download/19802.zip && unzip -o ponyflash.zip && rm ponyflash.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19802.zip -OutFile "$d\ponyflash.zip"; Expand-Archive "$d\ponyflash.zip" -DestinationPath $d -Force; ri "$d\ponyflash.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ponyflash.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ponyflashフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 9
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
PonyFlash スキル
ステップ0: どの機能パスが適用されるかを決定する
このスキルには、現在2つの機能ファミリーが含まれています。
-
PonyFlash Python SDK を介したクラウド生成
- 画像生成
- 動画生成
- 音声合成
- 音楽生成
- モデルリスト表示
- ファイル管理
- アカウント/クレジット
- これらのタスクには有効な PonyFlash API キーが必要です。
-
FFmpeg ツールチェーンを介したローカルメディア編集
- ffmpeg / ffprobe の検出
- インストール計画
- クリップ / 連結 / トランスコード
- 音声抽出 / フレームキャプチャ
- 字幕機能チェック
- ASS 字幕生成と焼き付けワークフロー
- これらのタスクにはPonyFlash API キーは必要ありませんが、ローカルの
ffmpeg/ffprobeサポートが必要です。
何かを行う前に、リクエストを分類してください。
- ユーザーが PonyFlash モデルでメディアを生成するよう求めている場合は、SDK パスに従い、API キーの設定を要求します。
- ユーザーがローカルメディアを編集または処理するよう求めている場合は、FFmpeg パスに従い、まず依存関係チェックを行います。
- ユーザーがエンドツーエンドの制作ワークフローを求めている場合は、両方を使用できます。PonyFlash でアセットを生成し、FFmpeg で組み立てまたはエクスポートします。
ステップ1A: PonyFlash SDK タスクの API キー設定
このセクションは、リクエストが PonyFlash クラウド機能を必要とする場合にのみ実行してください。
クラウド生成タスクでこのスキルが初めてアクティブ化されるとき、ユーザーに以下の内容を自分の言葉で伝えてください。
- PonyFlash スキルは使用準備ができています。
- 以下の処理が可能です。
- 画像生成
- 動画生成
- 音声合成
- 音楽生成
- FFmpeg を使用したローカルメディア編集
- 複雑な多段階制作には、
playbooks/ディレクトリにクリエイティブプレイブックがあります。 - PonyFlash クラウド生成を使用するには、ユーザーは API キーが必要です。
- https://www.ponyflash.com で登録/ログインしてください。
- https://www.ponyflash.com/api-key で API キーを取得してください(
rk_で始まります)。 - https://www.ponyflash.com/usage でクレジットを確認してください。
- チャットにキーを貼り付けてください。
その後の SDK アクティベーション時には、環境変数 PONYFLASH_API_KEY が設定されているかを確認します。設定されていない場合は、再度ユーザーにキーを尋ねます。
受け取ったら、次のように設定します。
export PONYFLASH_API_KEY="rk_xxx"
次に SDK をインストールします。
pip install ponyflash
生成タスクを実行する前に、常にキーが機能することを確認してください。
from ponyflash import PonyFlash
pony_flash = PonyFlash(api_key="<key from user>")
balance = pony_flash.account.credits()
print(f"Balance: {balance.balance} {balance.currency}")
検証に失敗した場合:
- キーが無効または不足している → ユーザーを https://api.ponyflash.com/api-key に誘導します。
- 残高がゼロである → ユーザーを https://api.ponyflash.com/usage に誘導してクレジットをチャージします。
ステップ1B: FFmpeg タスクのローカル依存関係設定
このセクションは、リクエストがローカル編集、字幕、またはエクスポート作業を必要とする場合にのみ実行してください。
-
まずローカルの依存関係を確認します。
bash "{baseDir}/scripts/check_ffmpeg.sh" -
タスクに字幕が含まれる場合は、存在チェックだけでなく機能チェックも行います。
bash "{baseDir}/scripts/check_ffmpeg.sh" --require-subtitles-filter -
ffmpeg/ffprobeまたは必要なフィルターが不足している場合:- 何が不足しているかをユーザーに伝えます。
- プラットフォームに適した FFmpeg のインストールガイダンスが必要かどうかをユーザーに尋ねます。
- ユーザーが FFmpeg をインストールした後、続行する前に依存関係チェックを再実行します。
このスキルでできること
| 機能 | リソース | 説明 |
|---|---|---|
| 画像生成 | pony_flash.images |
テキストから画像、マスク/参照画像による画像編集 |
| 動画生成 | pony_flash.video |
テキストから動画、最初のフレームから動画、OmniHuman、モーション転送 |
| 音声合成 | pony_flash.speech |
音声クローン、感情制御、速度、ピッチによるテキストから音声 |
| 音楽生成 | pony_flash.music |
歌詞、スタイル、インストゥルメンタルモード、継続によるテキストから音楽 |
| モデルリスト表示 | pony_flash.models |
利用可能なモデルのリスト表示、モデルの詳細とサポートされているモードの取得 |
| ファイル管理 | pony_flash.files |
ファイルのアップロード、リスト表示、取得、削除 |
| アカウント | pony_flash.account |
クレジット残高の確認、チャージリンクの取得 |
| ローカルメディア編集 | scripts/media_ops.sh |
クリップ、連結、トランスコード、音声抽出、フレームキャプチャ |
| FFmpeg 環境チェック | scripts/check_ffmpeg.sh |
ffmpeg / ffprobe および字幕機能の検出 |
| 字幕フォント準備 | scripts/ensure_subtitle_fonts.sh |
明示的に要求された場合に、デフォルトの字幕フォントの再利用可能なローカルコピーを保持 |
| ASS 字幕準備 | scripts/build_ass_subtitles.py |
事前ラッピングによる適応型 ASS 字幕生成 |
クリエイティブプレイブック(制作ワークフロー)
playbooks/ ディレクトリには、特定のコンテンツタイプ向けの段階的な制作ワークフローガイドであるクリエイティブプレイブックが含まれています。プレイブックはディレクターレイヤーとして機能し、何をどのような順序で作成するかを指示し、この SKILL.md は生成と編集の実行方法を指示します。
プレイブックを使用するタイミング
- ユーザーがプレイブックを名前で明示的に要求した場合 →
playbooks/から対応するファイルを読み込み、そのワークフローに従います。 - ユーザーが利用可能なプレイブックの表示を要求した場合 → playbooks/INDEX.md を読み込み、全リストを表示します。
- ユーザーのリクエストが明らかに多段階の制作タスクである場合 → playbooks/INDEX.md から一致するプレイブックを提案し、それを使用するかどうかを尋ねます。
- ユーザーのリクエストが単一ステップの生成または編集タスクである場合 → 関連する SDK または FFmpeg 機能で直接進めます。プレイブックは不要です。
プレイブックの実行方法
プレイブックがロードされたら:
- そのワークフロー(アセット準備 → コンテンツ生成 → 音声/音楽 → 編集 → 出力)に従います。
- 生成タスクには PonyFlash SDK を使用し、ローカルでの組み立て/エクスポートタスクには FFmpeg スクリプトを使用します。
- 高コストな生成を行う前に、主要なクリエイティブな決定をユーザーと確認します。
- プロンプト、期間、出力形式、エクスポート戦略をユーザーの実際の目標に合わせて調整します。
カスタムプレイブックの作成
ユーザーが n の作成を要求した場合
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
PonyFlash Skill
Step 0: Decide Which Capability Path Applies
This skill now contains two capability families:
-
Cloud generation via PonyFlash Python SDK
- image generation
- video generation
- speech synthesis
- music generation
- model listing
- file management
- account / credits
- These tasks require a valid PonyFlash API key.
-
Local media editing via FFmpeg toolchain
- ffmpeg / ffprobe detection
- installation planning
- clip / concat / transcode
- extract audio / capture frame
- subtitle capability checks
- ASS subtitle generation and burn-in workflow
- These tasks do NOT require a PonyFlash API key, but they do require local
ffmpeg/ffprobesupport.
Before doing anything, classify the request:
- If the user is asking to generate media with PonyFlash models, follow the SDK path and require API key setup.
- If the user is asking to edit or process local media, follow the FFmpeg path and do dependency checks first.
- If the user wants an end-to-end production workflow, you may use both: generate assets with PonyFlash, then assemble or export with FFmpeg.
Step 1A: API Key Setup for PonyFlash SDK Tasks
Only do this section when the request needs PonyFlash cloud capabilities.
The FIRST time this skill is activated for a cloud generation task, tell the user the following in your own words:
- PonyFlash skill is ready to use.
- It can handle:
- image generation
- video generation
- speech synthesis
- music generation
- local media editing with FFmpeg
- For complex multi-step productions, there are Creative Playbooks in the
playbooks/directory. - To use PonyFlash cloud generation, the user needs an API key:
- Register / log in at https://www.ponyflash.com
- Get API key at https://www.ponyflash.com/api-key (starts with
rk_) - Check credits at https://www.ponyflash.com/usage
- Paste the key back in the chat
On subsequent SDK activations, check whether PONYFLASH_API_KEY is set in the environment. If not, ask the user for the key again.
Once received, set it up:
export PONYFLASH_API_KEY="rk_xxx"
Then install the SDK:
pip install ponyflash
Always verify the key works before any generation task:
from ponyflash import PonyFlash
pony_flash = PonyFlash(api_key="<key from user>")
balance = pony_flash.account.credits()
print(f"Balance: {balance.balance} {balance.currency}")
If verification fails:
- Key invalid or missing → direct user to https://api.ponyflash.com/api-key
- Balance is zero → direct user to https://api.ponyflash.com/usage to top up credits
Step 1B: Local Dependency Setup for FFmpeg Tasks
Only do this section when the request needs local editing, subtitle, or export work.
- First check local dependencies:
bash "{baseDir}/scripts/check_ffmpeg.sh"
- If the task involves subtitles, do capability checks, not just existence checks:
bash "{baseDir}/scripts/check_ffmpeg.sh" --require-subtitles-filter
- If
ffmpeg/ffprobeor required filters are missing:
- Tell the user what is missing.
- Ask whether the user wants platform-appropriate FFmpeg installation guidance.
- After the user installs FFmpeg, rerun the dependency checks before continuing.
What this Skill Can Do
| Capability | Resource | Description |
|---|---|---|
| Image generation | pony_flash.images |
Text-to-image, image editing with mask/reference images |
| Video generation | pony_flash.video |
Text-to-video, first-frame-to-video, OmniHuman, Motion Transfer |
| Speech synthesis | pony_flash.speech |
Text-to-speech with voice cloning, emotion control, speed, pitch |
| Music generation | pony_flash.music |
Text-to-music with lyrics, style, instrumental mode, continuation |
| Model listing | pony_flash.models |
List available models, get model details and supported modes |
| File management | pony_flash.files |
Upload, list, get, delete files |
| Account | pony_flash.account |
Check credit balance, get recharge link |
| Local media editing | scripts/media_ops.sh |
Clip, concat, transcode, extract audio, frame capture |
| FFmpeg environment checks | scripts/check_ffmpeg.sh |
Detect ffmpeg / ffprobe and subtitle capabilities |
| Subtitle font prep | scripts/ensure_subtitle_fonts.sh |
Keep a reusable local copy of the default subtitle font when explicitly requested |
| ASS subtitle prep | scripts/build_ass_subtitles.py |
Adaptive ASS subtitle generation with pre-wrapping |
Creative Playbooks (production workflows)
The playbooks/ directory contains Creative Playbooks — step-by-step production workflow guides for specific content types. Playbooks act as a director layer: they tell you what to create and in what order, while this SKILL.md tells you how to execute generation and editing.
When to use a playbook
- User explicitly requests a playbook by name → Read the corresponding file from
playbooks/and follow its workflow. - User asks to see available playbooks → Read playbooks/INDEX.md and display the full list.
- User's request is clearly a multi-step production task → Suggest a matching playbook from playbooks/INDEX.md and ask whether to use it.
- User's request is a single-step generation or editing task → Proceed directly with the relevant SDK or FFmpeg capability. No playbook needed.
How to execute a playbook
Once a playbook is loaded:
- Follow its workflow (asset prep → content generation → voice / music → editing → output).
- Use PonyFlash SDK for generation tasks and FFmpeg scripts for local assembly / export tasks.
- Confirm key creative decisions with the user before expensive generation.
- Adapt prompts, durations, output format, and export strategy to the user's actual goal.
Creating custom playbooks
When the user asks to create a new playbook, generate a markdown file in playbooks/ following this template:
---
name: Playbook Name
description: One-line summary of what this playbook produces
tags: [keyword1, keyword2, keyword3]
difficulty: beginner | intermediate | advanced
estimated_credits: credit range estimate
output_format: format description (e.g., "vertical 9:16 MP4")
---
# Playbook Name
## Use Cases
When to use this playbook.
## Workflow
### Step 1: Asset Preparation
What the user needs to provide; how to generate missing assets.
### Step 2: Visual Content Generation
Which models to use, recommended parameters, prompt guidance.
### Step 3: Voice / Music
Speech synthesis + background music guidance.
### Step 4: Editing / Assembly
How to assemble, trim, subtitle, transcode, and export with the local FFmpeg workflow.
### Step 5: Output / Optimization
Render settings, format recommendations.
## Prompt Templates
Reusable prompt examples for this content type.
## Notes
Best practices, common pitfalls.
After creating the file, update playbooks/INDEX.md to include the new playbook.
PonyFlash SDK Core Concepts
Client initialization
from ponyflash import PonyFlash
pony_flash = PonyFlash(api_key="rk_xxx")
Reads PONYFLASH_API_KEY from environment if api_key is omitted.
FileInput — zero-friction file handling
All file parameters accept any of these types:
| Input type | Example | Behavior |
|---|---|---|
| URL string | "https://example.com/photo.jpg" |
Passed directly to API |
| file_id string | "file_abc123" |
Passed directly to API |
Path object |
Path("photo.jpg") |
Auto-uploaded via presigned URL |
open() file |
open("photo.jpg", "rb") |
Auto-uploaded via presigned URL |
bytes |
image_bytes |
Auto-uploaded via presigned URL |
(filename, bytes) tuple |
("photo.jpg", data) |
Auto-uploaded with filename |
Temp uploads are cleaned up automatically after generate() completes.
Plain local string paths such as "./photo.jpg" are not supported. For local files, always use Path(...) or open(..., "rb").
Generation result
Generation object fields: request_id, status, outputs, usage, error.
Convenience properties:
gen.url— first output URL (orNone)gen.urls— list of all output URLsgen.credits— credits consumed
Quick Examples (PonyFlash SDK)
Image
gen = pony_flash.images.generate(
model="nano-banana-pro",
prompt="A sunset over mountains",
resolution="2K",
aspect_ratio="16:9",
)
print(gen.url)
Video
gen = pony_flash.video.generate(
model="veo-3.1-fast",
prompt="A timelapse of a city at night",
duration=4,
resolution="720p",
aspect_ratio="16:9",
generate_audio=False,
)
print(gen.url)
Speech
gen = pony_flash.speech.generate(
model="speech-2.8-hd",
input="Hello, welcome to PonyFlash!",
voice="English_Graceful_Lady",
)
print(gen.url)
Music
gen = pony_flash.music.generate(
model="music-2.5",
prompt="An upbeat electronic dance track",
duration=30,
)
print(gen.url)
List models
page = pony_flash.models.list()
for model in page.items:
print(f"{model.id} ({model.type})")
Check balance
balance = pony_flash.account.credits()
print(f"Balance: {balance.balance} {balance.currency}")
Local Media Editing with FFmpeg
No PonyFlash API key is needed for local editing, but local FFmpeg capability checks are mandatory.
When to use this path
Use the local FFmpeg workflow when the user asks to:
- trim or cut a video
- merge or concatenate clips
- transcode to a target format
- extract audio
- capture a frame / thumbnail
- verify subtitle support
- prepare adaptive ASS subtitles
- export a final edited file after PonyFlash generation
Preferred workflow
- Check dependencies:
bash "{baseDir}/scripts/check_ffmpeg.sh"
- If subtitle work is needed:
bash "{baseDir}/scripts/check_ffmpeg.sh" --require-subtitles-filter
- Prefer the stable script entrypoint:
bash "{baseDir}/scripts/media_ops.sh" help
- Before any multi-step editing task, create a temporary task workspace and keep all staged inputs and intermediate outputs inside it:
taskDir="$(mktemp -d "${TMPDIR:-/tmp}/ponyflash-task.XXXXXX")"
Use this directory for:
- downloaded source media;
- generated
.srt/.assfiles; - intermediate clips;
- intermediate subtitled renders;
- reusable inspection outputs that were not explicitly requested as final deliverables.
-
Validate outputs after execution.
-
After the task finishes, delete the temporary task workspace unless the user explicitly asked to keep intermediate artifacts.
Capability profiles
basic: requiresffmpeg + ffprobe + libx264 + aacfull:basicplussubtitlesfilter support
Preferred commands
Probe media
bash "{baseDir}/scripts/media_ops.sh" probe --input "input.mp4"
Clip video
bash "{baseDir}/scripts/media_ops.sh" clip --input "$taskDir/input.mp4" --output "$taskDir/clip.mp4" --start "00:00:05" --duration "8"
Fast copy mode only when the user explicitly wants speed / near-lossless slicing:
bash "{baseDir}/scripts/media_ops.sh" clip --mode copy --input "$taskDir/input.mp4" --output "$taskDir/clip.mp4" --start "00:00:05" --duration "8"
Concat clips
bash "{baseDir}/scripts/media_ops.sh" concat --input "$taskDir/part1.mp4" --input "$taskDir/part2.mp4" --output "$taskDir/merged.mp4"
Fallback to reencode if copy concat fails:
bash "{baseDir}/scripts/media_ops.sh" concat --mode reencode --input "$taskDir/part1.mp4" --input "$taskDir/part2.mp4" --output "$taskDir/merged.mp4"
Extract audio
bash "{baseDir}/scripts/media_ops.sh" extract-audio --input "$taskDir/input.mp4" --output "$taskDir/audio.m4a"
Transcode
bash "{baseDir}/scripts/media_ops.sh" transcode --input "$taskDir/input.mov" --output "$taskDir/output.mp4"
Capture frame
bash "{baseDir}/scripts/media_ops.sh" frame --input "$taskDir/input.mp4" --output "$taskDir/cover.jpg" --time "00:00:03"
Subtitle workflow
For .srt / .ass burn-in:
bash "{baseDir}/scripts/check_ffmpeg.sh" --require-subtitles-filter
If subtitle style is unspecified, the agent should use the default subtitle workflow, which stages its runtime font temporarily and cleans it up after export.
Preferred stable entrypoint:
bash "{baseDir}/scripts/media_ops.sh" subtitle-burn --input "$taskDir/input.mp4" --subtitle-file "$taskDir/subtitles.srt" --output "final-output.mp4"
If the task needs adaptive line wrapping or controlled subtitle layout, or if you need to understand the underlying steps:
python3 "{baseDir}/scripts/build_ass_subtitles.py" --help
Default burn pattern:
- Probe width and height:
ffprobe -hide_banner -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0:s=x "input.mp4"
- Use the stable subtitle entrypoint when the user only wants the final rendered video:
bash "{baseDir}/scripts/media_ops.sh" subtitle-burn --input "$taskDir/input.mp4" --subtitle-file "$taskDir/subtitles.srt" --output "final-output.mp4"
This path keeps only the final final-output.mp4 by default and removes temporary ASS files and staged fonts. If the user did not explicitly request any staged files, the agent should also delete $taskDir after moving or confirming the final deliverable.
- Build a default ASS subtitle file only when the user explicitly wants to keep or inspect it:
bash "{baseDir}/scripts/ensure_subtitle_fonts.sh"
python3 "{baseDir}/scripts/build_ass_subtitles.py" \
--subtitle-file "$taskDir/subtitles.srt" \
--output-ass "$taskDir/subtitles.ass" \
--video-width 1920 \
--video-height 1080 \
--latin-font-file "$HOME/.cache/ponyflash/fonts/NotoSansCJKsc-Regular.otf" \
--cjk-font-file "$HOME/.cache/ponyflash/fonts/NotoSansCJKsc-Regular.otf"
- Burn subtitles with the prepared runtime font:
ffmpeg -i "$taskDir/input.mp4" \
-vf "subtitles=$taskDir/subtitles.ass:fontsdir=$HOME/.cache/ponyflash/fonts" \
-c:v libx264 -preset medium -crf 18 -c:a aac -b:a 192k -movflags +faststart "final-output.mp4"
Default subtitle references:
- Font notes:
{baseDir}/assets/fonts.md - Subtitle style:
{baseDir}/assets/subtitle-style.md - Decision rules:
{baseDir}/reference/operations.md - Examples:
{baseDir}/reference/examples.md
Decision rules
- Clip tasks: default to
reencode; usecopyonly when the user explicitly wants speed / minimal loss. - Concat tasks: default to
copy; fallback toreencodeif source parameters differ. - Audio extraction: default to AAC in
.m4a. - Transcode: default to
mp4 + libx264 + aac. - Subtitle tasks: if subtitle style is unspecified, use the default subtitle workflow, prepared runtime font, and default subtitle styling rules.
- Subtitle tasks: prefer
subtitles; usedrawtextonly as a plain text fallback. - Do not overwrite outputs unless the user explicitly allows it.
- Unless the user explicitly asks to keep intermediate artifacts, remove temporary ASS files, temporary font directories, concat lists, and failed partial outputs after the task finishes.
- Unless the user explicitly asks to keep intermediate artifacts, stage all non-final files inside
taskDirand deletetaskDirat the end of the task.
Failure handling
- If
ffmpegorffprobeis missing, pause the task, help the user install FFmpeg if needed, and rerun the checks first. - If subtitle burn-in is requested but
subtitlesis missing, do not claim the machine can burn.srt/.ass. - If only
drawtextexists, explain that this is text overlay fallback, not full subtitle burn-in. - If concat copy mode fails, retry with
reencode. - If scripts do not cover the exact request, explain the limitation and fall back to a raw
ffmpegcommand.
Error Handling for PonyFlash SDK
from ponyflash import (
PonyFlash,
InsufficientCreditsError,
RateLimitError,
GenerationFailedError,
AuthenticationError,
)
pony_flash = PonyFlash()
try:
gen = pony_flash.images.generate(model="nanobanana-pro", prompt="A cat")
except AuthenticationError:
print("Invalid or missing API key.")
print("Get your API key at: https://api.ponyflash.com/api-key")
except InsufficientCreditsError as e:
print(f"Not enough credits. Balance: {e.balance}, required: {e.required}")
print("Top up credits at: https://api.ponyflash.com/usage")
except RateLimitError:
print("Rate limited — wait and retry")
except GenerationFailedError as e:
print(f"Generation failed: {e.generation.error.code}")
More Examples
For advanced PonyFlash SDK usage: See examples/advanced.md
For FFmpeg task patterns:
API Reference
For complete method signatures, parameter types, and return type fields:
- Image generation: reference/images.md
- Video generation: reference/video.md
- Speech synthesis: reference/speech.md
- Music generation: reference/music.md
- Model listing: reference/models.md
- File management: reference/files.md
- Account / credits: reference/account.md
- FFmpeg operation strategy: reference/operations.md
- FFmpeg examples: reference/examples.md
- Subtitle fonts: assets/fonts.md
- Subtitle style: assets/subtitle-style.md
Model Catalog
For all available models and their specific parameters, capabilities, and examples: See reference/models/INDEX.md
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (18,682 bytes)
- 📎 assets/fonts.md (1,629 bytes)
- 📎 assets/subtitle-style.md (3,031 bytes)
- 📎 LICENSE (1,080 bytes)
- 📎 README.md (6,479 bytes)
- 📎 scripts/build_ass_subtitles.py (14,895 bytes)
- 📎 scripts/check_ffmpeg.sh (5,542 bytes)
- 📎 scripts/ensure_subtitle_fonts.sh (2,472 bytes)
- 📎 scripts/media_ops.sh (16,334 bytes)