Afbeelding

Bonsai-afbeeldingsgenerator

Typ een prompt en ontvang een PNG — compact 1-bit Bonsai Image tekst-naar-afbeelding op apparaten die u verbindt.

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

Modellicenties

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.

Meegeleverde licentie

Kennisgeving

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

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

API-referentie

Indienen via REST

Gebruik uw persoonlijke API-sleutel (msk_…) om vanuit uw eigen tools taken voor deze workload aan te maken. Taken die op deze manier worden gestart, draaien op dezelfde apparaten die u hebt gekoppeld op Uw apparaten — ten minste één daarvan moet online zijn.

API-details verbergen
POSThttps://cp.meshlabs.cloud/v1/organizations/jobs

Authenticeer met X-Organization-Api-Key: msk_your_personal_api_key. De headernaam is dezelfde als bij organisatiesleutels; persoonlijke sleutels gebruiken hetzelfde endpoint.

Invoerbestanden:Roep POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign aan met dezelfde API-sleutel, upload uw bestand naar de geretourneerde upload_url en geef vervolgens download_url mee in job_spec (bijvoorbeeld als input_image_url).

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

Velden van job_spec

VeldVerplichtStandaardBeschrijving
promptJa—Tekstbeschrijving van de afbeelding.
input_image_urlNee—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.
widthNee1024Uitvoerbreedte in pixels (veelvoud van 16).
heightNee1024Uitvoerhoogte in pixels (veelvoud van 16).
strengthNee0.8img2img noise fraction: 0.3 = light touch-up, 0.8 = heavy edit, 1.0 = ignore the input image. Only used with input_image_url.
stepsNee4Denoising-stappen (Bonsai Image is gedistilleerd naar 4).
seedNee—Willekeurige seed voor reproduceerbare generatie.
shiftNee3Verschuiving van het flow-match-schema. Het model is ontworpen voor 3.0.
compression_methodNeefp16Codec voor FP32 DiT-activatieoverdrachten tussen nodes.

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}

Poll met dezelfde API-sleutel totdat status een eindstatus heeft (COMPLETED, FAILED, CANCELED of MODERATION_BLOCKED). Wanneer inhoudsmoderatie is ingeschakeld, kunnen taken in MODERATION_PENDING starten voordat ze in de rekenwachtrij komen. Voltooide taken bevatten vooraf ondertekende download_url-waarden bij elke uitvoer.

Antwoord bij aanmaken

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

Antwoord bij voltooiing

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

Typ een tekstprompt en download een gegenereerde PNG. Bonsai Image is een gratis online tekst-naar-afbeelding-generator: een compact 1-bit FLUX.2 Klein 4B-model dat beschrijvingen in gewone taal in vier stappen omzet in afbeeldingen, onbeperkt op de computers die u met MESH verbindt. De standaardgrootte is 1024×1024; 512×512 is een snellere preview. Negatieve prompts zijn niet nodig.