Image Generation Optimization
Run SDXL with an API

Run SDXL with an API

7/26/2023

What this post added

This post details how to run SDXL 1.0, a new text-to-image model by Stability AI, via an API. It covers generating images from prompts, image-to-image transformations, inpainting using masks, and utilizing a refiner model for enhanced detail. The post provides code examples using Replicate's client libraries for Node.js and highlights the cost-effectiveness compared to self-hosting GPUs. It also explains different refiner modes ('expert_ensemble_refiner' and 'base_image_refiner') and parameters like `prompt_strength` for image-to-image generation and `mask` for inpainting.

Read the original post ↗