Loading...
Loading...
This skill provides comprehensive guidance for using the Replicate CLI to run AI models, create predictions, manage deployments, and fine-tune models. Use this skill when the user wants to interact with Replicate's AI model platform via command line, including running image generation models, language models, or any ML model hosted on Replicate. This skill should be used when users ask about running models on Replicate, creating predictions, managing deployments, fine-tuning models, or working with the Replicate API through the CLI.
npx skill4agent add rawveg/skillsforge-marketplace replicate-cliexport REPLICATE_API_TOKEN=<token-from-replicate.com/account>replicate auth loginreplicate account currentreplicate run <owner/model> input_key=valuereplicate run stability-ai/sdxl prompt="a studio photo of a rainbow colored corgi"replicate run meta/llama-2-70b-chat --stream prompt="Tell me a joke"--stream--no-wait--web--json--save--output-directory <dir>./{prediction-id}@replicate run nightmareai/real-esrgan image=@photo.jpg{{.output}}replicate run stability-ai/sdxl prompt="a corgi" | \
replicate run nightmareai/real-esrgan image={{.output[0]}}replicate model schema <owner/model>
replicate model schema stability-ai/sdxl --jsonreplicate model list
replicate model list --jsonreplicate model show <owner/model>replicate model create <owner/name> \
--hardware gpu-a100-large \
--private \
--description "Model description"--hardware <sku>references/hardware.md--private--public--description <text>--github-url <url>--license-url <url>--cover-image-url <url>replicate train <base-model> \
--destination <owner/new-model> \
input_key=valuereplicate train stability-ai/sdxl \
--destination myuser/custom-sdxl \
--web \
input_images=@training-images.zip \
use_face_detection_instead=truereplicate training listreplicate training show <training-id>replicate deployments create <name> \
--model <owner/model> \
--hardware <sku> \
--min-instances 1 \
--max-instances 3replicate deployments create text-to-image \
--model stability-ai/sdxl \
--hardware gpu-a100-large \
--min-instances 1 \
--max-instances 5replicate deployments update <name> \
--max-instances 10 \
--version <version-id>replicate deployments listreplicate deployments show <name>
replicate deployments schema <name>replicate hardware listreferences/hardware.mdreplicate scaffold <prediction-id-or-url> --template=<node|python>| Alias | Equivalent Command |
|---|---|
| |
| |
| |
replicate mreplicate modelreplicate preplicate predictionreplicate treplicate trainingreplicate dreplicate deploymentsreplicate hwreplicate hardwarereplicate areplicate accountreplicate run stability-ai/sdxl \
prompt="professional photo of a sunset" \
negative_prompt="blurry, low quality" | \
replicate run nightmareai/real-esrgan \
image={{.output[0]}} \
--savereplicate model schema owner/model-namefor prompt in "cat" "dog" "bird"; do
replicate run stability-ai/sdxl prompt="$prompt" --save --output-directory "./outputs/$prompt"
done# Submit
replicate run owner/model input=value --no-wait --json > prediction.json
# Check status later
replicate prediction show $(jq -r '.id' prediction.json)replicate model schema <model>--stream--save--output-directory--json--web{{.output}}REPLICATE_API_TOKENreplicate account currentowner/model-namereplicate model schema <model>@