Yes, the Pika web app accepts the field-based prompt format published in the Pika H3 Flex GitHub repository. In our three matched pairs, it produced clips that were as usable as a clear plain-language prompt with the same content. It did not make an obvious improvement.
That is a useful result. The GitHub format is a writing checklist, not a secret switch. Use it when the structure helps you think through a complex brief. Use plain sentences when they are faster for you. Either way, the content does the work: the order of action, the ending, the camera and the sound.
Below are the three pairs, the exact prompts, the six clips and the credits each one cost. The last sections give you templates you can paste into the H3 Flex prompt field.
Quick answer: which format should you use?
| Your task | GitHub format | Plain-language equivalent | Our pick in the web app |
|---|---|---|---|
| Text to video | integrated_multimodal_description, overall_soundscape, non_diegetic_music |
Scene and action, then Sound: and Music: lines |
Plain, unless the brief has several shots |
| First and last frames | An alignment line, then the three text fields | “Begin on the first frame… end on the lit lamp” | Plain; the uploaded frames already set both ends |
| References | Six fields from subject_definitions to non_diegetic_music |
“Use @Image1 as the product: keep…” | Six fields for several references with different jobs |
| Dialogue | (S1) and <d>[English] …</d> tags |
The spoken line in double quotation marks | Either; both clips spoke the line |
The repository’s prompt guide was written for the local command-line package. The hosted web app may handle prompts differently, so treat these results as examples rather than a rule for every scene.
What the GitHub prompt guide asks for
The repo’s prompt guidance splits a prompt into labelled fields. Each task type has its own set:
- Text to video (T2VA).
integrated_multimodal_descriptionholds the picture, action, camera and synchronized sound.overall_soundscapeholds ambience and physical sounds in one to four sentences.non_diegetic_musicholds the score, orN/A. - First or last frames (FL2VA). The same three fields, preceded by a line that says when each picture should appear, such as “Picture 1 aligns with the 0.00-second mark.”
- References (Ref2VA). Six fields:
subject_definitions,summary,retention_analysis,detailed_description,overall_soundscapeandnon_diegetic_music. The retention field uses markers such asfully_preserved,attribute_transferandremoved.
A few writing rules apply to every type. Start with [Shot 1]. Give later shots a cut time, for example [Shot 2] At 00:03.000. Label speakers (S1), (S2) and wrap their words in <d>[English] … </d>. Put on-screen text in double quotation marks. Describe the final visible result of every action.
How we set up the pairs
Each pair used the same scene, the same settings and one output. Only the prompt layout changed. All six clips used Pika H3 Flex, 16:9, 768p, Draft Mode on and Split Audio Stems off.
One sample per prompt cannot prove that a format is better or worse. Generate two takes of each version if your decision depends on a small difference.
Pair 1: text to video with a spoken line
The plain prompt
Choose Omni Reference, leave the attachments empty, set the duration to 8s, and paste:
A live-action medium close-up in a small sunlit café. A barista with short curly hair and a green apron stands behind a wooden counter. She sets a white cappuccino cup on its saucer, slides it toward the camera and says warmly, “One oat cappuccino.” A customer’s hand enters from the right and lifts the cup away. The camera remains fixed. End with the barista smiling at the empty saucer.
Sound: quiet café ambience, a soft ceramic clink as the cup touches the saucer, and an espresso machine hissing in the background.
Music: none.
The GitHub field format
Keep the settings and replace the prompt with the same content in fields:
integrated_multimodal_description:
[Shot 1] A live-action medium close-up in a small sunlit café. A barista with short curly hair and a green apron stands behind a wooden counter. She sets a white cappuccino cup on its saucer, slides it toward the camera and says warmly (S1), <d>[English] One oat cappuccino.</d> A customer's hand enters from the right and lifts the cup away. The camera remains fixed. End with the barista smiling at the empty saucer.
overall_soundscape:
Quiet café ambience, a soft ceramic clink as the cup touches the saucer, and an espresso machine hissing in the background.
non_diegetic_music:
N/A

