CLI
업계 최초Yollomi는 네이티브 CLI를 지원하는 최초의 종합 AI 미디어 플랫폼입니다. 브라우저 없이, API 코드 없이 터미널에서 직접 이미지와 비디오를 생성하세요.
CLI가 중요한 이유
크리에이티브 워크플로우를 스크립트화하세요. Yollomi를 다른 도구와 통합하세요. CI/CD, 자동화, AI Agent에 통합하세요. 한 명령, 한 결과——yollomi image "고양이".
설치
전역 설치로 어디서든 yollomi 사용
npm (권장)
npm install -g yollomi-cli # If using Bytedance internal registry, use public npm: npm install -g yollomi-cli --registry https://registry.npmjs.org/
설치 없이 실행
npx yollomi-cli image "a cute cat"
설정
API Key를 설정하세요. 대시보드 → API Keys.
export YOLLOMI_API_KEY=your_api_key # Optional: override API host (default: https://yollomi.com) export YOLLOMI_BASE_URL=https://yollomi.com
명령어
모든 이미지/비디오 모델, 하나의 CLI
모델 목록 (API Key 불필요)
yollomi models yollomi models --type image yollomi models --type video
이미지 생성
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
비디오 생성
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
옵션
| 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 |
출력
URLs는 stdout으로 출력되어 파이프 또는 스크립트에 사용 가능
$ yollomi image "a cat" Generating… https://r2.yollomi.com/v1/flux-schnell/... Remaining credits: 98