コマンドライン
CLI の例
画像、動画、アセット、制作ワークフローで使える、費用を考慮した FoxCut CLI の例です。
画像
例
foxcut tool call estimate_generation_cost --json '{"kind":"t2i","model":"soul","params":{"aspect":"4:5"}}'
foxcut generate image --json '{"prompt":"Editorial product portrait on warm limestone","aspect_ratio":"4:5"}'結果をポーリング
例
foxcut generation get JOB_ID
foxcut generation list --status succeeded --limit 10ローカルの参照素材をアップロード
例
foxcut media upload ./product.png --purpose product
# Use the returned HTTPS URL in a generation or workflow inputアップロードできるのは PNG、JPEG、WebP、MP4、MP3、WAV 形式で、上限は 50 MB です。エンドポイントは CLI の Bearer トークンで認証し、接続中のアカウントにメディアを記録します。
すべてのツールを使う
例
foxcut tools list
foxcut tool call create_youtube_thumbnail --json '{"title":"I rebuilt my studio in 48 hours","direction":"high contrast creator documentary"}'