Search

Search HiAPI models, tools, and resources.

Blog

AI Image & Video API Guides

Hands-on model tests, production tutorials, prompt techniques, and current API pricing for generative media teams.

How to Use flux-2-klein-4b/image-to-image via the hiapi API
Tutorial
Jul 30, 2026

How to Use flux-2-klein-4b/image-to-image via the hiapi API

flux-2-klein-4b/image-to-image takes one reference image + a natural-language edit instruction and returns an edited image up to 4 MP, through hiapi's unified POST /v1/tasks endpoint. The input schema is strict: prompt and image_urls (max 1 item) are required; resolution, aspect_ratio, seed, output_format, and output_quality are optional — anything else is rejected with a 400. This guide gives a working curl and Python example, covers callback vs polling for production, and lists the exact error shapes for bad auth and malformed input.

Read more
ChatGPT Image Downloader by Link: How to Save an Image Before It Expires
Guide
Jul 21, 2026

ChatGPT Image Downloader by Link: How to Save an Image Before It Expires

Download a ChatGPT image while its signed link or original conversation still works, then store the bytes under a URL you control. A complete data export may preserve image_asset_pointer files that can be matched with the file-service id in conversations.json. An expired backend-api link or lone gen_id cannot retrieve the original pixels; regenerate or use a documented API for future automation.

Read more
Hailuo 2.3 Image-to-Video Prompts: 3 Copy-Paste Recipes With Real Outputs
Guide

Hailuo 2.3 Image-to-Video Prompts: 3 Copy-Paste Recipes With Real Outputs

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.

Read moreJul 13, 2026 · 7 min read
Seedream 4.5 Prompt Recipes: 10 Text-to-Image and Image-to-Image Prompts
Guide
Jul 13, 202610

Seedream 4.5 Prompt Recipes: 10 Text-to-Image and Image-to-Image Prompts

Five text-to-image and five image-to-image prompts for Seedream 4.5, each with its real output. Both endpoints cost $0.045 per image at 2K or 4K. Quote text and place it; for edits, name the change and list what must stay.

Read more
Grok Imagine Quality Image-to-Image Prompt Recipes: Copy-Paste Editing Prompts With Real Outputs
Guide
Jul 12, 2026

Grok Imagine Quality Image-to-Image Prompt Recipes: Copy-Paste Editing Prompts With Real Outputs

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. $0.08 per output image at 1K or $0.10 at 2K, plus $0.015 per reference image, with edits returning in 27-39 seconds — the whole article, bases and cover included, comes to $0.485 at current rates.

Read more
Image Inpainting and Object Removal API: Edit by Prompt on HiAPI
Tutorial
Jul 12, 20267

Image Inpainting and Object Removal API: Edit by Prompt on HiAPI

HiAPI's image-to-image models remove objects from an instruction; they don't take a mask. A real test: GPT Image 2 removed a price tag cleanly for $0.03. FLUX.2 and GPT Image 2 keep the source framing with aspect_ratio auto.

Read more
How to Use flux-2/image-to-image via the hiapi API: curl, Python, and a Working Request
Tutorial
Jul 11, 20268 min read

How to Use flux-2/image-to-image via the hiapi API: curl, Python, and a Working Request

A working recipe for the flux-2/image-to-image API on hiapi: create a task on /v1/tasks, poll for success, download output[0].url. All four input fields are required: prompt, image_urls (1-8 public URLs, i.e. Multi-Reference), aspect_ratio, and resolution (1K/2K). There is no strength/fidelity knob - the schema rejects unknown fields; fidelity is controlled via prompt phrasing and resolution.

Read more
Kling 3.0 Turbo API Guide: Text-to-Video and Image-to-Video
Tutorial
Jul 10, 20267

Kling 3.0 Turbo API Guide: Text-to-Video and Image-to-Video

Two endpoints, same price: $0.13/s at 720p, $0.16/s at 1080p. Every clip has sound and it can't be turned off. Image-to-video takes one first frame and follows its shape.

Read more
Grok Imagine Image API: Text-to-Image, Image-to-Image and Quality
Tutorial
Jul 10, 20268

Grok Imagine Image API: Text-to-Image, Image-to-Image and Quality

Four endpoints: standard and Quality, each with text-to-image and image-to-image. Standard is $0.03 per image; Quality is $0.07 at 1K and $0.10 at 2K. Same prompt: standard drew a plain cone, Quality drew a real pour-over dripper.

Read more
How to use seedream-4.5/image-to-image via the hiapi API: curl, Python, and a working request
Tutorial
Jul 10, 2026

How to use seedream-4.5/image-to-image via the hiapi API: curl, Python, and a working request

seedream-4.5/image-to-image runs on hiapi's unified task API: POST /v1/tasks to create, poll GET /v1/tasks/<id>, download data.output[0].url before it expires. The input schema is strict and takes exactly four fields: prompt, image_urls (public URLs, max 14), aspect_ratio (8-value enum), and resolution (2K or 4K only). This guide includes a working curl request, a complete Python polling script, multi-reference editing, callback setup, and the real 400/401 error shapes.

Read more

Build with the models you just read about.

Compare image, video, and audio models, then use the same API workflow in production.