Embedding
What is Embedding?
An embedding is a compact numerical representation of a concept, style, or subject that an AI model can use to guide image generation, created by training on a small set of examples.
At a glance
- Also known as
- Textual inversion embeddingTI embeddingLearned tokenConcept embedding
- Used for
- Encoding specific visual styles or subjects for use in generation promptsLightweight model customization without full fine-tuningAdding recurring characters or aesthetic concepts to a generation workflowCommunity sharing of visual styles and subjects as compact files
- Common tools
- Stable diffusion with textual inversion trainingAUTOMATIC1111 embedding training interfaceCommunity embedding libraries
- Related terms
- DreamBoothFine-tuningLoRADatasetStable diffusion
Ready to create?
Direct scenes, design characters, and ship full films
All-in-one AI creative platform with simple, transparent pricing, no speed throttles, and an infinite Canvas for max creativity.
How it compares
An embedding modifies only the text conditioning vector used to guide generation, working within the constraints of what the base model already knows. A LoRA trains additional weight adjustments that are applied directly to the model's processing layers, providing more comprehensive and flexible customization because it modifies how the model processes information rather than only what it is prompted with. Embeddings are lighter and faster to train; LoRAs provide stronger and more reliable customization, particularly for subjects not well represented in the base model's training.
Pro tip
When using community embeddings in a Stable Diffusion workflow, test each embedding at different weighting values in the prompt, such as (embedding_name:0.8) or (embedding_name:1.2), rather than always using the default weight of 1.0. Some embeddings are trained at different strengths and perform better at weights slightly above or below the default. Starting at 0.7 and stepping up in 0.1 increments quickly reveals the weighting that produces the most useful blend of the embedded concept with the rest of the prompt.
Types and variations
- Subject embeddings encode the visual identity of a specific person, character, or object, allowing it to be summoned by including the trained token in a prompt.
- Style embeddings capture the aesthetic characteristics of an artistic style, illustrative technique, or visual quality that can then be applied to any generated content.
- Negative embeddings are trained to represent visual qualities the creator wants to suppress rather than encourage, used in the negative prompt field to reduce the likelihood of specific undesired characteristics appearing in generations.
- Multi-vector embeddings trained on larger token budgets can capture more complex concepts at the cost of more training resources.
Ready to make your first scene in Morphic?
Try MorphicCommon use cases
- Creating a lightweight embedding for a recurring character or brand element that can be referenced in prompts without full DreamBooth training.
- Sharing an artistic style or aesthetic quality as a small embedding file within the Stable Diffusion community.
- Building a library of style and subject embeddings that can be combined in prompts for flexible, modular generation control.
- Using negative embeddings to suppress common generation artifacts, anatomical errors, or undesired visual characteristics across all generations.
- Encoding specific visual qualities, such as a particular type of film grain, color treatment, or compositional tendency, as an embedding for consistent application across a project.
Ready to create?
Direct scenes, design characters, and ship full films
All-in-one AI creative platform with simple, transparent pricing, no speed throttles, and an infinite Canvas for max creativity.