CLI
Premier du secteurYollomi est la première plateforme média IA complète avec support CLI natif. Générez images et vidéos directement depuis votre terminal — sans navigateur, sans écrire d'appels API.
Pourquoi l'interface CLI est importante
Automatisez votre flux créatif. Enchaînez Yollomi avec d'autres outils. Intégrez dans CI/CD, automatisation ou agents IA. Une commande, un résultat — yollomi image "un chat".
Installation
Installez globalement pour utiliser yollomi partout
npm (recommandé)
npm install -g yollomi-cli # If using Bytedance internal registry, use public npm: npm install -g yollomi-cli --registry https://registry.npmjs.org/
Exécuter sans installation
npx yollomi-cli image "a cute cat"
Configuration
Définissez votre clé API. Créez-en une dans Tableau de bord → Clés API.
export YOLLOMI_API_KEY=your_api_key # Optional: override API host (default: https://yollomi.com) export YOLLOMI_BASE_URL=https://yollomi.com
Commandes
Tous les modèles image et vidéo, un seul CLI
Lister les modèles (pas de clé API requise)
yollomi models yollomi models --type image yollomi models --type video
Générer une image
yollomi image "a magical forest with glowing mushrooms" yollomi image "sunset over mountains" --model flux-2-pro --aspect 16:9 yollomi image "make it oil painting style" --model flux-kontext-pro --image https://example.com/photo.jpg
Générer une vidéo
yollomi video "a cat walking in the rain" yollomi video "ocean waves at sunset" --model google-veo-3-fast yollomi video "animate this scene" --model wan-2-5-i2v --image https://example.com/frame.jpg
Options
| Option | Description |
|---|---|
-m, --model | Model ID (default: flux-schnell / google-veo-3-fast) |
-a, --aspect | Aspect ratio (1:1, 16:9, 9:16) |
-i, --image | Reference image URL (img2img, i2v, remove-bg) |
-n, --num | Number of images (1-4) |
-d, --duration | Video duration in seconds |
Sortie
Les URLs sont imprimées sur stdout pour piping ou scripts
$ yollomi image "a cat" Generating… https://r2.yollomi.com/v1/flux-schnell/... Remaining credits: 98