A complete short-form video pipeline built on veo-3.1/image-to-video: generate a 9:16 source still, submit one async task, and get back a vertical clip with model-generated audio — every output in the post is a real first take. Includes the live-verified input schema, a draft-cheap-finish-sharp workflow using veo-3.1-fast at $0.25/s, batch submission code, and measured generation times.
HiAPI Team
Guide · Jul 13, 2026 · 8 min read


Three copy-paste image-to-video prompt recipes for the standard hailuo-2.3 tier, each shown with the exact prompt and the real, first-take 6-second clip it produced. Recipes stress what the standard tier is best at: sustained full-body human motion with trailing cloth, backlit water-droplet physics, and style-faithful animation of an ink-wash illustration. Includes the strict three-field task API schema, a standard-vs-fast tier workflow, and per-clip pricing ($0.40/6s) verified against the live pricing API.

Six copy-paste text-to-image prompts for seedream-4.5, each shown with its real, unretouched first output. All 14 quoted text strings across the post — headlines, date lines, labels, menu items, a button — rendered correctly on first takes; the single retake was a branding fix, not a text fix. Covers the tier's practical edge: $0.045 flat per image at 2K or 4K, eight aspect ratios, 61-112 s per task, and a strict 3-field schema.

Five copy-paste grok-imagine/image-to-image prompts, each paired with its reference image(s) and the raw first-take output it produced on the live hiapi task API - hosted permanently, no retries hidden. The base tier costs a flat $0.035 per image - half the quality tier - and handled a recolor, a scene relocation, a watercolor restyle, a two-reference composite and a sticker conversion first-take. With no strength, seed or negative-prompt fields, the prompt is the whole control surface: every recipe leans on a change-clause plus an explicit keep-clause.

Four copy-paste grok imagine image editing prompts, each paired with its input image and the raw first-take output it produced on the live hiapi API - hosted permanently, no retries hidden. The live-verified schema is prompt + image_urls (1-3 public URLs) plus optional resolution (lowercase 1k/2k) and aspect_ratio (auto + 13 fixed ratios) - no strength, seed or mask; unknown fields 400. The core technique is a change-clause/keep-clause split: state the edit first, then enumerate everything that must survive - the keep-clause is the only consistency control the API gives you. Covers targeted relighting (golden hour with identity locked), photo-to-watercolor style transfer, studio packshot to lifestyle scene swaps, and multi-reference product-into-scene composites. Flat $0.07 per output image at either resolution, with edits returning in 27-39 seconds - the whole article's media bill, bases and cover included, was $0.37.

Four copy-paste kling-3.0-turbo image-to-video prompt recipes, each showing the input first frame, the exact motion prompt, and the real clip generated on the live hiapi API — raw first outputs, hosted permanently. Covers a product-shot orbit for e-commerce, a vertical 9:16 portrait cinemagraph, a frozen action moment continued with believable physics, and a living-photo landscape loop. Schema verified live before generating: prompt + image_urls (exactly one public URL) + duration (integer 3-15s) + resolution (720p/1080p); no aspect_ratio field — output follows the input frame. Pricing is per second: $0.13/s at 720p and $0.16/s at 1080p, same flat rate as the t2v variant — a 5s clip is $0.65, a 3s probe $0.39. The core i2v prompting rule: never re-describe the frame — reference its contents, then spend the whole prompt on motion, camera, and what must stay put.

Six copy-paste image-to-image prompts for seedream-4.5, each shown with its real input and unretouched output. Covers the budget tier's distinctive strengths: $0.045 per edit, up to 14 reference images, and 4K output that the 5.0-pro tier doesn't offer. Includes the exact 4-field task API schema (probed against the live endpoint), a working curl example, and the failure modes we hit — spreading materials and drifting ingredient counts.

hiapi's image-to-image endpoints (flux-2, seedream-4.5, seedream-5.0-pro, gpt-image-2) do object removal and inpainting without masks — you describe the edit in the prompt and the model localizes it. All four share the same async lifecycle (POST /v1/tasks, poll or callback, download output[0].url) but have strict, mutually incompatible input schemas, each validated against the live API in this guide.

happyhorse-1.1 exposes three endpoints on hiapi's unified async /v1/tasks API: text-to-video, image-to-video, and reference-to-video — same lifecycle, different required inputs. text-to-video needs only `prompt`; image-to-video needs `image_urls` (exactly one URL); reference-to-video needs `prompt` plus 1–9 `reference_image` URLs. Shared optionals: `resolution` (720p|1080p) and `duration` (integer 3–15 s). `aspect_ratio` (9 ratios) works on text-to-video and reference-to-video but is rejected by image-to-video. Schemas are strict — `size`, `seed`, `negative_prompt`, and `audio` all return 400. Webhooks support only `callback.when="final"`. Billing is per second of output, so `duration` is the cost lever: iterate at 3 s / 720p, render the final at full length.

A working recipe for the grok-imagine-quality/text-to-image API on hiapi: create a task on POST /v1/tasks, poll or use a callback, and download the image from output[0].url before it expires. Covers the exact verified input schema (prompt, 13 aspect ratios, lowercase 1k/2k resolution tiers, output_format), plus production patterns: callbacks, Idempotency-Key, and the three failure shapes.
Get the latest model launches, engineering deep-dives, and API tutorials delivered straight to your inbox.
Email subscription is coming soon
No spam. Quality content on AI image & video generation, unsubscribe anytime.