MiniH3
EnglishImage

Image generation

中文

POSThttps://api.minih3.dev/v1/images/generations

This call is billed to your account. Price: GPT Image 2.5: $0.0274 per image, whatever the size or quality

Purpose: one text description in, one image out, compatible with the OpenAI Images API. The public image model is gpt-image-2.5. The image can go straight into H3 as a reference or first/last frame.
Billing: per image returned, $0.0274 each; a failed request is not charged. Prices are on /catalog.
Returns: data[0].b64_json is the PNG image in base64, usually 1536×1024; the actual size is whatever the returned image has (a requested size is not guaranteed). One image usually takes 20–40 seconds.
Notes: requests queue when the service is busy; if the queue is full you get 429 (upstream_busy, with Retry-After). Retry later; nothing is charged. If the prompt does not pass the content safety check you get 400 content_policy; change the prompt and try again. Nothing is charged.

Parameters

NameInTypeRequiredDescription
modelbodystringyes-
promptbodystringyes-
nbodyintegerno-

Code samples

curl -X POST "https://api.minih3.dev/v1/images/generations" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2.5",
  "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

An OpenAI-style image result (data[].b64_json)

400

Error

401

Error

403

Error

429

Error