Automatic1111
Automatic1111 Provider for the AI SDK
AUTOMATIC1111 is a popular web interface for Stable Diffusion that provides a comprehensive set of features for image generation. The Automatic1111 provider for the AI SDK enables seamless integration with locally hosted AUTOMATIC1111 instances while offering unique advantages:
- Local Control: Full control over your image generation with local Stable Diffusion models
- No API Costs: Generate unlimited images without per-request charges
- Model Flexibility: Use any Stable Diffusion checkpoint
- Privacy: All generation happens locally on your hardware
- Community Models: Access to thousands of community-created models from Civitai and HuggingFace
Learn more about AUTOMATIC1111's capabilities in the AUTOMATIC1111 Documentation.
Setup
You need to have AUTOMATIC1111 running with the --api flag enabled. Start your AUTOMATIC1111 instance with:
The Automatic1111 provider is available in the automatic1111-provider module. You can install it with:
Provider Instance
To create an Automatic1111 provider instance, use the createAutomatic1111 function:
Image Models
The Automatic1111 provider supports image generation through the image() method:
Examples
Basic Image Generation
Advanced Configuration
Provider Options
The Automatic1111 provider supports the following options for customizing image generation:
Available Options
| Option | Type | Default | Description |
|---|---|---|---|
negative_prompt | string | undefined | What you don't want in the image |
steps | number | 20 | Number of sampling steps |
cfg_scale | number | 7 | CFG (Classifier Free Guidance) scale |
sampler_name | string | "Euler a" | Sampling method |
denoising_strength | number | undefined | Denoising strength for img2img (0.0-1.0) |
styles | string[] | undefined | Apply predefined styles |
check_model_exists | boolean | false | Verify model exists before generation |
Model Management
The provider automatically detects available models from your AUTOMATIC1111 instance. To use a model:
- Place your
.safetensorsor.ckptmodel files in themodels/Stable-diffusion/folder - Restart AUTOMATIC1111 or refresh the models list in the web interface
- Use the exact model name (without file extension) in the provider