Skip to main content
Version: 5.x
Supported on
Snapchat

AI Portraits Beta

AI Portraits Beta creates an image transformation based on your prompt. With the AI Portraits feature, you define a concept by specifying three key factors: "Person", "Action", and "Scene". These Lenses that generate static images on-device are called AI Snaps on Snapchat.

Getting Started

Launching AI Portraits Beta

  1. Navigate to the GenAI Home Page using the Lens Studio AI option in the top right corner of the Lens Studio.

  2. On the GenAI Home Page, you may need to scroll down to find the menu of GenAI tools. In the panel, select AI Portraits Beta.

User Interface Overview

  1. Creation Panel: Provides tools for creating and editing AI Portrait effects.

  2. Gallery: Shows all the effects you’ve created along with their statuses.

Effect Creation flow

  1. In the creation window, you’ll find three fields for entering text prompts:

    • Person: Describe the person - what they look like, what they’re wearing, hairstyle, accessories, hats, etc.
    • Action: Describe what the person is doing. It can be anything like standing, sitting, dancing, running, and so on.
    • Scene: Describe the environment - the mood, background, and overall aesthetic.

    Filling out all three fields helps build an optimal prompt structure, which increases the chances of getting the best possible result.

  2. You’ll also find a Surprise me buttons next to the prompt field - click it to see example prompts that can help you get started.

  3. Use Seed to reproduce experiments and control the randomness of generation.

  4. Once you’ve entered your prompts and selected a Seed, click the Generate previews button to generate a sample of your effect.

  5. You’ll see a message indicating that preview generation has started. Feel free to close the plugin window or switch to another one - your preview will remain in the Gallery, showing its generation progress.

    At this time, the preview generations can take an hour or two due to the technical limitations and high demand. We are working to improve this time.

  6. Once the preview has been generated, you can click its tile in the Gallery to open the details page. Here, you can use the arrows on the sides to preview the effect on different models. Additionally, you can click the button in the bottom-right corner to view the original image the effect was applied to.

  7. If the preview doesn’t match your expectations, click Copy Settings to adjust your prompts or seed.

  8. You can make as many tweaks as needed until the result feels right - all changes will appear in the Gallery as a new effect, without altering the current one. This way, you can always go back and compare whether the updated effect looks better than the original.

  9. Happy with the preview? Great! Click Train the Model to start training your model. You’ll be able to track the training status directly in the Effects Gallery.

    At this time, generations can take a day or two due to the technical limitations and high demand. We are working to improve this time.

    A maximum of 1 model can be trained per 4 hours.

  10. Once training is complete, you can import the effect directly from the Gallery by clicking the Import button, or click Import to project on the details page to add it to your project.

  11. The imported component already includes all the necessary logic, a hint, and a transition - essentially, you’re getting a ready-to-use Lens. Tap on the preview screen or push the project to a device to see the Lens in action.

Best Practices for writing your prompt

  1. Writing Style

    • Adopt a literary style: Write prompts as full sentences rather than short phrases separated by commas. This approach helps produce more refined outputs.

      • Example: Motion blur selfie shot on an action camera of a person surfing big waves. They are wearing a full-body surfing suit.
    • Separate phrases correctly: Use punctuation such as periods (.) or semicolons (;) to separate ideas clearly.

  2. Word Order and Emphasis

    • No weight support: does not currently support word weights.
    • Importance of word order: The first phrase and the sequence of words in your prompt carry significant weight in determining emphasis.
      • Example 1: Shot of a person in a forest made in artstyle.
      • Example 2: Artstyle composition of a big forest where the person walks.
  3. Gender-Specific Prompts

    • Avoid using gender-specific terms and pronouns such as "man," "woman," "boy," "girl," "his," "her," "king," "queen," and similar. Instead, use gender-neutral terms like "person" or "they" to ensure the Lens works for everyone. This inclusive approach helps broaden the Lens appeal and increases its chances of success.
  4. Prompt Length

    • The optimal prompt length is around 110–120 words.
    • Prompts between 120 and 200 words may still work, but they can negatively affect the visual result, making it harder to achieve the desired outcome.
  5. Including Text in Prompts

    • If you want to add text within the prompt, enclose it in quotation marks ("----"). Both uppercase and lowercase letters are supported.
      • Example: Graffiti text "Hello" on the wall.

Current Limitations

  1. Visual realism is limited, as the system currently lacks occlusion handling for elements like hands, hair, or objects.

  2. It does not support cartoon styles.

  3. Face tracking may not perform reliably in scenes with animal concepts, frequently detecting the animal instead of the user.

Was this page helpful?
Yes
No