luma-imagegen
Was er macht
Dieser Skill lässt deine KI Bilder mit dem Photon-Modell von Luma AI erstellen. Er ist für Menschen gedacht, die den Bildstil von Luma wollen oder ein neues Bild anhand eines Referenzbildes lenken möchten.
Wann du ihn nutzt
- ✓Wenn du ein Bild mit Luma AI aus einer schriftlichen Beschreibung erstellen willst.
- ✓Wenn du ein Referenzbild hast und das neue Bild dessen Stil oder Figur folgen soll.
- ✓Wenn du ein vorhandenes Bild mit Luma verändern oder im Stil anpassen willst.
Link zum Skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/luma-imagegen/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Nutze Luma, um ein Fantasy-Stadtplakat im quadratischen Format zu erstellen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent fragt nach deinem Prompt, dem Bildformat und dem Modell. Danach schickt er die Anfrage an Luma, wartet, bis das Bild fertig ist, und speichert es in einem Ordner in deinem Projekt.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Luma Image Generation Skill
Generates images using the Luma AI Photon model (Dream Machine API). Handles API key detection, interactive prompt collection, parameter selection, async polling, and final image download — all via the bundled scripts/luma_imagegen.py CLI.
When to use
- Generate a new image from a text description using Luma AI (Photon / Photon Flash)
- Use a reference image to guide style, structure, or character consistency
- Modify or stylize an existing image using Luma's
modify_image_ref
Workflow
- Check API key — detect
LUMA_API_KEYin environment. If missing, guide the user (see below). - Collect inputs — ask the user for: prompt, aspect ratio, model choice, and any optional reference images.
- Build the structured prompt — augment the user's description into a labeled spec (see prompt template below).
- Run the bundled CLI — execute
scripts/luma_imagegen.pywith the collected parameters. - Poll until complete — the script handles async polling automatically; wait for
state: completed. - Display result — show the final image URL and download the image to
output/luma/. - Iterate — if the result doesn't match expectations, adjust the prompt and re-run.
API key detection & setup
Before any API call, check for the key:
python3 ${CLAUDE_SKILL_DIR}/scripts/luma_imagegen.py --check-key
If LUMA_API_KEY is missing:
- Tell the user the key is not set.
- Direct them to generate one: https://lumalabs.ai/dream-machine/api/keys
- Ask them to add it to their
.envfile or export it in their shell:export LUMA_API_KEY=your_key_here - Never ask the user to paste the key in chat. Ask them to set it locally and confirm when ready.
- Once confirmed, retry the
--check-keycommand to verify.
Interactive questions to ask the user
Ask these questions before running the generation:
- Prompt (required): "What image do you want to generate? Describe the scene, subject, style, and any important details."
- Aspect ratio (optional, default
16:9): "What aspect ratio? Options:1:1,3:4,4:3,9:16,16:9(default),9:21,21:9" - Model (optional, default
photon-1): "Usephoton-1(higher quality) orphoton-flash-1(faster and cheaper)?" - Reference image (optional): "Do you have a reference image URL for style or structure guidance?"
Only ask what's needed — skip questions the user has already answered in their message.
Running the CLI
python3 ${CLAUDE_SKILL_DIR}/scripts/luma_imagegen.py \
--prompt "YOUR AUGMENTED PROMPT" \
--aspect-ratio 16:9 \
--model photon-1 \
[--image-ref "https://example.com/ref.jpg" --image-ref-weight 0.85] \
[--out output/luma/]
All flags:
| Flag | Default | Description |
|---|---|---|
--prompt |
(required) | Text description of the image |
--aspect-ratio |
16:9 |
1:1, 3:4, 4:3, 9:16, 16:9, 9:21, 21:9 |
--model |
photon-1 |
photon-1 or photon-flash-1 |
--image-ref |
— | Public URL for style/structure reference |
--image-ref-weight |
0.85 |
Weight of reference image (0.0–1.0) |
--modify-ref |
— | Base image URL to modify |
--modify-ref-weight |
0.5 |
Weight for modification fidelity |
--out |
output/luma/ |
Output directory for downloaded images |
--poll-interval |
3 |
Seconds between polling requests |
--check-key |
— | Verify LUMA_API_KEY is set and exit |
Output conventions
- Save final images to
output/luma/with descriptive filenames (e.g.,photon1_hero_16x9.png). The output directory is relative to the current working directory when the script is invoked. - Log the generation ID for reference (useful to retrieve the image later).
- If the generation fails, show the
failure_reasonfrom the API response.
Prompt augmentation
Reformat the user's description into a structured spec. Only make implied details explicit — do not invent new requirements.
Template (include only relevant lines):
Primary request: <user's main prompt>
Scene/background: <environment or setting>
Subject: <main subject>
Style/medium: <photo/illustration/3D/cinematic/etc>
Composition/framing: <wide/close-up/overhead; subject placement>
Lighting/mood: <lighting type and emotional tone>
Color palette: <dominant colors or palette notes>
Aspect ratio: <e.g., 16:9 landscape>
Avoid: <elements to exclude>
Augmentation rules:
- Keep it con
Häufige Fragen
Was brauche ich vor dem Start?
Du brauchst einen Luma-API-Schlüssel in deiner Umgebung. Fehlt er, bittet dich der Agent, ihn hinzuzufügen.
Kann ich es noch einmal versuchen, wenn mir das Ergebnis nicht gefällt?
Ja. Der Agent kann den Prompt anpassen und erneut ausführen.
Wo landet das Bild?
Das Bild wird in einen luma-Ausgabeordner in deinem Projekt heruntergeladen.
Details
Originalbeschreibung des Autors
Use when the user asks to generate images via the Luma AI API (Dream Machine / Photon); collects a prompt and options interactively, then calls the API using the bundled script. Requires LUMA_API_KEY — will prompt the user if missing.
Beliebtheit
- GitHub-Sterne
- 33k
- Platz im Ranking
- #8694
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
owasp-security
33kBringt deinem Agenten OWASP-Sicherheitsrichtlinien für Web-Apps, APIs, mobile Apps, Container und KI-Agenten bei, damit er typische Schwachstellen erkennt und Korrekturen vorschlägt.
agent-management
33kLässt deinen Agenten KI-Agenten mit der AI-Maestro-Kommandozeile erstellen, auflisten, pausieren, aufwecken, umbenennen und löschen und so ihren Lebenszyklus verwalten.
agent-messaging
33kLässt deinen Agenten signierte Nachrichten zwischen KI-Agenten senden, empfangen und beantworten, über das Agent Messaging Protocol, überwiegend auf deinem eigenen Rechner.
docs-search
33kLässt deinen Agenten automatisch erzeugte Code-Dokumentation nach Funktionssignaturen, Klassendefinitionen und Kommentaren durchsuchen und so die echte API prüfen, bevor er Code ändert.
Ähnliche Skills
gifgrep
394kLässt deinen Agenten GIF-Bibliotheken durchsuchen, Ergebnisse vorab ansehen, ein GIF herunterladen und ein Einzelbild oder ein Kontaktblatt mit Bildern herausziehen.
meme-maker
394kLässt deinen Agenten eine Vorlage für ein Meme auswählen, eigene Beschriftungen hinzufügen und das Meme als SVG- oder PNG-Bild erstellen.
ios-icon-gen
280kHilft deinem Agenten, Icons für iOS-Apps zu erstellen. Er nutzt Apple-Symbole oder Icons aus anderen Quellen und erzeugt die richtigen Dateien.