Repository navigation
PICTURES
Status: Partial
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against 5f40af2d9 (settings, provider defaults, pool migration, and ordered failover; setup steps, licensing, model files, and GPU timing not rechecked)
Code: src/Martlet.Core/Pictures/PicturesSettings.cs, src/Martlet.Core/Pictures/PictureMakingPoolMembers.cs, src/Martlet.Providers/Pictures/PictureMakingPool.cs
The ordered place list is shared. Each computer keeps its own picture settings and provider credentials. The audit verified pool migration and routing, not all setup, model, cost, license, or interface details below.
Martlet draws pictures when you ask ("draw me a fox curled up in the snow", "paint our cat as a knight"). It draws in the
background while the conversation carries on, shows the picture in the talk window when it's ready (click it to open it
full size), keeps it in Creations on all your Martlet computers, and shows it again later when you ask
(perform_creation). Nothing is drawn until you choose where in Companion › Picture making.
Companion › Picture making › Where it draws is the shared list of places that
draw, in order (the Picture making list, pictures in pools.json). Each
computer keeps its own local picture settings and provider credentials. This
PC means each computer's own host service. The pictures themselves are shared
too.
The page has the standard order: Now (where Martlet draws, with Check and Draw a test picture), then Where it draws, the shared pool list (More than one picture computer). Each place in the list has On, Up, Down, Remove and Settings. Add a place with This PC, one of your computers, an address (your own ComfyUI) or A cloud provider (OpenRouter or NVIDIA Build: the model ID, a key, and a box to agree that descriptions go there and each picture may cost money). With nothing in the list on, pictures are off; pictures Martlet drew before stay in Creations.
A place's Settings hold what it needs:
- Martlet's Picture making role on this PC or a computer: where the role stands there and Set up when it isn't set up yet, then its workflow.
- A ComfyUI place (the role or your own): its workflow, its checkpoint and its own Export (API) file (ComfyUI workflows), Connect (what that ComfyUI has) and Save.
- A cloud provider: its key. Its model is part of the place; to use another model, add the provider again with that model.
| Place | What it is | Cost and privacy |
|---|---|---|
| Martlet's Picture making role (recommended) | ComfyUI with Z-Image Turbo on this PC or another of your computers with an NVIDIA graphics card (8 GB+, 12 GB+ is faster). Set up installs it with the same martlet-host add flow as every role and Martlet reaches it through that computer's gateway (host role details). |
Free and private. About 20 GB of downloads. |
| My own ComfyUI | A ComfyUI you already run, on this PC or another machine, at its address (for example http://192.168.1.20:8188). Start it with --listen so other computers can reach it; ComfyUI has no password, so only on your own network. |
Free and private. |
| OpenRouter | Any model on OpenRouter that draws, through its image API (POST /api/v1/images, one picture at the 1K tier in the chosen aspect ratio). Default google/gemini-3.1-flash-image. |
Each picture costs money. The description goes to OpenRouter and the model's provider. |
| NVIDIA Build | NVIDIA's FLUX models (POST https://ai.api.nvidia.com/v1/genai/<model>). Default black-forest-labs/flux.1-schnell. |
Uses your nvapi- key; the description goes to NVIDIA. |
A cloud provider uses its own key (saved in Windows Credential Manager, bound to that provider; pool-keys.json keeps its
reference on this PC) or, without one, Thinking's key for the same provider (NVIDIA Build's chat and image models share one
key). The key is read for each picture and sent only to that provider. Removing the provider from the list deletes its own
key.
With each ComfyUI place (your own, or Martlet's Picture making role), choose in its Settings what it runs. Each place keeps its own choice:
-
Z-Image Turbo: ComfyUI's own Z-Image Turbo example (9 steps, cfg 1), when ComfyUI has its three files
(
diffusion_models/z_image_turbo_bf16.safetensors,text_encoders/qwen_3_4b.safetensors,vae/ae.safetensorsfrom Comfy-Org/z_image_turbo). -
A checkpoint from its
checkpointsfolder (Stable Diffusion 1.5 or XL and their fine-tunes; Connect lists them). An XL-looking name (xl,pony,illustrious...) draws at about 1024 pixels, others at 512-768; turbo/lightning checkpoints use 8 steps. -
My own workflow: in ComfyUI use Workflow › Export (API) and load that file. Put
{{prompt}}where the description goes (and optionally{{negative}}; an input that is exactly{{seed}},{{width}}or{{height}}becomes that number). Without{{prompt}}, Martlet puts the description into the text node feeding each sampler's positive input, sets the samplers' seeds and the empty latent's size. The workflow needs a Save Image node.
Martlet checks the workflow's model files are there before it queues, follows the prompt through ComfyUI's queue, and fetches the saved picture. Cancelling the job (the talk window's Cancel) takes it off ComfyUI's queue or interrupts it.
Pictures use a list of places, in order (the Pictures pool: pictures in pools.json, the same on all your computers;
see Pools). A place is Martlet's Picture making role on this
PC's host service or on one of your paired computers, a ComfyUI you run at an address, or OpenRouter or NVIDIA Build. Each
place keeps its own settings: the workflow, the checkpoint and a custom workflow file for ComfyUI, the model for a cloud
provider. An empty list means pictures are off.
The first time it needs the list, Martlet makes it from the older choice in pictures.json. The chosen place goes first.
For Martlet's Picture making role, the other computers that run the role follow, with the same workflow: this PC's own host
service first, then the others (fewest jobs first). A host a friend shares and a computer kept for another companion PC
(Devices › Sharing work) are left out. A cloud provider you chose before keeps your agreement to pay. After that, the page
edits the list, and Now names the places that draw when the first is busy.
Each picture tries the places in order and draws on the first that is free:
- A ComfyUI whose queue already holds a picture (another companion PC's or this PC's) is busy, and so is a cloud provider that answers busy. The picture goes to the next place at once.
- A place that doesn't answer, isn't ready, lacks the workflow's model files or checkpoint, rejects the workflow (a custom node it doesn't have) or refuses its key is passed over too.
- When every place that can draw is busy, the picture waits in the shortest ComfyUI queue among them. Martlet asks each place once; it doesn't ask again and again.
- A content filter's refusal is not passed on to another place.
- Two pictures at once from this PC go to two places when two are free.
- With one place, it draws there exactly as before, with no extra request.
Pictures go through Martlet's queue for shared work (lane pictures, each place by its key, such as host:m3-host), so the
desktop log says when a picture went elsewhere (Sharing work: Pictures went to host:m3-host (1 busy)., Pictures: drawn on m3-host's Picture making role, place 2 in the Picture making list ...). The computer that draws holds its place against background
thinks while it draws, and each computer frees its own graphics card three minutes after its last picture. The places'
order is kept as it is: a computer whose model is still loaded is not moved first.
While pictures are set up and Thinking can call tools, every reply offers one more tool, draw_picture (always the same
definition, after the song tools, so prompt caches stay warm):
{"description": "A vivid English description of the whole image", "title": "A short title",
"shape": "square|landscape|portrait|wide|tall", "avoid": "things to leave out"}It starts a background job (picture-1, picture-2...; two at a time, 20 an hour, 10 minutes each) and returns at once,
so the reply never waits. Shapes are 1024x1024, 1216x832, 832x1216, 1344x768 and 768x1344. When the picture is ready it
is kept as a picture creation, shown in the talk window, and a note tells Martlet so it can say something about it.
perform_creation with a picture's id shows it again.
While the After each exchange check-in ticks the Songs, pictures and creations
tool set (songs-pictures) and the Thinking pool has a member that calls tools, the
reply doesn't get draw_picture: it says in a few words that it will draw, and the check-in calls draw_picture right
after the reply, on the Thinking pool, with the same arguments, limits and gate. A picture that can't start (pictures off,
busy, the hourly limit) is brought up by Martlet on its own.
Companion › Picture making › Check asks each place in the list that is on whether it can draw now (for a cloud provider, only whether a key is there). Draw a test picture draws one picture where the list sends it and shows it on the page (when the list has a cloud provider on, it asks first, since a picture there costs money). After a picture on Martlet's Picture making role, the desktop frees that computer's graphics card three minutes after its last picture, so the voice, listening and a local Thinking model get it back.
MARTLET_PICTURES_FIXTURE=1 before Martlet starts makes it draw with the FIXTURE - NOT AI gradient maker (automated
checks). MCP: pictures_status (with the Picture making list and the places a picture tries now) and pictures_check (with
place pool, a rehearsal of the list's routing on simulated ComfyUI computers) (MCP).
Don't use pictures for anything illegal or harmful or to depict real people without their consent, and say they are AI-generated when you share them. Z-Image Turbo is Apache-2.0; ComfyUI is GPL-3.0; cloud models have their providers' terms.
Verified on 2026-10-06 on Windows with no usable NVIDIA GPU in that session:
- The targeted unit and relay tests passed.
-
pictures_checkwith the fixture maker kept and read back a picture creation. - Against a real ComfyUI v0.39.0 on the CPU with a Stable Diffusion 1.5 checkpoint:
-
pictures_checkreported the missing Z-Image Turbo files and the missing checkpoint clearly. - It drew a real 1024x1024 picture with a custom Export (API) workflow, kept it and read it back.
- A run that hit the 10-minute limit was taken off ComfyUI (Processing interrupted).
-
- The desktop's Companion › Picture making:
- Connect found the version and checkpoint, and it saved the ComfyUI choice.
- Check said ready, and Draw a test picture started.
- A live conversation with a loopback FIXTURE Thinking server called
draw_pictureand showed the FIXTURE picture in the talk window.
NOT RUN:
- The Picture making role's Docker image build and Z-Image Turbo on a GPU, because Docker wasn't running.
- OpenRouter and NVIDIA Build with real keys, because each picture costs money.
- A real Thinking model choosing to draw.
The Picture making list (2026-10-09) is checked locally: PictureMakingPoolTests, PictureMakingPoolMembersTests and
PictureMakingPoolDesktopTests, MCP pictures_check with place pool (simulated ComfyUI computers, FIXTURE) and
pictures_status. Companion › Picture making's list was driven through -Desktop on a disposable data folder: the list made from
pictures.json, Down, On, Add address, Remove, a place's workflow saved, Connect and Check reporting each place, and the
cloud provider form refusing to add a provider without the agreement or a key. Pictures drawn on real computers through
the list, and a cloud provider added with a real key, are NOT RUN: this PC had no computer with the Picture making role, and
a real key would be used.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine