Text-to-Image Microservice

August 5, 2025 ยท View on GitHub

Text-to-Image is a task that generates image conditioning on the provided text. This microservice supports text-to-image task by using Stable Diffusion (SD) model.

Deployment Options

The table below lists currently available deployment options. They outline in detail the implementation of this example on selected hardware.

HardwareDeployment ApproachDeployment Guide
Single-Node Intel Xeon SystemDocker ComposeView Guide
Single-Node Intel Gaudi SystemDocker ComposeView Guide
Intel Xeon ClusterHelmView Guide
Intel Gaudi ClusterHelmView Guide

Deploy Text-to-Image Service on AMD EPYC

Refer to the AMD EPYC Guide for detail.

Consume Text-to-Image Service

Use below command to generate image.

http_proxy="" curl http://localhost:9379/v1/text2image -XPOST -d '{"prompt":"An astronaut riding a green horse", "num_images_per_prompt":1}' -H 'Content-Type: application/json'

Validated Configurations

Deploy MethodHardware
Docker ComposeIntel Xeon
Docker ComposeIntel Gaudi
Docker ComposeAMD EPYC
Helm ChartsIntel Gaudi
Helm ChartsIntel Xeon