Image
HiDream Image Generator
HiDream-O1 8.8B image generation & edit, pipeline-parallel ONNX stages.
HiDream-O1 8.8B — Image Generation & Edit (Pipeline-Parallel)
API reference
Submit via REST
Use your personal API key (msk_…) to create jobs for this workload from your own tools. Jobs started this way run on the same devices you connected on Your Devices — at least one has to be online.
https://cp.meshlabs.cloud/v1/organizations/jobsAuthenticate with X-Organization-Api-Key: msk_your_personal_api_key. The header name matches org keys; personal keys use the same endpoint.
POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign with the same API key, upload your file to the returned upload_url, then pass download_url in job_spec (for example as input_image_url).Request body
{
"workload_type": "hidream-o1-dev-t2i",
"job_spec": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 512,
"height": 512,
"numSteps": 28,
"strength": 0.6,
"compression_method": "fp16"
}
}job_spec fields
| Field | Required | Default | Description |
|---|---|---|---|
prompt | Yes | — | Text prompt for image generation or edit instruction |
width | No | 512 | Output image width in pixels (multiple of 32) |
height | No | 512 | Output image height in pixels (multiple of 32) |
seed | No | — | Random seed for reproducibility |
numSteps | No | 28 | Number of denoising steps (HiDream-O1 dev default: 28) |
num_steps | No | — | Snake-case alias of numSteps. Omit it and numSteps is what runs. |
noise_scale | No | — | Starting noise scale. Omit it and HiDream uses its own schedule. |
noiseScale | No | — | Camel-case alias of noise_scale. Omit it and noise_scale, or the model's own schedule, is what runs. |
input_image_url | No | — | Optional image URL to edit. When set, the image is patchified and denoising starts partway through the schedule (img2img). |
strength | No | 0.6 | How strongly to alter the input image (perceptual scale: 0.3 subtle retouch, 0.6 restyle, 0.8 heavy edit, 1.0 = ignore the input entirely). |
compression_method | No | fp16 | Codec for inter-stage hidden-state handoff. 'off' sends raw Float32; fp16 = half precision (2x smaller, visually lossless). Quantized/low-rank codecs compound over ~400 hops and damage the image, so they are not offered for this workload. Reported via codec_ms / transport_savings_pct job metrics. |
cURL
curl -X POST https://cp.meshlabs.cloud/v1/organizations/jobs \
-H "X-Organization-Api-Key: msk_your_personal_api_key" \
-H "Content-Type: application/json" \
-d '{
"workload_type": "hidream-o1-dev-t2i",
"job_spec": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 512,
"height": 512,
"numSteps": 28,
"strength": 0.6,
"compression_method": "fp16"
}
}'https://cp.meshlabs.cloud/v1/organizations/jobs/{job_id}Poll with the same API key until status is terminal (COMPLETED, FAILED, CANCELED, or MODERATION_BLOCKED). When content moderation is enabled, jobs may start in MODERATION_PENDING before entering the compute queue. Completed jobs include presigned download_url values on each output.
Create response
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workload_type": "hidream-o1-dev-t2i",
"status": "PENDING",
"job_spec_json": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 512,
"height": 512,
"numSteps": 28,
"strength": 0.6,
"compression_method": "fp16"
},
"work_units": [],
"outputs": [],
"created_at": "2026-06-08T12:00:00Z",
"updated_at": "2026-06-08T12:00:00Z"
}Completed response
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workload_type": "hidream-o1-dev-t2i",
"status": "COMPLETED",
"job_spec_json": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 512,
"height": 512,
"numSteps": 28,
"strength": 0.6,
"compression_method": "fp16"
},
"work_units": [
{
"id": "…",
"index": 0,
"status": "COMPLETED"
}
],
"outputs": [
{
"id": "…",
"output_type": "<output type>",
"filename": "<output filename>",
"size_bytes": 524288,
"download_url": "<presigned output download URL>"
}
],
"created_at": "2026-06-08T12:00:00Z",
"updated_at": "<completion timestamp>"
}Distributed text-to-image and image editing using HiDream-O1-Image-Dev (8.8B pixel-level unified transformer — no VAE, no separate text encoder). The 36-layer decoder is split into 18 uniform 2-layer ONNX stages (FP32 attention + INT4 MLP); a strong node may host several contiguous stages, handing off in-process. The checkpoint runs the 28-step FlashFlowMatch denoising loop; per-generation constants (RoPE cos/sin, attention mask) are cached on stage workers so steady-state traffic is one hidden-states tensor per hop, optionally through a selectable transport codec (off/fp16). Image editing accepts an input image URL plus strength — the pixel-space model patchifies the image directly, Flux2-style. Codec latency and byte savings are reported as job metrics (codec_ms, transport_savings_pct).