
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
automatic1111-provider
Advanced tools
A TypeScript provider for the Vercel AI SDK that enables image generation using AUTOMATIC1111 Stable Diffusion WebUI
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:
Learn more about AUTOMATIC1111's capabilities in the AUTOMATIC1111 Documentation.
You need to have AUTOMATIC1111 running with the --api flag enabled. Start your AUTOMATIC1111 instance with:
# Windows
./webui.bat --api
# Linux/Mac
./webui.sh --api
The Automatic1111 provider is available in the automatic1111-provider module. You can install it with:
# pnpm
pnpm add automatic1111-provider
# npm
npm install automatic1111-provider
# yarn
npm install automatic1111-provider
To create an Automatic1111 provider instance, use the createAutomatic1111 function:
import { createAutomatic1111 } from 'automatic1111-provider';
const automatic1111 = createAutomatic1111({
baseURL: 'http://127.0.0.1:7860', // Your AUTOMATIC1111 instance
});
The Automatic1111 provider supports image generation through the image() method:
// Basic image generation
const imageModel = automatic1111.image('v1-5-pruned-emaonly');
// With custom model
const sdxlModel = automatic1111.image('sd_xl_base_1.0');
import { automatic1111 } from 'automatic1111-provider';
import { experimental_generateImage as generateImage } from 'ai';
const { images } = await generateImage({
model: automatic1111.image('v1-5-pruned-emaonly'),
prompt: 'A beautiful sunset over mountains',
size: '512x512',
});
const { images } = await generateImage({
model: automatic1111.image('realistic-vision-v4'),
prompt: 'Portrait of a wise old wizard with a long beard',
n: 2,
seed: 12345,
providerOptions: {
automatic1111: {
negative_prompt: 'blurry, ugly, deformed, low quality',
steps: 40,
cfg_scale: 8.5,
sampler_name: 'DPM++ SDE Karras',
styles: ['photorealistic', 'detailed'],
check_model_exists: true,
}
}
});
The Automatic1111 provider supports the following options for customizing image generation:
| 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 |
The provider automatically detects available models from your AUTOMATIC1111 instance. To use a model:
.safetensors or .ckpt model files in the models/Stable-diffusion/ folderFAQs
A TypeScript provider for the Vercel AI SDK that enables image generation using AUTOMATIC1111 Stable Diffusion WebUI
The npm package automatic1111-provider receives a total of 8 weekly downloads. As such, automatic1111-provider popularity was classified as not popular.
We found that automatic1111-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.