<h2 id="AI-Pixel-Screen-Text-to-Image-Solution" class="nx-font-semibold nx-tracking-tight nx-text-slate-900 dark:nx-text-slate-100 nx-mt-10 nx-border-b nx-pb-1 nx-text-3xl nx-border-neutral-200/70 contrast-more:nx-border-neutral-400 dark:nx-border-primary-100/10 contrast-more:dark:nx-border-neutral-400">AI Pixel Screen Text-to-Image Solution<span className="tag_h2">On-App AI</span></h2>

<Image
  src='/images/solution/aiTextToImage/all.png'
  style={{
    borderRadius: '10px',
    boxShadow: '0 0 5px rgba(0,0,0,0.3)',
    maxWidth: '800px',
  }}
/>

### Pain Points Analysis

In pixel screen applications, users want to quickly generate pattern content such as emojis, icons, animals, and plants. However, current cloud-based text-to-image solutions have significant shortcomings:

- High Generation Latency: Cloud-based large models take an average of 8-12 seconds to generate an image, making it difficult to meet real-time interaction scenarios.
- High Cost: Each cloud inference requires payment, and as user usage increases, operational costs rise significantly.
- Network Dependency: Images cannot be generated in weak network or offline scenarios, affecting user experience.

### Solution

On-App AI Pixel Image Generation — Using Tuya's self-developed lightweight image generation model to complete pixel image generation locally on the phone (on-device):

- Completely local inference, no internet connection required
- Second-level generation (1-2 seconds)
- Zero cloud inference cost
- High-quality, controllable pixel-style output

> Open the **Smart Life App** or **Tuya App** (version 7.0.5 and above) and scan the QR code below to preview:

<div style={{ paddingLeft: 32 }}>
  <Image
    src='/images/solution/aiTextToImage/qrCode.png'
    style={{
      boxShadow: '0 0 5px rgba(0,0,0,0.3)',
      width: '144px',
    }}
  />
</div>


### Technical Advantages

✔ **Efficient Inference**

- Adapted to mainstream iOS/Android devices:

- High-end devices: 0.5s~1.5s

- Mid-range devices: 1.5s~2.0s

- Low-end devices: 2~8s

✔ **Low Cost**

- No cloud inference fees

- Significantly reduces operational costs as user base scales

✔ **More Secure**

- Data is not uploaded to the cloud, processed entirely locally

- Complies with privacy and security requirements

✔ **Model Lightweighting and Dynamization**

 - Dynamic model management mechanism with on-demand loading

 - Reduces initial installation package size, lowers storage footprint

 - Online download, update and deploy models

✔ **Dynamic Dataset Expansion**

- Can quickly generate new labels based on market trends, such as:

- Seasonal themes (Christmas trees, fireworks)

- Pet themes (cats, dogs, parrots)

- Emotions/memes

- IP collaboration images


### Application Scenarios

| Application Scenario     | Feature Description                       |
| ------------ | ------------------------------ |
| Pixel Screen DIY Creation | Users customize label selection to generate pixel patterns |
| Vehicle Screen Content Creation | Generate images and send instantly to pixel screen for display |
| Children's Pixel Creation | Offline generation, no network dependency, safe and reliable |
| Device Screensaver/Watch Face | Quickly generate themed pixel icons |


### Custom Model Application

If you are interested in training a custom model, visit the [On-App AI Custom Model Application Platform](https://developer.tuya.com/model/apply) to submit your request. The platform supports custom datasets, training and deployment to build tailored AI capabilities for your business scenarios.
