Authentication
Send your API key with every request using Authorization: Bearer <YOUR_API_KEY>. Store the key on your server and do not expose it in frontend JavaScript.
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/jsonHiDream O1 Image 1.5 API
Send your API key with every request using Authorization: Bearer <YOUR_API_KEY>. Store the key on your server and do not expose it in frontend JavaScript.
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/jsonPOST https://hidreamimage.com/api/image/hidream-o1-image-1.5/generate
{
"prompt": "A clean product poster for a silver perfume bottle, readable headline, studio lighting",
"size": "16:9",
"num_inference_steps": 28,
"guidance_scale": 4,
"output_format": "jpeg"
}Use the returned task_id to check generation progress and read result URLs when the task completes.
GET https://hidreamimage.com/api/image/hidream-o1-image-1.5/status?task_id=<TASK_ID>List recent image generation tasks for the same API key with pagination.
GET https://hidreamimage.com/api/image/hidream-o1-image-1.5/list?page=1&limit=12