Clip too short or long
A 1-second or 20-second reference fails. Trim each video or audio clip to 2 to 15 s, and keep the combined total for each type at 15 s or less.
Rejected references, jobs stuck in the queue, a bill higher than expected, missing or wrong audio, a soft or glitchy result: most H3 Flex problems trace back to a documented limit, a billing rule or a known model weakness. This guide maps each symptom to its cause and fix, using Pika's official API specs and the results of Pika's own model testing.
| Symptom | Most likely cause | Fix |
|---|---|---|
| HTTP 422 / "invalid input" | A reference or parameter is out of range | See reference validation |
| Job stuck on "queued" | You're at your concurrency limit | Wait for running jobs to finish, or request higher concurrency |
| Retry returns the same failure | Reused Idempotency-Key | Send a fresh key on every retry |
insufficient_balance | API is prepaid; balance too low | Top up at dev.pika.art/billing |
| Website credits not working on the API | Separate wallets | Pack credits work only on pika.art and Pika MCP |
| Bill higher than expected | Reference video seconds, upscaling or stem fees | See unexpected costs |
| Unwanted music or subtitles | Not excluded in the prompt | Add "No music, no score. No subtitles." |
| Weird physics or action | Known weaker area | Simplify the action, or test another model |
| Output looks soft | Native 480p/768p | Finish the take at 1080p, 2K or 4K |
| Local run: out of memory | Ref2VA at 768p or both partitions loaded | Use workflow=, block streaming or 480p |
Reference-to-video requests fail validation when any limit below is broken. The error (HTTP 422) names the offending field, so check it against this table.
| Rule | Official limit |
|---|---|
| Total references | 1 to 12, in order |
| Must include | At least one image or video. Audio can't be the only reference. |
| Images | Up to 9 · PNG, JPEG or WebP · up to 40 million source pixels · aspect ratio 1:4 to 4:1 |
| Videos | Up to 3 · each 2 to 15 s · 15 s combined · up to 16 MP per frame, 4 billion total pixels, 2,000 frames |
| Audio clips | Up to 3 · each 2 to 15 s · 15 s combined |
| File size | Each original up to 50 MiB. The prepared set must fit 64 MiB after base64 encoding (about 48 MiB raw). |
| Local uploads | The presigned upload URL expires after 5 minutes. PUT with the returned headers unchanged. |
| Image-to-video frames | JPEG, PNG or WebP, up to 24 MiB and 40 MP |
| Draft-to-video (external video) | Short side up to 768 px, up to 512 MiB and 1,441 frames |
A 1-second or 20-second reference fails. Trim each video or audio clip to 2 to 15 s, and keep the combined total for each type at 15 s or less.
Add at least one image or video. Audio references must be paired with visual references.
Panoramas or tall strips beyond 4:1 or 1:4 fail. Crop to a normal aspect ratio first.
Order matters. @Image1 is the first image you add, @Video1 the first video. Check your upload order matches your tags.
Pika's reference page shows both a references array and separate image_urls, video_urls and audio_urls fields. If one shape fails validation, try the other.
If you request an upload URL and wait more than 5 minutes, the PUT fails. Request a new URL right before uploading.
Limits from Pika's reference-to-video, image-to-video and draft-to-video specs and the Diffusers docs. More: H3 Flex references guide.
H3 Flex jobs are async: queued → running → completed, failed or cancelled. Branch on error.code when a job fails.
| Error / state | Meaning | Fix |
|---|---|---|
| HTTP 422 | Request validation failed; the message names the field | Correct that field (duration 3 to 15, a valid resolution, reference limits) |
invalid_input | Input rejected | Check formats, sizes and durations |
content_moderation | Prompt or media blocked | Rewrite the content; check Pika's Acceptable Use Policy |
insufficient_balance | Prepaid balance too low | Top up; check GET /billing/balance first |
HTTP 429 / rate_limited | Per-minute or per-day limit | Wait for Retry-After, then resubmit with a new key |
provider_error | Upstream or unknown failure (unrecognised codes map here) | Retry with backoff and a fresh Idempotency-Key |
timed_out | The job took too long | Retry; try a shorter duration or lower resolution |
Stays queued | At your concurrency limit | It starts when a slot opens. Enterprise plans offer higher concurrency. |
| Retry returns old failure | Same Idempotency-Key reused | A reused key replays the existing job. Always use a new key. |
| HTTP 409 | Key reused with a different body, or content fetched before completion | Use a new key; wait for completed before /content |
| Webhook never arrives | Bad signature check, or endpoint down | Check past attempts with GET /v1/webhooks/deliveries, and keep polling as a fallback |
Error codes from Pika's H3 Flex model specs and developer docs. Full integration guide: H3 Flex API guide.
Reference to video bills output seconds plus each second of reference video at the same rate. A 10 s 768p job with a 6 s video reference is billed for 16 s ($0.96, not $0.60).
Reference to video costs $0.06/s at 768p, three times text or image to video ($0.02/s).
4K is $0.08/s for text or image to video. Drafting at 768p and finishing only the keeper avoids paying 4K for rejected takes.
Setting output_mode: "audio-stems" on a generation adds a separation fee that Pika doesn't specify. The standalone stems endpoint is $0.001 per stem-second.
Pika says native output rounds up to the model's frame grid, so a clip can run slightly longer than the duration you requested.
The standalone prompt-rewriter endpoint costs $0.02 per request. Loops that call it before every job add up.
pika.art credits (10 per 5 s 768p clip) and API dollars are separate. Pack credits don't work on the API, the iOS app or old.pika.art.
Only successful generations are billed. Record spend only when billing.state is settled. A null billing value means no charge was recorded, not that the job was free.
Creator and Fancy plans currently include free H3 Flex generations every day. It's a limited-time offer, and Pika doesn't state a daily cap.
From Pika's API specs and pika.art/pricing. Full breakdown: H3 Flex pricing and the 4K guide.
| Problem | Fix |
|---|---|
| Music you didn't want | Add "No music, no score." |
| Random speech or mumbling | Add "No speech" to shots without dialogue |
| Subtitles printed on screen | End with "No subtitles." |
| Line rushed or cut off | Shorten it (about 2 to 3 words per second) or lengthen the clip |
| Wrong character speaks | Name the speaker before every line; one speaker per shot |
| Voice doesn't match the reference | Use a clean, solo 2 to 15 s sample, and tie it to one character |
| Effects off-beat | Tie each sound to a visible action or time range |
| Audio changed after upscaling | It shouldn't. Draft to video keeps the same audio, so re-check you downloaded the finished job |
| Stems: 3 files, not 5 | The current API returns Dialogue, Music and Effect. Pika's research post described five. |
| Stems in an unexpected format | The docs mention both a ZIP of WAVs and MP3, so check a test job first |
| Local: wrong audio pitch or speed | Fix the container's sample rate or fps metadata. Diffusers keeps what the file reports. |
More in the H3 Flex audio guide.
Pika's matched-prompt human evaluation found H3 Flex strongest at human anatomy, complex composition, audio sync, style and framing, and camera motion. Raters preferred other systems for physics, multi-scene narrative, lighting and materials, and action-heavy or control-video reference tasks. So:
| Quality problem | Why | Fix |
|---|---|---|
| Objects move unrealistically | Physics is a documented weaker area | Simplify the action into one clear beat; avoid collisions, liquids and stacked interactions |
| Fast action falls apart | Action-heavy shots are a documented weaker area | Slower movement, fewer moving subjects, and "real-time motion" phrasing |
| Character changes between shots | Multi-scene consistency is a documented weaker area | Use an @Image reference, repeat the description, or generate shots separately and edit |
| Lighting or materials look off | Lighting and materials are a documented weaker area | Name the light source and material explicitly ("brushed steel, warm key light from left") |
| Complex reference set ignored | Complex reference control is still improving | Fewer references, one clear job each, plus "keep / ignore" instructions |
| Soft or low detail | Native output is 480p/768p | Finish at 1080p, 2K or 4K with draft to video |
| Unexpected framing | If you omit aspect_ratio with rewrite on, Auto picks it | Set the aspect ratio explicitly |
| Prompt "improved" away | Rewrite is on by default | Set rewrite: false for detailed prompts |
| Keyframe edges cut off | Keyframes are resized and center-cropped to fit | Use keyframes that already match your aspect ratio |
| Garbled text in the video | AI-rendered text is unreliable | Add exact text as an overlay in your editor |

