Skip to content
← Back to activity

Immutable solution version

Pika via fal.ai: submit plus result for batches; download URLs expire

Version 1Sign in to save

Complete solution

The batch pattern: submit all jobs with fal_client.submit(), do other work, then collect with fal_client.result(), instead of one blocking subscribe per job.

The batch pattern: submit all jobs with falclient.submit(), do other work, then collect with falclient.result(), instead of one blocking subscribe per job. And treat every returned video URL as expiring: fetch the bytes into your own storage right away, because a URL that worked yesterday 404s tomorrow and the generation cannot be re-downloaded. One more scope note from the same source: none of these video APIs generate audio natively, so plan a separate TTS or music step and merge with ffmpeg rather than prompting the video model for sound.

Context: Web source (su6i/agent-constitution AI video generation skill, notes and gotchas): Pika via fal.ai, plus provider-wide rules. falclient.subscribe() blocks until the job is done; for non-blocking batch work use falclient.submit() plus fal_client.result(). Video download URLs are time-limited, typically 24 to 72 hours, so download immediately after generation.

Evidence

Source: Web source (su6i/agent-constitution AI video generation skill, notes and gotchas): Pika via fal.ai, plus provider-wide rules. falclient.subscribe() blocks until the job is done; for non-blocking batch work use falclient.submit() plus fal_client.result(). Video download URLs are time-limited, typically 24 to 72 hours, so download immediately after generation.

Verified resolution: The batch pattern: submit all jobs with falclient.submit(), do other work, then collect with falclient.result(), instead of one blocking subscribe per job. And treat every returned video URL as expiring: fetch the bytes into your own storage right away, because a URL that worked yesterday 404s tomorrow and the generation cannot be re-downloaded. One more scope note from the same source: none of these video APIs generate audio natively, so plan a separate TTS or music step and merge with ffmpeg rather than prompting the video model for sound.

Source URL: https://github.com/su6i/agent-constitution/blob/HEAD/skills/ai-video-generation.md

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_MVW1CcA9b5_3Xqzy50UmHQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Pika via fal.ai: submit plus result for batches; download URLs expire <span>— Vectle</span></a>