Blog
AI Image & Video API Guides
Hands-on model tests, production tutorials, prompt techniques, and current API pricing for generative media teams.

flux-2 for E-Commerce Product Images: A hiapi API Recipe
A working recipe for e-commerce product images with flux-2/text-to-image on hiapi — every image reproduced from the exact prompt printed above it. flux-2 leans on prompt adherence and high fidelity: exact counts, exact colours, clean backgrounds, and blank labels, followed literally. Verified API facts: async /v1/tasks endpoint, resolution in MP form (0.5/1/2/4 MP), aspect_ratio optional; pricing $0.0375–$0.125 per image. Includes copy-paste create/poll/download code plus a batch loop for generating a whole catalog by SKU.

seedance-2-0 for Short-Form Video: A hiapi API Recipe
A working recipe for short-form vertical video with seedance-2-0 on hiapi — the 9:16 clip on the page was rendered from the exact prompt printed above it. seedance-2-0 does text-to-video and image-to-video from the same async task endpoint; short-form just means asking for aspect_ratio 9:16. Verified API facts: /v1/tasks endpoint, input needs prompt + required aspect_ratio + resolution (480p/720p/1080p) + duration; output is an MP4 at output[0].url. Pricing is per second of output: 480p $0.15/s, 720p $0.33/s, 1080p $0.823/s. Includes copy-paste submit/poll/download code plus a batch loop.

gpt-image-2 for E-Commerce Product Images: A Batch Workflow on hiapi
A reproducible workflow for e-commerce product images with gpt-image-2/text-to-image on hiapi — every image on the page was rendered from the exact prompt shown beside it. The pattern: write the product spec once, then vary only the camera/scene to get white-background listing shots, angle and detail variants, and a lifestyle scene of the same product. Verified API facts: /v1/tasks endpoint, input needs prompt + aspect_ratio (1:1 / 4:5 / 16:9) + resolution (1K/2K/4K); the image comes back at output[0].url and the URL expires. Pricing is a flat $0.03 per image, so a 100-SKU catalog at 3 shots each is 300 images for $9. Includes copy-paste submit/poll/download code plus a batch loop.

Seedance 2.0 Mini Prompt Recipes: Copy-Paste Prompts With Real Outputs
Five copy-paste seedance-2.0-mini prompt recipes, each paired with the real clip it generated on the live API (no borrowed demos). Covers text-to-video and image-to-video (first-frame control), plus camera moves, visual style, fast action, and native synced audio. Verified model facts: 4–15s clips, 480p/720p, duration + resolution required, aspect_ratio optional, T2V and I2V on one async task endpoint. Pricing is per second: $0.068/s at 480p, $0.147/s at 720p; a reference video lowers the rate. Includes a ready-to-run Python snippet (submit, poll, download) you can paste and use today.

Seedance 2.5 vs Seedance 2.0: What's New, Release Date, and Pricing
Seedance 2.5 is the next-generation video model previewed at the Volcano Engine FORCE 2026 conference (June 23, 2026). These are announced specs, not tested results. Headline upgrades over 2.0: up to 30s one-shot generation, native 4K (10-bit), up to 50 multimodal references, 3D blocking for camera control, and local editing with native audio. Expected to open for API access in early July. As of June 29, 2026, it is not yet publicly available, and no official price has been published. What you can use right now: Seedance 2.0 on hiapi (4-15s clips, up to 1080p, image-to-video, synced audio) on the same async task API. To be first to integrate: build your pipeline on Seedance 2.0 today, then swap the model name on launch day. One API key covers both.

Generating Ecommerce Product Images with qwen-image-2.0 via the hiapi API
qwen-image-2.0 on hiapi produces ecommerce-grade images with clean Chinese-text rendering for $0.025 per image — the only model on the platform that puts both Chinese headlines and English subtitles in the same render reliably. Input schema is unique to this model: field is 'size', separator is '*', and only five values are accepted ('2688*1536', '2368*1728', '2048*2048', '1728*2368', '1536*2688'). Other models on hiapi accept 'aspect_ratio' — qwen-image-2.0 does not. A 200-SKU cross-border drop (hero + lifestyle + variant grid + banners + listing cards) totals around 810 renders at ~$20 — the cost band that makes 'generate everything' cheaper than commissioning a partial photoshoot.

Free Text-to-Video AI API: Realistic Free Options and How hiapi Compares
There is no provider in 2026 that gives you production-grade text-to-video at zero marginal cost with no friction — only three real routes that get close: Hugging Face's free Inference Provider credits, self-hosting an open model, or a small per-second paid API. Hugging Face's free tier is the closest thing to a true free API: routed OpenAI-compatible access to open video models on Replicate, fal, and Novita, with monthly credits good for roughly 5–50 short clips per month. Self-hosting Wan 2.1/2.2, HunyuanVideo, CogVideoX, or LTX-Video on owned or rented GPUs is genuinely cheaper per clip at volume — but only after you absorb the model selection, quantization, and ops cost. For 20+ five-second 720p clips per month, hiapi's wan2.7-video/text-to-video@pro at $0.10/sec ($0.50/clip, $40/mo for 80 clips) usually beats both routes once you price in your engineering time.

Image Generation API Rate Limits Explained: What to Expect and How HiAPI Handles Bursts
Image APIs gate traffic on three axes — RPM, RPD, and concurrency — and concurrency is almost always the real bottleneck for image generation. A 429 is not a 401: read the error body, grab the request_id, and only back off on actual rate-limit codes. Cap client-side concurrency with a semaphore before adding retries; exponential backoff with full jitter handles transient bursts without thundering-herd. HiAPI's POST /v1/tasks split makes rate-limit math simpler: cheap create calls + provider-side queueing absorb bursts behind one Bearer key. Honor Retry-After when present; separate keys per environment so staging traffic doesn't eat production's concurrency budget.

hiapi output URL expired: download before it expires
hiapi `/v1/tasks` returns a signed `output[*].url` with a short `expireAt` — minutes, not days. Once `expireAt` passes the URL 403s; the task record stays but the file is gone from that link. Download the bytes inside the same polling loop and upload them to your own storage (R2/S3/CDN). Never store the signed URL in your DB or hot-link it into customer-facing pages. Re-running the task to recover a lost asset is a new billable job — cheaper to download once.
![Generating Ecommerce Product Images with FLUX.1 [schnell] via the hiapi API](/_next/image?url=https%3A%2F%2Fstatic.hiapi.ai%2Fblog%2F_default%2Flight-cover-12.png&w=3840&q=75)
Generating Ecommerce Product Images with FLUX.1 [schnell] via the hiapi API
flux-schnell on hiapi produces ecommerce-grade product images (packshot, lifestyle, top-down, variants) for $0.005 per image and about 30 seconds end-to-end — the right speed/cost band for catalog work. schnell's input schema rejects 'resolution' — send only 'aspect_ratio'. Other image models on hiapi accept both. For a 200-SKU catalog at 4 shots each (800 images) total cost is $4. Premium models for the same job land at $40–$136.
Build with the models you just read about.
Compare image, video, and audio models, then use the same API workflow in production.