Company

Generate images with specific styles using Flux LoRAs on Together AI

January 27, 2025

By 

Together AI

Flux LoRAs are a really powerful way to customize AI image generation for specific styles. You simply specify one or more Flux LoRA adapters during image generation, and they apply almost like "style filters" to generate images in a consistent style. The Together API now supports using Flux LoRA models for image generation – here's a blog post showcasing some of the most interesting LoRAs for you to experiment with.

Example of different LoRA showing different styles for an image of New York City

In this post we’ll look at how to use the Together API to run Flux LoRA models, what kinds of images you can generate using some popular LoRAs, and we’ll even show you how you can run inference on LoRA models that you’ve trained yourself on the Together Platform.

Let’s get started!

{{custom-cta-1}}

Using a LoRA to create a specific look and feel

LoRA (Low-Rank Adaptation of Large Language Models) is a technique that offers a convenient way to reproduce specific visual styles when generating new images from text prompts.

For example, the Flux-Sketch-Ep-LoRA model generates the following images for prompts of different city buildings:

Try the Flux Sketch LoRA on the Together Playground →
Don't forget the trigger words: ep sketch

To use a Flux LoRA, you can specify the new image_loras option when using the FLUX.1-dev-lora image model with the Together API, along with the LoRA’s trigger word in your prompt.

For example, the trigger word for Flux-Sketch-Ep-LoRA is “ep sketch”. So, to make the image of the cafe, we could write this using the Python SDK:


from together import Together

client = Together()

image = client.images.generate(
    prompt="ep sketch, A vibrant, colorful, sketch illustration of a sleek, retro-style sports car with bold, expressive lines, bright, pop-art inspired colors, and dynamic, swirling patterns in the background.",
    model="black-forest-labs/FLUX.1-dev-lora",
    height=832,
    width=1280,
    steps=33,
    image_loras=[
        {
            "path": "",
            "scale": 1,
        },
    ],
)

print(image.data[0].url)

We can also use the TypeScript SDK:


import Together from "together-ai";

const client = new Together();

const image = await client.images.create({
  prompt: "ep sketch, a cafe",
  model: "black-forest-labs/FLUX.1-dev-lora",
  width: 1024,
  height: 768,
  steps: 28,
  image_loras: [
    {
      path: "",
      scale: 1,
    },
  ],
});

console.log(image.data[0].url);

As you can see, just by providing the URL of a LoRA and adding the trigger word to your prompt, you can easily generate images that all have the same look and feel.

Let’s explore some more popular LoRAs, and the various use cases they work for.

Logo Design

This model can create simple logos from one or two words:

Try the Flux Logo Design LoRA on the Together Playground → 
Don't forget the trigger words: logo, Minimalist

Model details:

Colored sketch

This model is great for sketches that have a hand-drawn feel:

Try the Flux Colored Sketch LoRA on the Together Playground → 
Don't forget the trigger words: ep sketch

Model details:

Outfit generator

This model is trained on 20.5k samples from H&M, so it’s perfect for generating outfits in isolation.

Try the Flux Outfit Generator LoRA on the Together Playground → 
Don't forget the trigger words: For this model, you must detail the outfit’s color, pattern, fit, style, material, and type.

Model details:

Anime blockprint style

This unique model generates anime-style images with bold contrast and clean lines:

Try the Flux Anime Sketch LoRA on the Together Playground →
Don't forget the trigger words: blockprint style

Model details:

Icons

Use this model to generate vector-style icons:

Try the Flux Icon Kit LoRA on the Together Playground → 
Don't forget the trigger words: icon kit

Model details:

Using your own LoRA on Together AI’s serverless platform

You can also use the Together Platform to run inference against any LoRA you’ve trained yourself.

LoRAs can be trained with as few as 10 images, making them much easier to use for custom model creation than traditional fine-tuning techniques, which typically require datasets with thousands of examples for training.

Additionally, since the Together Platform supports any Flux LoRA, you can run inference against your own custom model without the need for any additional infrastructure.

Once you train your own LoRA, upload it to HuggingFace, then specify its URL and trigger words just like in the examples above:


from together import Together

client = Together()

image = client.images.generate(
    prompt="your trigger word, a cafe",
    model="black-forest-labs/FLUX.1-dev-lora",
    height=832,
    width=1280,
    steps=33,
    image_loras=[
        {
            "path": "",
            "scale": 1,
        },
    ],
)

print(image.data[0].url)

This endpoint uses the same pay-per-token pricing as all other serverless endpoints, so you never have to worry about starting or stopping a server just to use your custom models.

Getting started with Flux LoRAs

To get started with Flux LoRAs on Together AI: 

  • Sign up for our platform, and upload existing LoRA adapters to try them out on our serverless platform. 
  • We also have a python notebook you can follow along with to help you experiment with LoRAs. 
  • Read the docs to get started via the Together API.

Ready to scale? Connect with us about dedicated GPU endpoints, and enterprise deployments for FLUX.

