الصور

مولّد صور Bonsai

اكتب وصفًا واحصل على صورة PNG: تحويل النص إلى صورة بنموذج Bonsai Image المدمج بدقة 1 بت على الأجهزة التي تربطها.

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خطوات إزالة الضوضاء (نموذج Bonsai Image مقطَّر إلى 4 خطوات).
seedلا—بذرة عشوائية لتوليد قابل لإعادة الإنتاج.
shiftلا3إزاحة جدول مطابقة التدفق. صُمم النموذج للقيمة 3.0.
compression_methodلاfp16برنامج ترميز لتمرير تنشيطات 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 بت يحوّل الأوصاف المكتوبة بلغة طبيعية إلى صور في أربع خطوات، ويعمل بلا حدود على الحواسيب التي تربطها بـ MESH. الحجم الأصلي 1024×1024، وحجم 512×512 معاينة أسرع. لا حاجة إلى أوصاف سلبية.