Chuyển đến nội dung
Skillpedia
Agent260k · #484

inference-sh-cli

Skill này làm gì

Skill để agent dùng công cụ dòng lệnh infsh để chạy các ứng dụng AI được lưu trữ cho ảnh, video, tìm kiếm và avatar đồng bộ môi, mà bạn không phải tự quản lý từng nhà cung cấp. Phù hợp với người muốn dùng nhiều công cụ AI qua một dòng lệnh.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một ảnh hoặc video bằng một mô hình được lưu trữ như FLUX hoặc Veo.
  • ✓Khi bạn muốn tạo một video avatar hoặc một tìm kiếm có AI hỗ trợ.
  • ✓Khi bạn không muốn quản lý một tài khoản riêng cho mỗi nhà cung cấp AI.

Liên kết skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/devops/inference-sh-cli/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/devops/inference-sh-cli/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Dùng inference.sh để tạo một ảnh sản phẩm vuông của chiếc cốc gốm xanh đặt trên bàn gỗ.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm trong danh mục ứng dụng để lấy đúng ID ứng dụng, chạy ứng dụng với đầu vào của bạn, rồi chia sẻ liên kết kết quả. Đầu ra trả về dạng JSON với các URL phương tiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

inference.sh CLI

Run 150+ AI apps in the cloud with a simple CLI. No GPU required.

All commands use the terminal tool to run infsh commands.

When to Use

  • User asks to generate images (FLUX, Reve, Seedream, Grok, Gemini image)
  • User asks to generate video (Veo, Wan, Seedance, OmniHuman)
  • User asks about inference.sh or infsh
  • User wants to run AI apps without managing individual provider APIs
  • User asks for AI-powered search (Tavily, Exa)
  • User needs avatar/lipsync generation

Prerequisites

The infsh CLI must be installed and authenticated. Check with:

infsh me

If not installed:

curl -fsSL https://cli.inference.sh | sh
infsh login

See references/authentication.md for full setup details.

Workflow

1. Always Search First

Never guess app names — always search to find the correct app ID:

infsh app list --search flux
infsh app list --search video
infsh app list --search image

2. Run an App

Use the exact app ID from the search results. Always use --json for machine-readable output:

infsh app run <app-id> --input '{"prompt": "your prompt here"}' --json

3. Parse the Output

The JSON output contains URLs to generated media. Present these to the user with MEDIA:<url> for inline display.

Common Commands

Image Generation

# Search for image apps
infsh app list --search image

# FLUX Dev with LoRA
infsh app run falai/flux-dev-lora --input '{"prompt": "sunset over mountains", "num_images": 1}' --json

# Gemini image generation
infsh app run google/gemini-2-5-flash-image --input '{"prompt": "futuristic city", "num_images": 1}' --json

# Seedream (ByteDance)
infsh app run bytedance/seedream-5-lite --input '{"prompt": "nature scene"}' --json

# Grok Imagine (xAI)
infsh app run xai/grok-imagine-image --input '{"prompt": "abstract art"}' --json

Video Generation

# Search for video apps
infsh app list --search video

# Veo 3.1 (Google)
infsh app run google/veo-3-1-fast --input '{"prompt": "drone shot of coastline"}' --json

# Seedance (ByteDance)
infsh app run bytedance/seedance-1-5-pro --input '{"prompt": "dancing figure", "resolution": "1080p"}' --json

# Wan 2.5
infsh app run falai/wan-2-5 --input '{"prompt": "person walking through city"}' --json

Local File Uploads

The CLI automatically uploads local files when you provide a path:

# Upscale a local image
infsh app run falai/topaz-image-upscaler --input '{"image": "/path/to/photo.jpg", "upscale_factor": 2}' --json

# Image-to-video from local file
infsh app run falai/wan-2-5-i2v --input '{"image": "/path/to/image.png", "prompt": "make it move"}' --json

# Avatar with audio
infsh app run bytedance/omnihuman-1-5 --input '{"audio": "/path/to/audio.mp3", "image": "/path/to/face.jpg"}' --json

Search & Research

infsh app list --search search
infsh app run tavily/tavily-search --input '{"query": "latest AI news"}' --json
infsh app run exa/exa-search --input '{"query": "machine learning papers"}' --json

Other Categories

# 3D generation
infsh app list --search 3d

# Audio / TTS
infsh app list --search tts

# Twitter/X automation
infsh app list --search twitter

Pitfalls

  1. Never guess app IDs — always run infsh app list --search <term> first. App IDs change and new apps are added frequently.
  2. Always use --json — raw output is hard to parse. The --json flag gives structured output with URLs.
  3. Check authentication — if commands fail with auth errors, run infsh login or verify INFSH_API_KEY is set.
  4. Long-running apps — video generation can take 30-120 seconds. The terminal tool timeout should be sufficient, but warn the user it may take a moment.
  5. Input format — the --input flag takes a JSON string. Make sure to properly escape quotes.

Reference Docs

  • references/authentication.md — Setup, login, API keys
  • references/app-discovery.md — Searching and browsing the app catalog
  • references/running-apps.md — Running apps, input formats, output handling
  • references/cli-reference.md — Complete CLI command reference
Câu hỏi thường gặp

Tôi cài đặt như thế nào?

Cài công cụ infsh bằng script cài đặt, đăng nhập bằng infsh login, và kiểm tra bằng infsh me.

Có cần GPU không?

Không. Skill nói các ứng dụng chạy trên đám mây và không cần GPU.

Vì sao phải tìm kiếm trước khi chạy một ứng dụng?

Skill nói không bao giờ đoán tên ứng dụng, nên agent trước tiên tìm đúng ID ứng dụng.

Chi tiết

Mô tả gốc của tác giả

Run 150+ AI apps (image, video, LLM) via inference.sh CLI.

repo: NousResearch/hermes-agent

Độ phổ biến

Sao GitHub
260k
Vị trí xếp hạng
#484
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự