Gambar
Bonsai Image Generator
Ketik prompt dan dapatkan PNG — teks ke gambar Bonsai Image 1-bit yang ringkas di perangkat yang Anda hubungkan.
Bonsai Image by Prism ML; FLUX.2 klein by Black Forest Labs; Qwen3 by Alibaba Cloud
Lisensi model
Prism ML Bonsai Image binary DiT · Apache-2.0
Retain complete Apache-2.0 licence, upstream copyright and NOTICE texts; prominently identify modified files. Patent termination and trademark limitations apply. Prism ML requests public attribution, preserved here and in the catalog.
FLUX.2 klein VAE and shared pipeline/tokenizer derivatives · Apache-2.0
Retain complete Apache-2.0 licence, upstream copyright and NOTICE texts; prominently identify modified files. Patent termination and trademark limitations apply.
Qwen3-4B text encoder distributed by FLUX.2 klein · Apache-2.0
Referensi API
Kirim melalui REST
Gunakan kunci API pribadi Anda (msk_…) untuk membuat tugas bagi beban kerja ini dari alat Anda sendiri. Tugas yang dimulai dengan cara ini berjalan di perangkat yang sama yang Anda hubungkan di Perangkat Anda — setidaknya satu harus online.
https://cp.meshlabs.cloud/v1/organizations/jobsAutentikasi dengan X-Organization-Api-Key: msk_your_personal_api_key. Nama header sama dengan kunci organisasi; kunci pribadi menggunakan endpoint yang sama.
POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign dengan kunci API yang sama, unggah file Anda ke upload_url yang dikembalikan, lalu teruskan download_url di job_spec (misalnya sebagai input_image_url).Isi permintaan
{
"workload_type": "bonsai-image-binary-4b",
"job_spec": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 1024,
"height": 1024,
"strength": 0.8,
"steps": 4,
"shift": 3,
"compression_method": "fp16"
}
}Kolom job_spec
| Kolom | Wajib | Default | Deskripsi |
|---|---|---|---|
prompt | Ya | — | Deskripsi teks gambar. |
input_image_url | Tidak | — | Optional input image for image editing (img2img). When set, the image is VAE-encoded and mixed with noise by 'strength'; the prompt describes the desired edit. |
width | Tidak | 1024 | Lebar keluaran dalam piksel (kelipatan 16). |
height | Tidak | 1024 | Tinggi keluaran dalam piksel (kelipatan 16). |
strength | Tidak | 0.8 | img2img noise fraction: 0.3 = light touch-up, 0.8 = heavy edit, 1.0 = ignore the input image. Only used with input_image_url. |
steps | Tidak | 4 | Langkah denoising (Bonsai Image didistilasi menjadi 4). |
seed | Tidak | — | Random seed untuk pembuatan yang dapat direproduksi. |
shift | Tidak | 3 | Pergeseran jadwal flow-match. Model dirancang untuk nilai 3.0. |
compression_method | Tidak | fp16 | Codec untuk serah terima aktivasi DiT FP32 antar-node. |
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": "bonsai-image-binary-4b",
"job_spec": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 1024,
"height": 1024,
"strength": 0.8,
"steps": 4,
"shift": 3,
"compression_method": "fp16"
}
}'https://cp.meshlabs.cloud/v1/organizations/jobs/{job_id}Lakukan polling dengan kunci API yang sama sampai status mencapai status akhir (COMPLETED, FAILED, CANCELED, atau MODERATION_BLOCKED). Jika moderasi konten diaktifkan, tugas dapat dimulai dalam status MODERATION_PENDING sebelum masuk ke antrean komputasi. Tugas yang selesai menyertakan nilai download_url presigned pada setiap keluaran.
Respons pembuatan
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workload_type": "bonsai-image-binary-4b",
"status": "PENDING",
"job_spec_json": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 1024,
"height": 1024,
"strength": 0.8,
"steps": 4,
"shift": 3,
"compression_method": "fp16"
},
"work_units": [],
"outputs": [],
"created_at": "2026-06-08T12:00:00Z",
"updated_at": "2026-06-08T12:00:00Z"
}Respons selesai
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workload_type": "bonsai-image-binary-4b",
"status": "COMPLETED",
"job_spec_json": {
"prompt": "A photorealistic lighthouse at dusk",
"width": 1024,
"height": 1024,
"strength": 0.8,
"steps": 4,
"shift": 3,
"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>"
}Ketik prompt teks dan unduh PNG hasil buatan. Bonsai Image adalah generator teks ke gambar online gratis: model FLUX.2 Klein 4B 1-bit yang ringkas, yang mengubah deskripsi bahasa alami menjadi gambar dalam empat langkah, berjalan tanpa batas di komputer yang Anda hubungkan ke MESH. Ukuran asli 1024×1024; 512×512 adalah pratinjau yang lebih cepat. Negative prompt tidak diperlukan.