Bild

Bonsai Bildgenerator

Geben Sie einen Prompt ein und erhalten Sie ein PNG – kompaktes 1-Bit-Bonsai-Image-Text-zu-Bild auf Geräten, die Sie verbinden.

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

Modelllizenzen

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.

Mitgelieferte Lizenz

Hinweis

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

KostenlosOnlineUnbegrenztBonsai Image by Prism ML; FLUX.2 klein by Black Forest Labs; Qwen3 by Alibaba Cl API-Zugang

API-Referenz

Per REST übermitteln

Verwenden Sie Ihren persönlichen API-Schlüssel (msk_…), um aus Ihren eigenen Tools Jobs für diesen Workload zu erstellen. So gestartete Jobs laufen auf denselben Geräten, die Sie unter Ihre Geräte verbunden haben – mindestens eines muss online sein.

API-Details ausblenden
POSThttps://cp.meshlabs.cloud/v1/organizations/jobs

Authentifizieren Sie sich mit X-Organization-Api-Key: msk_your_personal_api_key. Der Header-Name entspricht dem der Organisationsschlüssel; persönliche Schlüssel verwenden denselben Endpunkt.

Eingabedateien:Rufen Sie POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign mit demselben API-Schlüssel auf, laden Sie Ihre Datei an die zurückgegebene upload_url hoch und übergeben Sie dann download_url in job_spec (zum Beispiel als input_image_url).

Anfrage-Body

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

Felder von job_spec

FeldErforderlichStandardBeschreibung
promptJa—Textbeschreibung des Bildes.
input_image_urlNein—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.
widthNein1024Ausgabebreite in Pixeln (Vielfaches von 16).
heightNein1024Ausgabehöhe in Pixeln (Vielfaches von 16).
strengthNein0.8img2img noise fraction: 0.3 = light touch-up, 0.8 = heavy edit, 1.0 = ignore the input image. Only used with input_image_url.
stepsNein4Entrauschungsschritte (Bonsai Image ist auf 4 destilliert).
seedNein—Zufalls-Seed für reproduzierbare Generierung.
shiftNein3Verschiebung des Flow-Match-Schemas. Das Modell ist für 3.0 ausgelegt.
compression_methodNeinfp16Codec für FP32-DiT-Aktivierungsübergaben zwischen Knoten.

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}

Fragen Sie mit demselben API-Schlüssel ab, bis status einen Endzustand erreicht (COMPLETED, FAILED, CANCELED oder MODERATION_BLOCKED). Ist die Inhaltsmoderation aktiviert, können Jobs in MODERATION_PENDING beginnen, bevor sie in die Compute-Warteschlange gelangen. Abgeschlossene Jobs enthalten für jede Ausgabe vorsignierte download_url-Werte.

Antwort beim Erstellen

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

Antwort nach Abschluss

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

Geben Sie einen Text-Prompt ein und laden Sie ein generiertes PNG herunter. Bonsai Image ist ein kostenloser Online-Text-zu-Bild-Generator: ein kompaktes 1-Bit-FLUX.2-Klein-4B-Modell, das Beschreibungen in natürlicher Sprache in vier Schritten in Bilder verwandelt – unbegrenzt auf den Computern, die Sie mit MESH verbinden. Die Originalgröße ist 1024×1024; 512×512 ist eine schnellere Vorschau. Negative Prompts sind nicht nötig.