typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "TOKPlaza-Bandera announcement for a protest march organized by the βAntigua Orden Dominicana.β The text is in Spanish and features a yellow circle with an illustration of a monument. The message calls for immigration control and states that if no action is taken, a permanent protest will begin on Saturday, October 5 at 4:00 p.m. in the Plaza de la Bandera. The website βantiguaorden.comβ is also mentioned for more information. We have a date with the homeland, this Saturday, October 5 at 4:00 p.m. π©π΄",
"prompt_strength": 0.8
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_L55**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run charlygws/plazabandera using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"charlygws/plazabandera:5701effd32773aa44fcae96a14334d73c5703ca3cf0a20445d5110dd9e9787ac",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
guidance_scale: 3.5,
lora_scale: 1,
model: "dev",
num_inference_steps: 28,
num_outputs: 1,
output_format: "webp",
output_quality: 90,
prompt: "TOKPlaza-Bandera announcement for a protest march organized by the βAntigua Orden Dominicana.β The text is in Spanish and features a yellow circle with an illustration of a monument. The message calls for immigration control and states that if no action is taken, a permanent protest will begin on Saturday, October 5 at 4:00 p.m. in the Plaza de la Bandera. The website βantiguaorden.comβ is also mentioned for more information. We have a date with the homeland, this Saturday, October 5 at 4:00 p.m. π©π΄",
prompt_strength: 0.8
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_L55**********************************
This is your API token. Keep it to yourself.
import replicate
Run charlygws/plazabandera using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"charlygws/plazabandera:5701effd32773aa44fcae96a14334d73c5703ca3cf0a20445d5110dd9e9787ac",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "TOKPlaza-Bandera announcement for a protest march organized by the βAntigua Orden Dominicana.β The text is in Spanish and features a yellow circle with an illustration of a monument. The message calls for immigration control and states that if no action is taken, a permanent protest will begin on Saturday, October 5 at 4:00 p.m. in the Plaza de la Bandera. The website βantiguaorden.comβ is also mentioned for more information. We have a date with the homeland, this Saturday, October 5 at 4:00 p.m. π©π΄",
"prompt_strength": 0.8
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_L55**********************************
This is your API token. Keep it to yourself.
Run charlygws/plazabandera using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "charlygws/plazabandera:5701effd32773aa44fcae96a14334d73c5703ca3cf0a20445d5110dd9e9787ac",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "TOKPlaza-Bandera announcement for a protest march organized by the βAntigua Orden Dominicana.β The text is in Spanish and features a yellow circle with an illustration of a monument. The message calls for immigration control and states that if no action is taken, a permanent protest will begin on Saturday, October 5 at 4:00 p.m. in the Plaza de la Bandera. The website βantiguaorden.comβ is also mentioned for more information. We have a date with the homeland, this Saturday, October 5 at 4:00 p.m. π©π΄",
"prompt_strength": 0.8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
{
"id": "1zt12pppxxrj20cj7t3r4d9pec",
"model": "charlygws/plazabandera",
"version": "5701effd32773aa44fcae96a14334d73c5703ca3cf0a20445d5110dd9e9787ac",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "webp",
"output_quality": 90,
"prompt": "TOKPlaza-Bandera announcement for a protest march organized by the βAntigua Orden Dominicana.β The text is in Spanish and features a yellow circle with an illustration of a monument. The message calls for immigration control and states that if no action is taken, a permanent protest will begin on Saturday, October 5 at 4:00 p.m. in the Plaza de la Bandera. The website βantiguaorden.comβ is also mentioned for more information. We have a date with the homeland, this Saturday, October 5 at 4:00 p.m. π©π΄",
"prompt_strength": 0.8
},
"logs": "Using seed: 58151\nPrompt: TOKPlaza-Bandera announcement for a protest march organized by the βAntigua Orden Dominicana.β The text is in Spanish and features a yellow circle with an illustration of a monument. The message calls for immigration control and states that if no action is taken, a permanent protest will begin on Saturday, October 5 at 4:00 p.m. in the Plaza de la Bandera. The website βantiguaorden.comβ is also mentioned for more information. We have a date with the homeland, this Saturday, October 5 at 4:00 p.m. π©π΄\n[!] txt2img mode\nUsing dev model\nfree=3648658624512\nDownloading weights\n2024-09-29T16:05:42Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpixlf9f6w/weights url=https://replicate.delivery/yhqm/ShdtE2F9NpbTG9IkcWKfOfSJG85yc45mNFU4nUPj0D1KiyhTA/trained_model.tar\n2024-09-29T16:05:44Z | INFO | [ Complete ] dest=/tmp/tmpixlf9f6w/weights size=\"172 MB\" total_elapsed=1.436s url=https://replicate.delivery/yhqm/ShdtE2F9NpbTG9IkcWKfOfSJG85yc45mNFU4nUPj0D1KiyhTA/trained_model.tar\nDownloaded weights in 1.47s\nLoaded LoRAs in 2.31s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|β | 1/28 [00:00<00:17, 1.55it/s]\n 7%|β | 2/28 [00:01<00:14, 1.75it/s]\n 11%|β | 3/28 [00:01<00:15, 1.65it/s]\n 14%|ββ | 4/28 [00:02<00:14, 1.61it/s]\n 18%|ββ | 5/28 [00:03<00:14, 1.59it/s]\n 21%|βββ | 6/28 [00:03<00:13, 1.58it/s]\n 25%|βββ | 7/28 [00:04<00:13, 1.57it/s]\n 29%|βββ | 8/28 [00:05<00:12, 1.56it/s]\n 32%|ββββ | 9/28 [00:05<00:12, 1.56it/s]\n 36%|ββββ | 10/28 [00:06<00:11, 1.56it/s]\n 39%|ββββ | 11/28 [00:06<00:10, 1.55it/s]\n 43%|βββββ | 12/28 [00:07<00:10, 1.55it/s]\n 46%|βββββ | 13/28 [00:08<00:09, 1.55it/s]\n 50%|βββββ | 14/28 [00:08<00:09, 1.55it/s]\n 54%|ββββββ | 15/28 [00:09<00:08, 1.55it/s]\n 57%|ββββββ | 16/28 [00:10<00:07, 1.55it/s]\n 61%|ββββββ | 17/28 [00:10<00:07, 1.55it/s]\n 64%|βββββββ | 18/28 [00:11<00:06, 1.55it/s]\n 68%|βββββββ | 19/28 [00:12<00:05, 1.55it/s]\n 71%|ββββββββ | 20/28 [00:12<00:05, 1.55it/s]\n 75%|ββββββββ | 21/28 [00:13<00:04, 1.55it/s]\n 79%|ββββββββ | 22/28 [00:14<00:03, 1.55it/s]\n 82%|βββββββββ | 23/28 [00:14<00:03, 1.55it/s]\n 86%|βββββββββ | 24/28 [00:15<00:02, 1.55it/s]\n 89%|βββββββββ | 25/28 [00:15<00:01, 1.55it/s]\n 93%|ββββββββββ| 26/28 [00:16<00:01, 1.55it/s]\n 96%|ββββββββββ| 27/28 [00:17<00:00, 1.55it/s]\n100%|ββββββββββ| 28/28 [00:17<00:00, 1.55it/s]\n100%|ββββββββββ| 28/28 [00:17<00:00, 1.56it/s]",
"output": [
"https://replicate.delivery/yhqm/CyuDfKCzTx0YKqOPhqGiNR6dSfrMgmmZcurmmGdzHzZrzyhTA/out-0.webp"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-09-29T16:05:42.767Z",
"started_at": "2024-09-29T16:05:42.778118Z",
"completed_at": "2024-09-29T16:06:03.734202Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/1zt12pppxxrj20cj7t3r4d9pec/cancel",
"get": "https://api.replicate.com/v1/predictions/1zt12pppxxrj20cj7t3r4d9pec",
"web": "https://replicate.com/p/1zt12pppxxrj20cj7t3r4d9pec"
},
"metrics": {
"predict_time": 20.956084769,
"total_time": 20.967202
}
}