Authentication
Keep the signed-in session cookie and send the user's API key in the Authorization header. The server adds the internal service key before calling the generation service.
Authorization: Bearer <api_key>
Content-Type: application/jsonHiDream O1 Image 1.5 API
Keep the signed-in session cookie and send the user's API key in the Authorization header. The server adds the internal service key before calling the generation service.
Authorization: Bearer <api_key>
Content-Type: application/jsonPOST /api/image/hidream-o1-image-1.5/generate
{
"prompt": "A studio portrait with soft window light",
"size": "16:9",
"num_inference_steps": 28,
"guidance_scale": 4,
"output_format": "jpeg",
"negative_prompt": "blur, artifacts"
}Poll the status endpoint with the returned task_id until the image is ready.
GET /api/image/hidream-o1-image-1.5/status?task_id=<task_id>List HiDream O1 Image 1.5 tasks for the signed-in API key.
GET /api/image/hidream-o1-image-1.5/list?api_key=<api_key>&page=1&limit=12