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

Cheapest Image Generation API: How to Compare Real Cost Per Image
"Cheapest" is not a number you can look up once — it depends on resolution, model choice, and how many tries it takes to get a keeper. The metric that matters is cost per *usable* image: list price multiplied by attempts-to-acceptable, not the headline per-image rate. Retries and rework are the real budget killers. A model that needs five runs to land one good image is not cheap, even at a low sticker price. Iterate on a cheap, lightweight model at low resolution, then finalize the keeper on a flagship — you pay flagship rates only for images you actually ship. HiAPI is pay-as-you-go with one key across many image models, so you can route drafts and finals separately. Live numbers live on the pricing page; never trust a number copied into a blog post.

Image to Video API Workflow: Runway, Wan 2.7, Vidu, and Production API Patterns
Image-to-video is the right call when the opening frame is fixed — a product render, an approved key visual, a character sheet — and you need motion that respects it instead of a freshly hallucinated scene. {"The single biggest quality lever is the source image": "its resolution and aspect ratio cap the output, and a clean, well-framed subject gives the model far less room to drift."} First-frame control pins where the clip starts; adding a last frame pins where it ends, which is the most reliable way to kill end-of-clip motion drift. Prompt the change, not the scene. With i2v the model can already see the subject, so the prompt's job is the motion and the camera, not a description of what's in the frame. On HiAPI the callable workflow runs on Seedance 2.0 and Wan 2.7 image-to-video through one async task API — create, poll or get a callback, download — billed per second, so resolution and duration are your cost.

GPT Image API Guide: Model IDs, Routes, and Migration
OpenAI's current direct API model ID is gpt-image-2; gpt-image-1 and gpt-image-1.5 are previous, deprecated image models. New HiAPI integrations should use gpt-image-2/text-to-image or gpt-image-2/image-to-image through POST /v1/tasks. ChatGPT image generation, OpenAI's Image and Responses APIs, and HiAPI's async task API are different product surfaces with different request contracts. The retired HiAPI Pro IDs map to the current text-to-image and image-to-image IDs; do not preserve Pro in new code. This page is the navigation hub. Detailed parameters stay in the two model docs, and current rates stay in the pricing guide and live pricing page.

Free Text to Video API: Trials, No-Key Demos, and the Production Reality
A truly key-less text-to-video API you can script against does not exist — video is too compute-heavy for anyone to leave an open, unauthenticated endpoint running. No key in the wild means one of two things: consumer web tools you click through in a browser (not an API), or free-credit API tiers that still hand you a token first. {"Free tiers are real but capped": "short clips, watermarks, 720p ceilings, daily credit refreshes, queues, and unstable policies that change month to month."} For production you authenticate every call. The low-friction path is a no-card signup, free credit to test, then pay-as-you-go. On HiAPI, video runs through the async task API (Seedance 2.0, Wan 2.7), billed per second; signup gives $1 free credit (currently ~50 images of credit) to test before you pay.

Free AI Image API, No Key Required? Live Checks for 2026
Four live generation-endpoint checks did not produce an anonymous image: Pollinations, fal, Replicate, and HiAPI all returned an authentication response. Pollinations' legacy /p/ URL returned HTTP 200 with text/html, so the status code alone did not prove image generation. Cloudflare Workers AI, Hugging Face Inference Providers, and the Gemini API also document account-scoped or token-authenticated API access. HiAPI's free browser generator needs no sign-up or API key, while production API calls require an account and hiAPI key.

Invalid API Key Errors: Causes, Fixes, and an API Key Setup Checklist
Most invalid-key errors are not bad keys — they're whitespace, a wrong env var, a stale key, or a key sent to the wrong base URL. Read the error body, not just the status: it names the real cause and usually carries a request_id you quote to support. On HiAPI an auth failure is HTTP 401 with code permission_denied and type hiapi_error — not error_key_does_not_exist or invalid_api_key (those are other ecosystems' strings). claude code invalid api key is almost always the Anthropic key or a base-URL override — fix that, not HiAPI. Run the 8-step checklist below to validate any key with one minimal API call before you debug your app.

Fal.ai API Alternative: Keys, Docs, Pricing, and Migration Notes
fal.ai is a developer-first generative-media platform with serverless GPU and pay-per-use billing; if it fits your stack, it is a solid choice. HiAPI is a fair alternative when you want one unified API across image and video models, a single key, and pay-as-you-go pricing. HiAPI generation uses the unified async /v1/tasks API; existing clients must map model names, input fields, and result handling to that task contract. Migration means getting a HiAPI key, submitting a task, then polling or receiving a callback before downloading the result. Pricing on both is output-based; compare the model and read HiAPI's live pricing instead of relying on frozen figures.

Seedance 2.0 API: Make Product Short Videos
Two ways into a product clip, one API call: text-to-video (describe the shot) and image-to-video (animate a product photo). Image-to-video takes your packshot as first_frame_url and preserves the exact product — the brand workflow. Both 5s 720p clips cost $1.65; pricing is per second by resolution (480p $0.15, 720p $0.33, 1080p $0.823). Prototype motion at 480p, then re-render keepers at higher resolution.

Seedance 2.0 API Guide: Cinematic Text-to-Video
Seedance 2.0 handles text-to-video and image-to-video in one model, with native audio and 4–15s clips at 480p/720p/1080p. Every render runs through hiapi's async task API: create a task, poll (or use a callback), then download the time-limited output URL. Pricing is per second by resolution: 480p $0.15, 720p $0.33, 1080p $0.823. Iterate at 480p, then re-render the winner at ship resolution — and divide cost by your acceptance rate.

GPT Image 2 Image-to-Image API Guide
Image-to-image transforms an asset you already own — background swap, restyle, scene change — instead of generating from scratch. On hiapi, gpt-image-2-image-to-image is $0 per call; iterate for free. The only new parameter is input_urls: the source image(s) to transform. Anchor the subject with 'keep the product shape and color unchanged' so the model restyles the scene, not the product.
Build with the models you just read about.
Compare image, video, and audio models, then use the same API workflow in production.