100% Open Image Model Lets You Place Text With JSON

summarized

TLDR

Open Moss released Moss Image, a 5-billion-parameter diffusion transformer under Apache 2.0, with weights and code fully usable in commercial products, unlike gated rivals such as Flux and Qwen Image. Its standout is precise text and object placement through JSON layout instructions with bounding boxes, which the presenter demonstrates generating accurate posters, menus, and infographics. The trade-off is that it is strictly text-to-image with no image editing, so modifying an existing photo requires a future model with image conditioning.

Key points

Moss Image is a 5-billion-parameter diffusion transformer released under Apache 2.0 with open weights and code.

JSON layout instructions with bounding boxes steer text and object placement and improve text accuracy.

On the lab's own long-text benchmark, Moss Image scores just behind Nano Banana and a few percentage points behind GPT Image 2.

The model is strictly text-to-image and has no built-in image editing.

Community LoRAs already provide 8-step and 4-step acceleration, quantized versions, and a full base-model fine-tune.

Tools mentioned

Techniques

  • Diffusion transformer architecture
  • JSON bounding-box layout control
  • Classifier-free guidance (CFG)
  • LoRA fine-tuning
  • Fast-step distillation
  • Inpainting
Transcript (captions)

0:00 Okay, so all three of these images came out of a model that's just 5 billion parameters. It's open weights and most importantly, it's got an Apache 2.0 license, meaning that basically you can

0:11 do whatever you want with it. The model's called Moss image. And in this video, I'm going to go through some examples of what it can do, what it can't do, what its strengths are, and

0:20 how you can use this very small model to produce really fantastic images out. So let's take a look at what you can actually get from a 5B image model nowadays. All right, so MOSS image comes

0:32 from Open Moss. This is the team that put out Moss TTS and the MOA video model. And this is their first image model. It came out last week. And basically under the hood, this is a 5

0:42 billion parameter diffusion transformer that they trained from scratch. Now to get it to work, they're basically using the text encoder which is Quen 3.59B. So you've actually got a 9 billion

0:53 parameter language model reading your prompt and that prompt can be up to around 4,000 tokens. Older image models used much smaller text encoders and that's a big part of why they struggled

1:04 with long context and complicated prompts. Moss basically has two checkpoints here. There's a base model which is really for fine-tuning and training loras and then there's an SFT

1:14 module which you can actually use to generate with. But like I mentioned in the intro, the big thing here is that this is all Apache 2. both the weights and the code. If you look at some of the

1:24 other strong image models that I've looked at in the past, things like Quen image, etc., while the weights are open, the licenses on those are not. They're often under a non-commercial research

1:35 license. Things like Flux 3 Klein is gated under the Flux community license. And often that just limits what you can actually do with this. This one, because it's Apache 2, basically you can do what

1:46 you want. You can make money out of it. You can put it in your own products and you can pretty much make any kind of the images that you would want to do. Amazingly, both safer work images and

1:56 NSFW images as well. So, out of the box, the model is actually up on hugging face already. It runs natively in Comfy UI, which I think most people are going to use. We can also use it in SG Lang and

2:08 VLM Omni, which is basically how I'm running it here today. All right, so let's start with just general images. These are all on the SFT model at default settings. We've got 50 steps and

2:18 we've got a CFG, which is a classifier free guidance of three in here. So, you'll notice that photorealistic portraits are really solid here. The skin and the details really hold up

2:28 well. Product shots come out really nice and clean, and the model's perfectly good at generating out bokeh effects for the background, etc. And I'll talk about that as we go through. I also find that

2:39 the lighting effects and lighting sources here, the model seems to handle those very well, both for realistic images, but also if you want to make something like a watercolor or some kind

2:50 of artistic interpretation as well. Styles work too. If you want to do something like anime or some particular kind of artist, etc., the model seems to be really good at being able to do that.

3:01 Also being able to set it to actually do different kinds of aspect ratios means that it's not just locking you into square images. You can really go into wide banners, sort of portrait phone

3:12 wallpapers, and can do that with anything from about a quarter of a megapixel up to 4 megapixels with what I would say is 1 to 2 megapixels as being the sweet spot there. So the model can

3:22 definitely make decent images for this model size, but I think the real reason to look at this model is text. So we start with something simple. You'll see that just a single title, well that's no