Both clips follow the brief in order: cup forward, spoken line, hand from the right, empty saucer at the end. Both keep the camera fixed. The menu boards contain made-up lettering in each version, so avoid close-ups of signs when you need readable text.
The tags did not appear as words in the soundtrack or on screen. The model read them as instructions, which is what you want.
Pair 2: first and last frames
Prepare two matching frames
Switch to Frames. Add an unlit lamp as the First frame and the same lamp switched on as the Last frame. Keep the camera position, lens and lighting direction the same in both pictures. Set the duration to 5s.
The plain prompt
The cream table lamp on the oak desk switches on. The bulb flickers once, then glows steadily, and a warm pool of light spreads across the desk and the sage-green wall. No hands or people appear. One continuous shot; the camera remains fixed. End on the lit lamp.
Sound: a soft switch click and quiet room tone.
Music: none.
The GitHub alignment-line format
The repo asks for the real clip length to two decimal places. A 5-second request produces 124 frames at 24 fps, which is 5.17 seconds.
How the reference pictures align with the target video — <Picture 1> (from [Shot 1]) aligns with the 0.00-second mark of the target video; <Picture 2> (from [Shot 1]) aligns with the 5.17-second mark of the target video.
integrated_multimodal_description:
[Shot 1] Begin aligned with <Picture 1>. The cream table lamp on the oak desk switches on. The bulb flickers once, then glows steadily, and a warm pool of light spreads across the desk and the sage-green wall. No hands or people appear. One continuous shot; the camera remains fixed. End aligned with <Picture 2>.
overall_soundscape:
A soft switch click and quiet room tone.
non_diegetic_music:
N/A

The two clips are almost identical. Each opens on the dark lamp, switches on at about 1.5 seconds and holds the lit ending. No hands appear, and the camera stays still.
When both frames are uploaded, the app already knows the start and the end. The alignment line repeats that information. It becomes more useful when you supply only a last frame, because it tells the model where that picture belongs.
Find the alignment time for your duration
H3 Flex rounds requests up to its frame grid, so the alignment time is rarely the whole number you chose. These are the lengths of our saved files:
| Duration setting | Frames at 24 fps | Real length | Write in the alignment line |
|---|---|---|---|
| 5s | 124 | 5.175 s | 5.17 |
| 8s | 192 | 8.000 s | 8.00 |
| 10s | 243 | 10.125 s | 10.13 |
| 12s | 294 | 12.250 s | 12.25 |
| 15s | 362 | 15.083 s | 15.08 |
Pair 3: an image reference with six fields
Attach the reference
Return to Omni Reference, click +, and upload one product photo. Type @ in the prompt and pick the file from the Attached menu. Set the duration to 5s. With one image attached, the settled quote was 30 credits.
The plain prompt with an @mention
Use @WarmMugReference as the product: keep the ivory mug, its handle on the right and the dark coffee exactly as shown. Place the mug on a rain-streaked windowsill at dusk, with soft blue light outside and a warm lamp glow inside. Steam rises from the coffee while raindrops run down the glass. One continuous shot; the camera slowly pushes in and ends on a close-up of the mug.
Sound: gentle rain on the window and quiet room tone.
Music: a soft, slow piano phrase.
The six-field version
Keep one @mention in subject_definitions so the app links the label to your upload. Refer to the product as <Subject 1> after that.
subject_definitions:
<Subject 1> is the ivory mug from @WarmMugReference (Picture 1), retaining its shape, its handle on the right and the dark coffee inside.
summary:
[reference generation] <Subject 1> sits on a rain-streaked windowsill at dusk while steam rises and the camera slowly pushes in.
retention_analysis:
<Subject 1> (appears in [Shot 1]): fully_preserved - retain the mug, its handle on the right and the dark coffee exactly as shown.
detailed_description:
The video is live-action.
[Shot 1] <Subject 1> sits on a rain-streaked windowsill at dusk, with soft blue light outside and a warm lamp glow inside. Steam rises from the coffee while raindrops run down the glass. One continuous shot; the camera slowly pushes in and ends on a close-up of <Subject 1>.
overall_soundscape:
Gentle rain on the window and quiet room tone.
non_diegetic_music:
A soft, slow piano phrase.

Both clips keep the ivory mug, the right-side handle and the dark coffee. Both show rain on the glass, dusk light and a slow push-in. The plain version shows a street with parked cars outside; the six-field version shows blurred trees. Neither shows a strong warm lamp glow, so that detail needs its own sentence and a second take.
The app rewrites your @mention
After you generate, open the prompt on the result card. Pika stores the mention by its slot, so @WarmMugReference becomes Image 1. A video reference becomes Video 1. Use those slot names when you copy a prompt from one project to another.

When the GitHub format helps
The pairs above were simple on purpose. The field layout earns its place when a brief gets crowded:
- Several references with different jobs.
subject_definitionsforces you to say what each file supplies, such as product, setting or camera movement. - Partial changes.
retention_analysismakes you separate what stays from what changes. Writeremovednext to anything that should disappear. - Audio reuse. The repo’s audio markers distinguish copying a recording (
fully_copy) from borrowing a voice’s character (reference). - Long multi-shot scenes.
[Shot 2] At 00:03.000keeps cut times in order. See our multi-shot recipes for five longer examples.
For a single subject and one action, plain sentences are quicker to write and to edit. Our H3 Flex guide covers that route from the first prompt.
Copy a web-ready template
Replace the bracketed text. Keep one blank line between fields.
Text to video
integrated_multimodal_description:
[Shot 1] [Style and setting]. [Who or what is in frame, and where]. [Action in order]. [Camera: one continuous shot, movement, speed and ending view]. End with [final visible state].
overall_soundscape:
[Ambience and physical sounds, one to four sentences].
non_diegetic_music:
[Instruments, speed and volume, or N/A]
One image reference
subject_definitions:
<Subject 1> is the [object or person] from @[YourUploadName] (Picture 1), retaining [the features that must stay].
summary:
[reference generation] <Subject 1> [does what, where].
retention_analysis:
<Subject 1> (appears in [Shot 1]): fully_preserved - retain [features].
detailed_description:
The video is live-action.
[Shot 1] [Scene, action, camera and ending].
overall_soundscape:
[Ambience and physical sounds].
non_diegetic_music:
[Score, or N/A]
Fix common problems
The repo lists several fixes. These are the ones you will meet most often in the web app:
- The action never finishes. Describe the result, not only the motion: “After stirring, she places the spoon on the saucer.”
- The wrong person acts. Name who does each step: “She hands the pen to her colleague; the colleague signs.”
- Every reference leaks into the shot. Limit each file: “Use Picture 1 only for composition and Picture 2 only for the character.”
- A character sheet appears whole. Ask for one character in a new location, “without the sheet panels, labels or alternative views.”
- A push-in looks like a zoom. “Push in” moves the camera. “Zoom in” changes the lens. Use the one you want.
Frequently asked questions
Does Pika H3 Flex understand the GitHub prompt fields in the web app?
Yes. The app accepted the field labels, shot markers and dialogue tags as normal prompt text. None of the labels appeared on screen or in the soundtrack in our six clips.
Is the GitHub format better than a plain prompt?
Not in our three matched pairs. Each format produced a comparable result from the same content. Choose the layout that helps you write a complete brief.
What number goes in the alignment line?
Use the real clip length to two decimals. A 5-second request is 5.17 seconds, 10 seconds is 10.13 and 15 seconds is 15.08.
Do I still need @mentions with the six-field format?
Yes. Keep at least one @mention so the app links your text to the uploaded file. Pika saves it as Image 1, Video 1 or Audio 1 on the result card.
Does the prompt format change the credit cost?
No. The quote depended on duration, resolution, attachments and stems. Each pair cost the same for both formats: 16, 10 and 30 credits.

