Génération d'images NVIDIA

VérifiéPrudence

Générez et éditez des images avec les modèles FLUX de NVIDIA. Supporte la génération texte-à-image et l'édition d'images.

Spar Skills Guide Bot
DeveloppementIntermédiaire
0023/07/2026
Claude CodeCursorWindsurf
#nvidia#image-generation#flux#text-to-image#image-editing

Recommandé pour

Notre avis

Génère et édite des images via les modèles NVIDIA FLUX (dev, schnell, kontext) pour la création d'images à partir de texte ou la modification d'images existantes.

Points forts

  • Support de plusieurs modèles pour différents besoins de qualité/vitesse
  • Paramètres avancés comme les ratios d'aspect et les étapes de diffusion
  • Édition d'images avec instructions textuelles précises
  • Sortie directe intégrable dans le chat

Limites

  • Nécessite une clé API NVIDIA (intégrée mais modifiable)
  • Fiabilité variable des résultats selon la complexité de la consigne
  • Pas de gestion des formats d'image avancés (transparence, etc.)
Quand l'utiliser

Utilisez cette compétence lorsque vous avez besoin de créer rapidement des visuels originaux ou de modifier des photos avec des instructions naturelles, sans outils graphiques complexes.

Quand l'éviter

Évitez cette compétence pour des retouches précises au pixel près ou si vous n'avez pas accès à une connexion Internet stable pour appeler l'API NVIDIA.

Analyse de sécurité

Prudence
Score qualité90/100

The skill references an NVIDIA API key embedded in a Python script, which could be leaked if the skill is used to run the script. No destructive commands are present, but the embedded secret is a security concern.

Points d'attention
  • API key is embedded in the script, posing a risk of credential exposure.

Exemples

Generate a landscape image
Generate a mountain landscape at sunset with snow-capped peaks and a river in the foreground.
Edit an existing image
Edit this photo by changing the background to a sunset over the ocean. /path/to/image.jpg
Fast generation with custom aspect ratio
Generate a wide banner image of a futuristic city skyline at night, 16:9 aspect ratio, using the fast model.

name: nvidia-image-gen version: 1.0.0 description: Generate and edit images using NVIDIA FLUX models. Use when user asks to generate images, create pictures, edit photos, or modify existing images with AI. Supports text-to-image generation and image editing with text prompts.

NVIDIA Image Generation

Generate and edit images using NVIDIA's FLUX models.

Models

| Model | Use Case | Speed | Quality | |-------|----------|-------|---------| | dev | High-quality text-to-image | Normal | Best | | schnell | Fast text-to-image | Fast | Good | | kontext | Image editing | Normal | Best |

Quick Start

# Generate an image
python scripts/generate.py "A cute cat in space"

# Edit an existing image
python scripts/generate.py "Add sunglasses" -i photo.jpg -o edited.png

Parameters

Text-to-Image (dev/schnell)

| Parameter | Short | Default | Description | |-----------|-------|---------|-------------| | prompt | | (required) | Text description | | -o, --output | | output.png | Output file path | | --width | | 1024 | Output width in pixels | | --height | | 1024 | Output height in pixels | | --aspect-ratio | -ar | 1:1 | Aspect ratio preset | | --steps | -s | 30 | Diffusion steps | | --seed | | 0 | Random seed (0=random) | | --model | -m | auto | Model selection |

Image Editing (kontext)

| Parameter | Short | Default | Description | |-----------|-------|---------|-------------| | prompt | | (required) | Edit instruction | | -i, --input | | (required) | Input image path | | -o, --output | | output.png | Output file path | | --steps | -s | 30 | Diffusion steps | | --cfg | | 3.5 | Guidance scale | | --seed | | 0 | Random seed |

Supported Aspect Ratios

| Ratio | Resolution | |-------|------------| | 1:1 | 1024×1024 | | 16:9 | 1344×768 | | 9:16 | 768×1344 | | 4:3 | 1216×832 | | 3:4 | 832×1216 |

Examples

Basic Generation

python scripts/generate.py "A mountain landscape at sunset"

Wide Format (16:9)

python scripts/generate.py "A panoramic beach view" -ar 16:9

Portrait Mode (9:16)

python scripts/generate.py "A professional headshot" -ar 9:16

Custom Size

python scripts/generate.py "A banner image" --width 1344 --height 768

Fast Generation

python scripts/generate.py "Quick sketch of a robot" -m schnell

Edit an Image

python scripts/generate.py "Make the background a sunset" -i input.jpg -o output.png

Reproducible Results

python scripts/generate.py "A robot" --seed 12345

Output

The script outputs MEDIA:/path/to/image.png which can be sent directly to chat.

API Key

The API key is embedded in the script. To use a different key, set the NVIDIA_API_KEY environment variable.

Skills similaires