ภาพ

Bonsai Image เครื่องมือสร้างภาพ

พิมพ์พรอมต์แล้วรับ PNG — โมเดลสร้างภาพจากข้อความ Bonsai Image แบบ 1-bit ขนาดกะทัดรัด บนอุปกรณ์ที่คุณเชื่อมต่อ

Bonsai Image by Prism ML; FLUX.2 klein by Black Forest Labs; Qwen3 by Alibaba Cloud

ใบอนุญาตโมเดล

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

ฟรีออนไลน์ไม่จำกัดBonsai Image by Prism ML; FLUX.2 klein by Black Forest Labs; Qwen3 by Alibaba Cl การเข้าถึง API

เอกสารอ้างอิง API

ส่งผ่าน REST

ใช้คีย์ API ส่วนบุคคลของคุณ (msk_…) เพื่อสร้างงานสำหรับเวิร์กโหลดนี้จากเครื่องมือของคุณเอง งานที่เริ่มด้วยวิธีนี้จะทำงานบนอุปกรณ์เดียวกับที่คุณเชื่อมต่อไว้ใน อุปกรณ์ของคุณ — ต้องมีอย่างน้อยหนึ่งเครื่องที่ออนไลน์

ซ่อนรายละเอียด API
POSThttps://cp.meshlabs.cloud/v1/organizations/jobs

ยืนยันตัวตนด้วย X-Organization-Api-Key: msk_your_personal_api_key ชื่อเฮดเดอร์ตรงกับคีย์ขององค์กร ส่วนคีย์ส่วนบุคคลใช้ปลายทางเดียวกัน

ไฟล์อินพุต:เรียก POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign ด้วยคีย์ API เดียวกัน อัปโหลดไฟล์ของคุณไปยัง upload_url ที่ได้รับ จากนั้นส่ง download_url ใน job_spec (เช่น เป็น input_image_url)

เนื้อหาคำขอ

{
  "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"
  }
}

ฟิลด์ของ job_spec

ฟิลด์จำเป็นค่าเริ่มต้นคำอธิบาย
promptใช่—คำอธิบายภาพเป็นข้อความ
input_image_urlไม่—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ไม่1024ความกว้างของภาพที่ได้ เป็นพิกเซล (พหุคูณของ 16)
heightไม่1024ความสูงของภาพที่ได้ เป็นพิกเซล (พหุคูณของ 16)
strengthไม่0.8img2img noise fraction: 0.3 = light touch-up, 0.8 = heavy edit, 1.0 = ignore the input image. Only used with input_image_url.
stepsไม่4จำนวนขั้นตอน denoising (Bonsai Image ผ่านการ distill เหลือ 4)
seedไม่—ซีดสุ่มเพื่อให้สร้างภาพซ้ำได้
shiftไม่3ค่า shift ของตาราง flow-match โมเดลออกแบบมาสำหรับค่า 3.0
compression_methodไม่fp16โคเดกสำหรับการส่งต่อ activation ของ DiT แบบ FP32 ระหว่างโหนด

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"
  }
}'
GEThttps://cp.meshlabs.cloud/v1/organizations/jobs/{job_id}

โพลด้วยคีย์ API เดียวกันจนกว่า status จะเป็นสถานะสิ้นสุด (COMPLETED, FAILED, CANCELED หรือ MODERATION_BLOCKED) เมื่อเปิดใช้การกลั่นกรองเนื้อหา งานอาจเริ่มที่ MODERATION_PENDING ก่อนเข้าสู่คิวประมวลผล งานที่เสร็จสมบูรณ์จะมีค่า download_url ที่ลงนามล่วงหน้าในแต่ละเอาต์พุต

การตอบกลับเมื่อสร้าง

{
  "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"
}

การตอบกลับเมื่อเสร็จสมบูรณ์

{
  "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>"
}

พิมพ์พรอมต์ข้อความแล้วดาวน์โหลด PNG ที่สร้างขึ้น Bonsai Image เป็นเครื่องมือสร้างภาพจากข้อความออนไลน์ฟรี ใช้โมเดล FLUX.2 Klein 4B แบบ 1-bit ขนาดกะทัดรัด ที่เปลี่ยนคำอธิบายภาษาธรรมชาติเป็นภาพในสี่ขั้นตอน รันได้ไม่จำกัดบนคอมพิวเตอร์ที่คุณเชื่อมต่อกับ MESH ขนาดดั้งเดิมคือ 1024×1024 ส่วน 512×512 ใช้พรีวิวได้เร็วกว่า ไม่จำเป็นต้องใช้ negative prompt