MiniH3
EnglishTools

Reference image

中文

POSThttps://api.minih3.dev/v1/tools/image

This call is billed to your account. Price: 每张 $0.0274 / $0.0274 per image

Optional image_urls (up to 4 https image URLs): with them the description edits those images (new style, background and so on); without them it draws from text, at the same price. A file that is not PNG, JPEG or WebP returns 400 invalid_image; a malformed parameter returns 400 invalid_image_urls. A description or image that does not pass the content safety check returns 400 content_policy; change it and try again, nothing is charged. Purpose: turn a text description into a reference image or a first/last frame, returned as a URL valid for 24 hours that drops straight into the remake workflow's assets (image_url) or an H3 request. Made with GPT Image 2.5, PNG, usually 1536×1024. Billing: per image, the price is $0.0274 per image (bill id minih3-tool-image), held for n images up front; a failed call is refunded in full. One image usually takes 20–40 seconds.

Parameters

NameInTypeRequiredDescription
promptbodystringyes

What to draw, at most 4000 characters

nbodyintegerno-
image_urlsbodyarray<string>no

Optional. Up to 4 https image URLs (PNG, JPEG or WebP, 20 MB each at most). With them the prompt edits those images; without them it draws from text. Same price

Code samples

curl -X POST "https://api.minih3.dev/v1/tools/image" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A friendly orange cat sitting on a wooden desk next to a laptop, soft morning light, photo.",
  "n": 1
}'

Try it

Kept in this browser tab only (sessionStorage) and sent straight to api.minih3.dev; it never reaches this site.

Enter your key to send.

Responses

200

Image URLs

{
  "images": [
    {
      "image_url": "https://…",
      "width": 1536,
      "height": 1024
    }
  ],
  "expires_at": "2026-11-04T01:00:00Z",
  "model": "minih3-tool-image"
}

400

Error

429

Error

502

Error