Your go-to solution for generating fire images with Artbit.ai! Both sync and async support! 🚀
- 🎨 Support for all Artbit models
- ⚡ Both sync and async implementations
- 🔄 Smart retry mechanism
- 🌐 Proxy support
- 📝 Optional logging
- 🎯 Type hints
- 🚀 Easy to use
pip install webscout
from webscout import ArtbitImager
# Initialize with logging
provider = ArtbitImager(logging=True)
# Generate a single image
images = provider.generate("A shiny red sports car")
paths = provider.save(images)
# Generate multiple images with parameters
images = provider.generate(
prompt="Epic dragon in cyberpunk city",
amount=3,
caption_model="sdxl",
selected_ratio="1024",
negative_prompt="blurry, bad quality"
)
paths = provider.save(images, name="dragon", dir="outputs")
from webscout import AsyncArtbitImager
import asyncio
async def example():
# Initialize with logging
provider = AsyncArtbitImager(logging=True)
# Generate a single image
images = await provider.generate("A shiny red sports car")
paths = await provider.save(images)
# Generate multiple images with parameters
images = await provider.generate(
prompt="Epic dragon in cyberpunk city",
amount=3,
caption_model="sdxl",
selected_ratio="1024",
negative_prompt="blurry, bad quality"
)
paths = await provider.save(images, name="dragon", dir="outputs")
# Run the example
asyncio.run(example())
sdxl
(default) - Stable Diffusion XLsd
- Stable Diffusion- And more coming soon! 🎉
timeout
: Request timeout in secondsproxies
: Proxy settings for requestslogging
: Enable/disable fire logging
prompt
: Your image descriptionamount
: Number of images to generatecaption_model
: Which model to useselected_ratio
: Image size rationegative_prompt
: What you don't want in the image
name
: Custom name for your imagesdir
: Where to save your imagesfilenames_prefix
: Add prefix to filenames