3:34 problem. Three lines, title, date, venue for a poster or something can handle that kind of thing really well. It also can generate the text both in English and Chinese for the same scene. And if

3:46 you wanted to have something stylistic like having something written on a chalkboard menu and stuff like that, it has no problems with doing things like that. Even for things like infographics

3:56 where you basically want to call out different steps, that kind of thing. This model's doing really well at this. And you can see if we look at these scores here, Moss image is scoring way

4:06 above the other open models for this. In fact, it's only just behind fraction of Nano Banana and only a few percentage behind GPT image 2. So clearly in the lab's own long text benchmark, it's

4:19 really doing fantastically well for one of the open models. I guess though, do keep in mind that that's their own benchmark. And so far, I haven't really found any third-party eval there. Now,

4:29 that doesn't mean that it's perfect at text all the time. There are times that it's going to break. If you push the limit to be too many words on a page, something like that, it can start to

4:38 fall apart and perhaps when compared to bigger models like the Crea 2 model, etc., you are going to find that perhaps this model is not quite as good. That said, it's got some really nice features

4:49 just like those other systems have. So the whole idea of sort of JSON layout. So along with a regular prompt, you can give Moss image a layout where you describe the whole scene and then you

5:00 list out elements, texts or objects each with a bounding box. And they basically train the model to respect this sort of layout JSON and the captions that go along with it. So it seems to me that

5:12 this is not something that's just bolted on afterwards. You've basically got the opportunity to have it where you can describe what it is that you want and then use JSON sort of bounding boxes to

5:25 show where you actually want it on the actual image. This can be really cool if you've been trying to do things with in painting in the past and you just haven't been able to get what you

5:35 wanted, where you wanted it, that kind of thing. And it's also a kind of cool trick of how you can generate something and then look at the output and then decide no actually I wanted that on a

5:45 different part of the image. Now the cool thing here too is that don't forget you can get an LLM to actually write that JSON out. So you can go from a very descriptive brief to have an LLM

5:56 actually write out the prompt with the JSON to then have Moss image actually generate this in a pipeline. And they've got their own layout prompt enhancer which you can play around with and does

6:08 exactly that. All right. So what does the model not do? Well, first off, there's no editing here. You cannot put in image to image here. You can't do any sort of editing of images. It's purely

6:19 text to image. You can do sort of stuff like the standard inpainting in Comfy UI, but that's pretty much about it. You're not going to be able to do something where you take a real world

6:29 photo and then edit it like you can with Nano Banana and Quen image edit etc. And who knows maybe that's going to be the next model that they actually release which would be pretty cool to see

6:38 especially if that's also Apache 2. Now one of the cool things is because they've given you the base model we can actually do sort of luras and fine-tunes ourselves to actually get very specific

6:49 styles or get certain people in there that kind of thing. Now, at the time I'm recording this, I'm not sure all the code examples are out for that, but I imagine that's something that the

6:59 community is going to be able to work out themselves as well. Out of the box itself, it's pretty slow at their stock settings. You've got about 50 steps there, and I imagine if you're doing all

7:09 of this with a smaller, older GPU, it is going to take time for you to generate that out. Now that said, I think the community has already released some distillations of this and modifications

7:20 for versions that you can run in Comfy UI. I wouldn't be surprised that we actually see a sort of turbo version of this. And I think the community will put out a lot of different versions of this.

7:30 In just under a week, the community's already put out like an eightstep and four-step Loras, quantized versions, and even a full fine tune on the base model. Not to mention that the Moss team

7:40 themselves have said that they're actively working on a fostep distillation. So that itself might even lead to an official turbo version on the way. So let's take a look at some of the

7:49 images you can actually do with this in this little demo that I've created. Okay. So if we come into this sort of gallery app that I've built here just to go through and show you a number of

8:00 different things in here. First off, you got lots of things that you can generate. Now obviously you can generate with text. The big issue is that sometimes the text is going to work,

8:09 sometimes not. The way to actually make it work is to use layout control. So you'll see that something like this I basically had in there as just a straight up generation where I'm not

8:21 guiding it in any way and it will start to get different parts of the text wrong over time. Whereas if I come in and do something like this, you can see here I've basically got different layout