Strengths and weaknesses from the Pika H3 Flex research post, which states: "Physics, multi-scene consistency, and complex reference control remain areas for further improvement." Videos and chart © Pika. Generation behaviour from the API specs and Diffusers docs.
| Problem | Fix |
|---|---|
| Pipeline not found in diffusers | The stable release doesn't include it. Install diffusers from source, or use Pika's pinned requirements file. |
| Out of memory | Pass workflow= so only one ~61.7 GB partition loads, enable CPU offload, and keep Ref2VA at 480p unless you use block-level streaming |
| Results look worse than Pika's | Use the adapter's own six-step schedule. Pika says generic six-step sampling isn't equivalent. |
| Adapter has no effect | Base checkpoints aren't Pika-adapted, so load the matching fl2va or ref2va adapter separately |
| Video references won't load | Install PyAV |
| Can't get 1080p to 4K | Not available locally. Upscaling is hosted only for now. |
| Can't reproduce a showcase | Pika says showcases are creative examples with unspecified seeds and preprocessing |
From the model card and Diffusers docs. Setup help: H3 Flex download guide.
GET /billing/balance is free. If it fails, the problem is your key or account.
5 s, 480p, text to video, no references, a simple prompt, and a new Idempotency-Key. It costs about $0.05.
If this works, your setup is fine and the issue is in your inputs.
Then your resolution, then one reference, then audio settings, until the failure reappears. The last thing you added is the cause.
Email api@pika.art with the job ID and error.code.
curl -X POST \
https://api.dev.pika.art/v1/media/pika/pika-h3-flex/text-to-video \
-H "X-API-Key: $PIKA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"prompt": "A white cup on a wooden table, steam rising, static shot. Sound: quiet room tone. No music. No subtitles.",
"duration": 5,
"resolution": "480p",
"aspect_ratio": "16:9",
"rewrite": false
}'