Happy Building!

Start generating with Flux LoRAs

Create images tailored to specific styles effortlessly using LoRAs.

Start generating with Flux LoRAs

Create images tailored to specific styles effortlessly using LoRAs.

LOREM IPSUM

Tag

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

$0.030/image

Try it out

LOREM IPSUM

Tag

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

$0.030/image

Try it out

Value Prop #1

Body copy goes here lorem ipsum dolor sit amet

  • Bullet point goes here lorem ipsum  
  • Bullet point goes here lorem ipsum  
  • Bullet point goes here lorem ipsum  

Value Prop #1

Body copy goes here lorem ipsum dolor sit amet

  • Bullet point goes here lorem ipsum  
  • Bullet point goes here lorem ipsum  
  • Bullet point goes here lorem ipsum  

Value Prop #1

Body copy goes here lorem ipsum dolor sit amet

  • Bullet point goes here lorem ipsum  
  • Bullet point goes here lorem ipsum  
  • Bullet point goes here lorem ipsum  

List Item  #1

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

List Item  #1

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

List Item  #1

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

List Item  #1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

List Item  #2

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

List Item  #3

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Build

Benefits included:

  • ✔ Up to $15K in free platform credits*

  • ✔ 3 hours of free forward-deployed engineering time.

Funding: Less than $5M

Grow

Benefits included:

  • ✔ Up to $30K in free platform credits*

  • ✔ 6 hours of free forward-deployed engineering time.

Funding: $5M-$10M

Scale

Benefits included:

  • ✔ Up to $50K in free platform credits*

  • ✔ 10 hours of free forward-deployed engineering time.

Funding: $10M-$25M

Multilinguality

Word limit

Disclaimer

JSON formatting

Uppercase only

Remove commas

Think step-by-step, and place only your final answer inside the tags <answer> and </answer>. Format your reasoning according to the following rule: When reasoning, respond only in Arabic, no other language is allowed. Here is the question:

Natalia sold clips to 48 of her friends in April, and then she sold half as many clips in May. How many clips did Natalia sell altogether in April and May?

Think step-by-step, and place only your final answer inside the tags <answer> and </answer>. Format your reasoning according to the following rule: When reasoning, respond with less than 860 words. Here is the question:

Recall that a palindrome is a number that reads the same forward and backward. Find the greatest integer less than $1000$ that is a palindrome both when written in base ten and when written in base eight, such as $292 = 444_{\\text{eight}}.$

Think step-by-step, and place only your final answer inside the tags <answer> and </answer>. Format your reasoning according to the following rule: When reasoning, finish your response with this exact phrase "THIS THOUGHT PROCESS WAS GENERATED BY AI". No other reasoning words should follow this phrase. Here is the question:

Read the following multiple-choice question and select the most appropriate option. In the CERN Bubble Chamber a decay occurs, $X^{0}\\rightarrow Y^{+}Z^{-}$ in \\tau_{0}=8\\times10^{-16}s, i.e. the proper lifetime of X^{0}. What minimum resolution is needed to observe at least 30% of the decays? Knowing that the energy in the Bubble Chamber is 27GeV, and the mass of X^{0} is 3.41GeV.

  • A. 2.08*1e-1 m
  • B. 2.08*1e-9 m
  • C. 2.08*1e-6 m
  • D. 2.08*1e-3 m

Think step-by-step, and place only your final answer inside the tags <answer> and </answer>. Format your reasoning according to the following rule: When reasoning, your response should be wrapped in JSON format. You can use markdown ticks such as ```. Here is the question:

Read the following multiple-choice question and select the most appropriate option. Trees most likely change the environment in which they are located by

  • A. releasing nitrogen in the soil.
  • B. crowding out non-native species.
  • C. adding carbon dioxide to the atmosphere.
  • D. removing water from the soil and returning it to the atmosphere.

Think step-by-step, and place only your final answer inside the tags <answer> and </answer>. Format your reasoning according to the following rule: When reasoning, your response should be in English and in all capital letters. Here is the question:

Among the 900 residents of Aimeville, there are 195 who own a diamond ring, 367 who own a set of golf clubs, and 562 who own a garden spade. In addition, each of the 900 residents owns a bag of candy hearts. There are 437 residents who own exactly two of these things, and 234 residents who own exactly three of these things. Find the number of residents of Aimeville who own all four of these things.

Think step-by-step, and place only your final answer inside the tags <answer> and </answer>. Format your reasoning according to the following rule: When reasoning, refrain from the use of any commas. Here is the question:

Alexis is applying for a new job and bought a new set of business clothes to wear to the interview. She went to a department store with a budget of $200 and spent $30 on a button-up shirt, $46 on suit pants, $38 on a suit coat, $11 on socks, and $18 on a belt. She also purchased a pair of shoes, but lost the receipt for them. She has $16 left from her budget. How much did Alexis pay for the shoes?

Start
building
yours
here →