Loading...
Loading...
Compare original and translation side by side
export REPLICATE_API_TOKEN=<token-from-replicate.com/account>replicate auth loginreplicate account currentexport 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 <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 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 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 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 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 hardware listreferences/hardware.mdreplicate scaffold <prediction-id-or-url> --template=<node|python>replicate scaffold <prediction-id-or-url> --template=<node|python>| Alias | Equivalent Command |
|---|---|
| |
| |
| |
replicate mreplicate modelreplicate preplicate predictionreplicate treplicate trainingreplicate dreplicate deploymentsreplicate hwreplicate hardwarereplicate areplicate account| 别名 | 等效命令 |
|---|---|
| |
| |
| |
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 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-namereplicate model schema owner/model-namefor prompt in "cat" "dog" "bird"; do
replicate run stability-ai/sdxl prompt="$prompt" --save --output-directory "./outputs/$prompt"
donefor prompt in "cat" "dog" "bird"; do
replicate run stability-ai/sdxl prompt="$prompt" --save --output-directory "./outputs/$prompt"
doneundefinedundefinedundefinedundefinedreplicate model schema <model>--stream--save--output-directory--json--web{{.output}}replicate model schema <model>--stream--save--output-directory--json--web{{.output}}REPLICATE_API_TOKENreplicate account currentowner/model-namereplicate model schema <model>@REPLICATE_API_TOKENreplicate account currentowner/model-namereplicate model schema <model>@