画像
Bonsai 画像ジェネレーター
プロンプトを入力して PNG を取得。接続したデバイスで動くコンパクトな 1-bit Bonsai Image によるテキストから画像生成。
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
API リファレンス
REST で送信
個人用 API キー(msk_…)を使うと、ご自身のツールからこのワークロードのジョブを作成できます。この方法で開始したジョブは、あなたのデバイス で接続したのと同じデバイスで実行されます。少なくとも 1 台がオンラインである必要があります。
https://cp.meshlabs.cloud/v1/organizations/jobsX-Organization-Api-Key: msk_your_personal_api_key で認証します。ヘッダー名は組織キーと同じで、個人キーも同じエンドポイントを使用します。
POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign を呼び出し、返された upload_url にファイルをアップロードしてから、job_spec に download_url を渡します(例: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.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 | いいえ | 4 | ノイズ除去のステップ数(Bonsai Image は 4 に蒸留されています)。 |
seed | いいえ | — | 再現可能な生成のためのランダムシード。 |
shift | いいえ | 3 | フローマッチングのスケジュールシフト。このモデルは 3.0 を前提に設計されています。 |
compression_method | いいえ | fp16 | ノード間の FP32 DiT 活性化の受け渡しに使うコーデック。 |
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}status が終了状態(COMPLETED、FAILED、CANCELED、MODERATION_BLOCKED)になるまで、同じ API キーでポーリングします。コンテンツモデレーションが有効な場合、ジョブはコンピュートキューに入る前に 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 は無料のオンライン画像生成ツールで、コンパクトな 1-bit FLUX.2 Klein 4B モデルが、自然な言葉による説明を4ステップで画像に変換します。MESH に接続したコンピューター上で無制限に実行できます。標準サイズは 1024×1024 で、512×512 はより高速なプレビューです。ネガティブプロンプトは不要です。