8:34 boxes. So I can actually draw a box and then fill it in. Right? So this is using the JSON generation in here. Once I I've put it in there, I can then basically tell it what do I want to appear in that

8:48 box. We've got, you know, a whole bunch of different things if we want to. Let me just turn on the turbo version. So this is going to be a bit quicker. We can go even deeper in here. So you can

8:57 see here we've basically got the actual layouts there. If we want to change, you know, the couch, we could come in and just change the color in here. We can change it here. I can then click

9:11 generate. And you'll see now we'll get a green couch instead of a red couch there. We can also do things like we can change, you know, things on the the poster at the back there. If I generate

9:22 that now, we should see we're going to get ready player one instead of just player one there. And so this is sort of the key way if you want to actually play with text, you want to actually control

9:34 where it's going to appear. And that also seems to make the text a lot more accurate in here. Not just text though, we can also change, you know, the cat to a tiger. Let's see how that's going to

9:45 come out. And you can see now we've got our tiger. Now we will find sometimes, you know, things like that. Changed, you know, him to putting the hoodie on. And so if we had something really specific

9:54 that we wanted, we would basically go through and tell it, okay, change these different things, we would go through and actually tell it to not put the hoodie on his head, keep it at the back

10:06 or something like that. We can also do really nice sort of styles and effects in here. So these are just straight out of the model, no sort of Laura pre-trains or anything like that. And it

10:17 does a really nice job of those. It can also do things like inpainting. So you can see here we've got the same picture. We're just changing what's going to appear there. And you can see in this

10:27 case the books got cut off. But for the cat it works well. For the dog perhaps not as much. So you do want to experiment with it. Back to the styles here. It really is able to capture some

10:38 really nice styles of different kinds of pictures and stuff like that. You can then basically use lures with it. So, one of the luras that's already been made is this eightstep lura. So, this

10:52 just speeds up generation. So, generation without it for me is around about 30 seconds. But if I use this, let's just come in and remix this. If I use this and I actually put on this

11:05 Laura here, I can actually come in here and change that. So, we had him wearing a yellow top. Now, we change it to basically an orange one. And you can see that that's generating a lot quicker now

11:18 than 30 seconds. We've got the time down much quicker. So you'll see in regards to sort of famous people, certain people it will know very well. For example, Brad Pitt etc. It knows really well. But

11:31 if I ask it to make a picture of Sam Alman really doesn't know who he is, right? For whatever reason, there's just not enough of him in the weights and stuff. And you'll see that like each of

11:41 these it doesn't really work. But if I create a Laura and you can see basically I've made a custom Laura of him here trained up on not a huge amount of images and probably not the best quality

11:54 images and actually many of the images when I scraped them were actually from things that he did when he was much younger at Y Combinator etc. So that's why they tend to come out looking a bit

12:04 younger. But if you put the effort in, you can actually train up a Laura pretty quickly that will put someone into the photos even though they weren't in the original training data set. Just to sort

12:15 of compare that, this is one that I did with Nano Banana with him. And you can see that yeah, okay, it's gotten better quality on certain things, but it still hasn't got his face perhaps as good as I

12:27 would like here. And that's coming about here because we're not doing image editing. We're not conditioning on a picture of him to actually generate. We're actually generating from the

12:38 weights of the model out there. So, that really shows where the weakness of this model is, is that because you can't do image editing, you either have to fine-tune through a lura or something

12:48 like that to actually inject a person or a topic or a style into the actual weights itself rather than just using it in context and doing some kind of editing here. So I do hope that they

13:01 would go on to make a version of this that actually can do image editing and can condition on images, not just condition on text, etc. All right. So if you need text heavy images or you need

13:13 things placed exactly where you want them and you want a license that you can actually build a product on, this is really an interesting model for its size. If you need editing, yeah, it's

13:24 not quite there yet. You're going to have to wait for a newer model or a newer version of this as it comes. Anyway, I've put the links in the description. Let me know in the comments

13:32 what you think if you're playing with this, what you're sort of noticing this to be good at, what you're noticing it to be bad at. As always, if you found the video useful, please click like and

13:40 subscribe, and I will talk to you in the next video. Bye for now.

Frontier News · by Hyperjump Technology