{"id":23897,"library":"invokeai","title":"InvokeAI","description":"InvokeAI is a full-featured AI-assisted image generation environment designed for creatives and enthusiasts. It supports multiple diffusion models including Stable Diffusion, FLUX, Z-Image Turbo, and others, with a rich web UI, node-based workflow editor, and comprehensive model management. Current version is 6.12.0; release cadence is roughly monthly with release candidates.","status":"active","version":"6.12.0","language":"python","source_language":"en","source_url":"https://github.com/invoke-ai/InvokeAI","tags":["image-generation","stable-diffusion","ai-art","diffusion-models","web-ui"],"install":[{"cmd":"pip install invokeai","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core deep learning framework for model inference","package":"torch","optional":false},{"reason":"Provides diffusion model pipelines","package":"diffusers","optional":false},{"reason":"Optimizes attention (recommended for GPU)","package":"xformers","optional":true}],"imports":[{"note":"InvokeAIApp is in the app subpackage; direct import fails.","wrong":"from invokeai import InvokeAIApp","symbol":"InvokeAIApp","correct":"from invokeai.app import InvokeAIApp"},{"note":"ModelManager moved to backend.model_manager in v6.x.","wrong":"from invokeai.model_manager import ModelManager","symbol":"ModelManager","correct":"from invokeai.backend.model_manager import ModelManager"}],"quickstart":{"code":"import os\nfrom invokeai.app import InvokeAIApp\n\napp = InvokeAIApp()\n# Run a simple txt2img generation\nresult = app.generate(\n    prompt=\"A serene mountain landscape\",\n    width=512,\n    height=512,\n    steps=20,\n    cfg_scale=7.5\n)\nprint(\"Images saved:\", result.images)","lang":"python","description":"Basic usage of InvokeAI programmatically to generate an image. Requires a loaded model."},"warnings":[{"fix":"Use Python 3.11 or 3.12.","message":"Python 3.13 is not supported; requires Python >=3.11,<3.13.","severity":"breaking","affected_versions":">=6.12.0"},{"fix":"Let the migration run automatically; do not manually rearrange model folders.","message":"The model directory structure changed in v6.9.0 to a flat layout. Existing setups will be migrated on first run.","severity":"breaking","affected_versions":">=6.9.0"},{"fix":"Use `invokeai-model-install` CLI or the Model Manager in the web UI.","message":"InvokeAI uses its own model registry; simply placing .safetensors in a folder does not work. You must install models via the UI or CLI.","severity":"gotcha","affected_versions":">=6.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install invokeai` and ensure the virtual environment is activated.","cause":"InvokeAI not installed or installed in a different environment.","error":"ModuleNotFoundError: No module named 'invokeai'"},{"fix":"Use `from invokeai.app import InvokeAIApp`.","cause":"Incorrect import path; InvokeAIApp is in the app subpackage.","error":"ImportError: cannot import name 'InvokeAIApp' from 'invokeai'"},{"fix":"Install a model via `invokeai-model-install --model runwayml/stable-diffusion-v1-5` or via the web UI.","cause":"No model is installed or selected in the model manager.","error":"RuntimeError: model not loaded"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}