108 lines
3.4 KiB
Plaintext
108 lines
3.4 KiB
Plaintext
# Stability AI Configuration Example
|
|
# Copy this file to .env and fill in your actual values
|
|
|
|
# Required: Your Stability AI API Key
|
|
# Get your API key from: https://platform.stability.ai/account/keys
|
|
STABILITY_API_KEY=your_stability_api_key_here
|
|
|
|
# Optional: Stability AI API Base URL (default: https://api.stability.ai)
|
|
STABILITY_BASE_URL=https://api.stability.ai
|
|
|
|
# Optional: Request timeout in seconds (default: 300)
|
|
STABILITY_TIMEOUT=300
|
|
|
|
# Optional: Maximum retries for failed requests (default: 3)
|
|
STABILITY_MAX_RETRIES=3
|
|
|
|
# Optional: Maximum file size for uploads in bytes (default: 10MB)
|
|
STABILITY_MAX_FILE_SIZE=10485760
|
|
|
|
# Optional: Enable debug mode for detailed logging (default: false)
|
|
STABILITY_DEBUG=false
|
|
|
|
# Optional: Enable caching for responses (default: true)
|
|
STABILITY_ENABLE_CACHE=true
|
|
|
|
# Optional: Cache duration in seconds (default: 3600)
|
|
STABILITY_CACHE_DURATION=3600
|
|
|
|
# Optional: Enable rate limiting (default: true)
|
|
STABILITY_ENABLE_RATE_LIMIT=true
|
|
|
|
# Optional: Rate limit - requests per window (default: 150)
|
|
STABILITY_RATE_LIMIT_REQUESTS=150
|
|
|
|
# Optional: Rate limit window in seconds (default: 10)
|
|
STABILITY_RATE_LIMIT_WINDOW=10
|
|
|
|
# Optional: Enable content moderation (default: true)
|
|
STABILITY_ENABLE_MODERATION=true
|
|
|
|
# Optional: Enable request logging (default: true)
|
|
STABILITY_ENABLE_LOGGING=true
|
|
|
|
# Optional: Maximum log entries to keep in memory (default: 1000)
|
|
STABILITY_MAX_LOG_ENTRIES=1000
|
|
|
|
# Optional: Enable experimental features (default: false)
|
|
STABILITY_ENABLE_EXPERIMENTAL=false
|
|
|
|
# Optional: Default output format for images (default: png)
|
|
STABILITY_DEFAULT_IMAGE_FORMAT=png
|
|
|
|
# Optional: Default output format for audio (default: mp3)
|
|
STABILITY_DEFAULT_AUDIO_FORMAT=mp3
|
|
|
|
# Optional: Enable webhook support (default: false)
|
|
STABILITY_ENABLE_WEBHOOKS=false
|
|
|
|
# Optional: Webhook URL for generation completion notifications
|
|
STABILITY_WEBHOOK_URL=
|
|
|
|
# Optional: Webhook secret for signature validation
|
|
STABILITY_WEBHOOK_SECRET=
|
|
|
|
# Optional: Enable batch processing (default: true)
|
|
STABILITY_ENABLE_BATCH=true
|
|
|
|
# Optional: Maximum batch size (default: 10)
|
|
STABILITY_MAX_BATCH_SIZE=10
|
|
|
|
# Optional: Enable quality analysis features (default: true)
|
|
STABILITY_ENABLE_QUALITY_ANALYSIS=true
|
|
|
|
# Optional: Enable prompt optimization features (default: true)
|
|
STABILITY_ENABLE_PROMPT_OPTIMIZATION=true
|
|
|
|
# Optional: Default creativity level for upscaling (default: 0.35)
|
|
STABILITY_DEFAULT_CREATIVITY=0.35
|
|
|
|
# Optional: Default control strength for control operations (default: 0.7)
|
|
STABILITY_DEFAULT_CONTROL_STRENGTH=0.7
|
|
|
|
# Optional: Default style fidelity for style operations (default: 0.5)
|
|
STABILITY_DEFAULT_STYLE_FIDELITY=0.5
|
|
|
|
# Optional: Enable automatic image format optimization (default: true)
|
|
STABILITY_AUTO_OPTIMIZE_FORMAT=true
|
|
|
|
# Optional: Enable automatic parameter optimization (default: true)
|
|
STABILITY_AUTO_OPTIMIZE_PARAMS=true
|
|
|
|
# Optional: Default model for generate operations (default: core)
|
|
STABILITY_DEFAULT_GENERATE_MODEL=core
|
|
|
|
# Optional: Default model for upscale operations (default: fast)
|
|
STABILITY_DEFAULT_UPSCALE_MODEL=fast
|
|
|
|
# Optional: Enable cost tracking and warnings (default: true)
|
|
STABILITY_ENABLE_COST_TRACKING=true
|
|
|
|
# Optional: Credit warning threshold (default: 10)
|
|
STABILITY_CREDIT_WARNING_THRESHOLD=10
|
|
|
|
# Optional: Enable performance monitoring (default: true)
|
|
STABILITY_ENABLE_MONITORING=true
|
|
|
|
# Optional: Performance monitoring interval in seconds (default: 60)
|
|
STABILITY_MONITORING_INTERVAL=60 |