cdreier
/
golang-gopher-flux
a fine tuned gopher flux LoRA - the trigger word is GOGOPH
- Public
- 624 runs
-
H100
Prediction
cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83IDz847z0bjs9rm60chn0kb5734vwStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a GOGOPH image of a gopher walking through the rain
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 80
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "a GOGOPH image of a gopher walking through the rain", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", { input: { model: "dev", prompt: "a GOGOPH image of a gopher walking through the rain", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 80, extra_lora_scale: 0.8, num_inference_steps: 28 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", input={ "model": "dev", "prompt": "a GOGOPH image of a gopher walking through the rain", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cdreier/golang-gopher-flux 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": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher walking through the rain", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-31T11:17:33.928072Z", "created_at": "2024-08-31T11:16:17.738000Z", "data_removed": false, "error": null, "id": "z847z0bjs9rm60chn0kb5734vw", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher walking through the rain", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Using seed: 64155\nPrompt: a GOGOPH image of a gopher walking through the rain\ntxt2img mode\nUsing dev model\nfree=9511181729792\nDownloading weights\n2024-08-31T11:16:44Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsdrh2rph/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\n2024-08-31T11:16:46Z | INFO | [ Complete ] dest=/tmp/tmpsdrh2rph/weights size=\"172 MB\" total_elapsed=1.239s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\nDownloaded weights in 1.27s\nLoaded LoRAs in 40.90s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:07, 3.63it/s]\n 7%|▋ | 2/28 [00:00<00:06, 4.18it/s]\n 11%|█ | 3/28 [00:00<00:06, 3.93it/s]\n 14%|█▍ | 4/28 [00:01<00:06, 3.82it/s]\n 18%|█▊ | 5/28 [00:01<00:06, 3.75it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 3.71it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 3.70it/s]\n 29%|██▊ | 8/28 [00:02<00:05, 3.68it/s]\n 32%|███▏ | 9/28 [00:02<00:05, 3.67it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 3.66it/s]\n 39%|███▉ | 11/28 [00:02<00:04, 3.66it/s]\n 43%|████▎ | 12/28 [00:03<00:04, 3.66it/s]\n 46%|████▋ | 13/28 [00:03<00:04, 3.65it/s]\n 50%|█████ | 14/28 [00:03<00:03, 3.65it/s]\n 54%|█████▎ | 15/28 [00:04<00:03, 3.65it/s]\n 57%|█████▋ | 16/28 [00:04<00:03, 3.66it/s]\n 61%|██████ | 17/28 [00:04<00:03, 3.65it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 3.65it/s]\n 68%|██████▊ | 19/28 [00:05<00:02, 3.65it/s]\n 71%|███████▏ | 20/28 [00:05<00:02, 3.65it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 3.65it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 3.65it/s]\n 82%|████████▏ | 23/28 [00:06<00:01, 3.65it/s]\n 86%|████████▌ | 24/28 [00:06<00:01, 3.65it/s]\n 89%|████████▉ | 25/28 [00:06<00:00, 3.65it/s]\n 93%|█████████▎| 26/28 [00:07<00:00, 3.65it/s]\n 96%|█████████▋| 27/28 [00:07<00:00, 3.65it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.65it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.68it/s]", "metrics": { "predict_time": 49.068378994, "total_time": 76.190072 }, "output": [ "https://replicate.delivery/yhqm/YWken9RNikxfsUbdE7ZkHqnTjq4NiYwmey2KGytJUxrauVwmA/out-0.webp" ], "started_at": "2024-08-31T11:16:44.859693Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/z847z0bjs9rm60chn0kb5734vw", "cancel": "https://api.replicate.com/v1/predictions/z847z0bjs9rm60chn0kb5734vw/cancel" }, "version": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83" }
Generated inUsing seed: 64155 Prompt: a GOGOPH image of a gopher walking through the rain txt2img mode Using dev model free=9511181729792 Downloading weights 2024-08-31T11:16:44Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpsdrh2rph/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar 2024-08-31T11:16:46Z | INFO | [ Complete ] dest=/tmp/tmpsdrh2rph/weights size="172 MB" total_elapsed=1.239s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar Downloaded weights in 1.27s Loaded LoRAs in 40.90s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:07, 3.63it/s] 7%|▋ | 2/28 [00:00<00:06, 4.18it/s] 11%|█ | 3/28 [00:00<00:06, 3.93it/s] 14%|█▍ | 4/28 [00:01<00:06, 3.82it/s] 18%|█▊ | 5/28 [00:01<00:06, 3.75it/s] 21%|██▏ | 6/28 [00:01<00:05, 3.71it/s] 25%|██▌ | 7/28 [00:01<00:05, 3.70it/s] 29%|██▊ | 8/28 [00:02<00:05, 3.68it/s] 32%|███▏ | 9/28 [00:02<00:05, 3.67it/s] 36%|███▌ | 10/28 [00:02<00:04, 3.66it/s] 39%|███▉ | 11/28 [00:02<00:04, 3.66it/s] 43%|████▎ | 12/28 [00:03<00:04, 3.66it/s] 46%|████▋ | 13/28 [00:03<00:04, 3.65it/s] 50%|█████ | 14/28 [00:03<00:03, 3.65it/s] 54%|█████▎ | 15/28 [00:04<00:03, 3.65it/s] 57%|█████▋ | 16/28 [00:04<00:03, 3.66it/s] 61%|██████ | 17/28 [00:04<00:03, 3.65it/s] 64%|██████▍ | 18/28 [00:04<00:02, 3.65it/s] 68%|██████▊ | 19/28 [00:05<00:02, 3.65it/s] 71%|███████▏ | 20/28 [00:05<00:02, 3.65it/s] 75%|███████▌ | 21/28 [00:05<00:01, 3.65it/s] 79%|███████▊ | 22/28 [00:05<00:01, 3.65it/s] 82%|████████▏ | 23/28 [00:06<00:01, 3.65it/s] 86%|████████▌ | 24/28 [00:06<00:01, 3.65it/s] 89%|████████▉ | 25/28 [00:06<00:00, 3.65it/s] 93%|█████████▎| 26/28 [00:07<00:00, 3.65it/s] 96%|█████████▋| 27/28 [00:07<00:00, 3.65it/s] 100%|██████████| 28/28 [00:07<00:00, 3.65it/s] 100%|██████████| 28/28 [00:07<00:00, 3.68it/s]
Prediction
cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83ID9q3tngv9anrm60chn3482qspz8StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a GOGOPH image of a gopher as a munic oktoberfest visitor
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 80
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "a GOGOPH image of a gopher as a munic oktoberfest visitor", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", { input: { model: "dev", prompt: "a GOGOPH image of a gopher as a munic oktoberfest visitor", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 80, extra_lora_scale: 0.8, num_inference_steps: 28 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", input={ "model": "dev", "prompt": "a GOGOPH image of a gopher as a munic oktoberfest visitor", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cdreier/golang-gopher-flux 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": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher as a munic oktoberfest visitor", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-08-31T14:13:43.984630Z", "created_at": "2024-08-31T14:13:12.149000Z", "data_removed": false, "error": null, "id": "9q3tngv9anrm60chn3482qspz8", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher as a munic oktoberfest visitor", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Using seed: 45233\nPrompt: a GOGOPH image of a gopher as a munic oktoberfest visitor\ntxt2img mode\nUsing dev model\nfree=9270160113664\nDownloading weights\n2024-08-31T14:13:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0hecr79z/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\n2024-08-31T14:13:18Z | INFO | [ Complete ] dest=/tmp/tmp0hecr79z/weights size=\"172 MB\" total_elapsed=1.482s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\nDownloaded weights in 1.51s\nLoaded LoRAs in 18.15s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.96it/s]\n 7%|▋ | 2/28 [00:00<00:06, 3.79it/s]\n 11%|█ | 3/28 [00:00<00:06, 3.74it/s]\n 14%|█▍ | 4/28 [00:01<00:06, 3.72it/s]\n 18%|█▊ | 5/28 [00:01<00:06, 3.71it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 3.70it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 3.70it/s]\n 29%|██▊ | 8/28 [00:02<00:05, 3.69it/s]\n 32%|███▏ | 9/28 [00:02<00:05, 3.69it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 3.69it/s]\n 39%|███▉ | 11/28 [00:02<00:04, 3.69it/s]\n 43%|████▎ | 12/28 [00:03<00:04, 3.69it/s]\n 46%|████▋ | 13/28 [00:03<00:04, 3.69it/s]\n 50%|█████ | 14/28 [00:03<00:03, 3.69it/s]\n 54%|█████▎ | 15/28 [00:04<00:03, 3.69it/s]\n 57%|█████▋ | 16/28 [00:04<00:03, 3.69it/s]\n 61%|██████ | 17/28 [00:04<00:02, 3.69it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 3.69it/s]\n 68%|██████▊ | 19/28 [00:05<00:02, 3.69it/s]\n 71%|███████▏ | 20/28 [00:05<00:02, 3.69it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 3.68it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 3.69it/s]\n 82%|████████▏ | 23/28 [00:06<00:01, 3.69it/s]\n 86%|████████▌ | 24/28 [00:06<00:01, 3.69it/s]\n 89%|████████▉ | 25/28 [00:06<00:00, 3.68it/s]\n 93%|█████████▎| 26/28 [00:07<00:00, 3.69it/s]\n 96%|█████████▋| 27/28 [00:07<00:00, 3.69it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.69it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.68it/s]", "metrics": { "predict_time": 26.983841501, "total_time": 31.83563 }, "output": [ "https://replicate.delivery/yhqm/AM2nbGgsG1JQG1x6JZYYbR3fWvVfQpfFx9fboSzDUbVfirBbC/out-0.webp" ], "started_at": "2024-08-31T14:13:17.000789Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/9q3tngv9anrm60chn3482qspz8", "cancel": "https://api.replicate.com/v1/predictions/9q3tngv9anrm60chn3482qspz8/cancel" }, "version": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83" }
Generated inUsing seed: 45233 Prompt: a GOGOPH image of a gopher as a munic oktoberfest visitor txt2img mode Using dev model free=9270160113664 Downloading weights 2024-08-31T14:13:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0hecr79z/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar 2024-08-31T14:13:18Z | INFO | [ Complete ] dest=/tmp/tmp0hecr79z/weights size="172 MB" total_elapsed=1.482s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar Downloaded weights in 1.51s Loaded LoRAs in 18.15s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.96it/s] 7%|▋ | 2/28 [00:00<00:06, 3.79it/s] 11%|█ | 3/28 [00:00<00:06, 3.74it/s] 14%|█▍ | 4/28 [00:01<00:06, 3.72it/s] 18%|█▊ | 5/28 [00:01<00:06, 3.71it/s] 21%|██▏ | 6/28 [00:01<00:05, 3.70it/s] 25%|██▌ | 7/28 [00:01<00:05, 3.70it/s] 29%|██▊ | 8/28 [00:02<00:05, 3.69it/s] 32%|███▏ | 9/28 [00:02<00:05, 3.69it/s] 36%|███▌ | 10/28 [00:02<00:04, 3.69it/s] 39%|███▉ | 11/28 [00:02<00:04, 3.69it/s] 43%|████▎ | 12/28 [00:03<00:04, 3.69it/s] 46%|████▋ | 13/28 [00:03<00:04, 3.69it/s] 50%|█████ | 14/28 [00:03<00:03, 3.69it/s] 54%|█████▎ | 15/28 [00:04<00:03, 3.69it/s] 57%|█████▋ | 16/28 [00:04<00:03, 3.69it/s] 61%|██████ | 17/28 [00:04<00:02, 3.69it/s] 64%|██████▍ | 18/28 [00:04<00:02, 3.69it/s] 68%|██████▊ | 19/28 [00:05<00:02, 3.69it/s] 71%|███████▏ | 20/28 [00:05<00:02, 3.69it/s] 75%|███████▌ | 21/28 [00:05<00:01, 3.68it/s] 79%|███████▊ | 22/28 [00:05<00:01, 3.69it/s] 82%|████████▏ | 23/28 [00:06<00:01, 3.69it/s] 86%|████████▌ | 24/28 [00:06<00:01, 3.69it/s] 89%|████████▉ | 25/28 [00:06<00:00, 3.68it/s] 93%|█████████▎| 26/28 [00:07<00:00, 3.69it/s] 96%|█████████▋| 27/28 [00:07<00:00, 3.69it/s] 100%|██████████| 28/28 [00:07<00:00, 3.69it/s] 100%|██████████| 28/28 [00:07<00:00, 3.68it/s]
Prediction
cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83IDe6pg7v5eghrm00chxast1k4868StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word "YOLO"
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word \"YOLO\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", { input: { model: "dev", prompt: "a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word \"YOLO\"", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 80, prompt_strength: 0.8, extra_lora_scale: 0.8, num_inference_steps: 28 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", input={ "model": "dev", "prompt": "a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word \"YOLO\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cdreier/golang-gopher-flux 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": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", "input": { "model": "dev", "prompt": "a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word \\"YOLO\\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-13T09:26:56.705573Z", "created_at": "2024-09-13T09:25:29.860000Z", "data_removed": false, "error": null, "id": "e6pg7v5eghrm00chxast1k4868", "input": { "model": "dev", "prompt": "a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word \"YOLO\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Using seed: 63102\nPrompt: a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word \"YOLO\"\n[!] txt2img mode\nUsing dev model\nfree=7136672653312\nDownloading weights\n2024-09-13T09:25:29Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpvr1ff3l0/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\n2024-09-13T09:25:32Z | INFO | [ Complete ] dest=/tmp/tmpvr1ff3l0/weights size=\"172 MB\" total_elapsed=3.052s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\nDownloaded weights in 3.09s\nLoaded LoRAs in 79.07s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:07, 3.74it/s]\n 7%|▋ | 2/28 [00:00<00:06, 4.23it/s]\n 11%|█ | 3/28 [00:00<00:06, 3.99it/s]\n 14%|█▍ | 4/28 [00:01<00:06, 3.89it/s]\n 18%|█▊ | 5/28 [00:01<00:05, 3.84it/s]\n 21%|██▏ | 6/28 [00:01<00:05, 3.81it/s]\n 25%|██▌ | 7/28 [00:01<00:05, 3.79it/s]\n 29%|██▊ | 8/28 [00:02<00:05, 3.78it/s]\n 32%|███▏ | 9/28 [00:02<00:05, 3.77it/s]\n 36%|███▌ | 10/28 [00:02<00:04, 3.76it/s]\n 39%|███▉ | 11/28 [00:02<00:04, 3.75it/s]\n 43%|████▎ | 12/28 [00:03<00:04, 3.75it/s]\n 46%|████▋ | 13/28 [00:03<00:03, 3.75it/s]\n 50%|█████ | 14/28 [00:03<00:03, 3.75it/s]\n 54%|█████▎ | 15/28 [00:03<00:03, 3.75it/s]\n 57%|█████▋ | 16/28 [00:04<00:03, 3.75it/s]\n 61%|██████ | 17/28 [00:04<00:02, 3.75it/s]\n 64%|██████▍ | 18/28 [00:04<00:02, 3.75it/s]\n 68%|██████▊ | 19/28 [00:05<00:02, 3.75it/s]\n 71%|███████▏ | 20/28 [00:05<00:02, 3.73it/s]\n 75%|███████▌ | 21/28 [00:05<00:01, 3.73it/s]\n 79%|███████▊ | 22/28 [00:05<00:01, 3.73it/s]\n 82%|████████▏ | 23/28 [00:06<00:01, 3.73it/s]\n 86%|████████▌ | 24/28 [00:06<00:01, 3.73it/s]\n 89%|████████▉ | 25/28 [00:06<00:00, 3.73it/s]\n 93%|█████████▎| 26/28 [00:06<00:00, 3.74it/s]\n 96%|█████████▋| 27/28 [00:07<00:00, 3.74it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.74it/s]\n100%|██████████| 28/28 [00:07<00:00, 3.77it/s]", "metrics": { "predict_time": 86.835458084, "total_time": 86.845573 }, "output": [ "https://replicate.delivery/yhqm/cemA1Q2XvqQNHytSrgLXaDnZqc4RRMU8EOfj540pqfpA724mA/out-0.webp" ], "started_at": "2024-09-13T09:25:29.870115Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/e6pg7v5eghrm00chxast1k4868", "cancel": "https://api.replicate.com/v1/predictions/e6pg7v5eghrm00chxast1k4868/cancel" }, "version": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83" }
Generated inUsing seed: 63102 Prompt: a GOGOPH image of a blue gopher standing in the rain, holding a sign with the word "YOLO" [!] txt2img mode Using dev model free=7136672653312 Downloading weights 2024-09-13T09:25:29Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpvr1ff3l0/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar 2024-09-13T09:25:32Z | INFO | [ Complete ] dest=/tmp/tmpvr1ff3l0/weights size="172 MB" total_elapsed=3.052s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar Downloaded weights in 3.09s Loaded LoRAs in 79.07s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:07, 3.74it/s] 7%|▋ | 2/28 [00:00<00:06, 4.23it/s] 11%|█ | 3/28 [00:00<00:06, 3.99it/s] 14%|█▍ | 4/28 [00:01<00:06, 3.89it/s] 18%|█▊ | 5/28 [00:01<00:05, 3.84it/s] 21%|██▏ | 6/28 [00:01<00:05, 3.81it/s] 25%|██▌ | 7/28 [00:01<00:05, 3.79it/s] 29%|██▊ | 8/28 [00:02<00:05, 3.78it/s] 32%|███▏ | 9/28 [00:02<00:05, 3.77it/s] 36%|███▌ | 10/28 [00:02<00:04, 3.76it/s] 39%|███▉ | 11/28 [00:02<00:04, 3.75it/s] 43%|████▎ | 12/28 [00:03<00:04, 3.75it/s] 46%|████▋ | 13/28 [00:03<00:03, 3.75it/s] 50%|█████ | 14/28 [00:03<00:03, 3.75it/s] 54%|█████▎ | 15/28 [00:03<00:03, 3.75it/s] 57%|█████▋ | 16/28 [00:04<00:03, 3.75it/s] 61%|██████ | 17/28 [00:04<00:02, 3.75it/s] 64%|██████▍ | 18/28 [00:04<00:02, 3.75it/s] 68%|██████▊ | 19/28 [00:05<00:02, 3.75it/s] 71%|███████▏ | 20/28 [00:05<00:02, 3.73it/s] 75%|███████▌ | 21/28 [00:05<00:01, 3.73it/s] 79%|███████▊ | 22/28 [00:05<00:01, 3.73it/s] 82%|████████▏ | 23/28 [00:06<00:01, 3.73it/s] 86%|████████▌ | 24/28 [00:06<00:01, 3.73it/s] 89%|████████▉ | 25/28 [00:06<00:00, 3.73it/s] 93%|█████████▎| 26/28 [00:06<00:00, 3.74it/s] 96%|█████████▋| 27/28 [00:07<00:00, 3.74it/s] 100%|██████████| 28/28 [00:07<00:00, 3.74it/s] 100%|██████████| 28/28 [00:07<00:00, 3.77it/s]
Prediction
cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83IDbeqzzsa85hrma0cmbxr9spxr7gStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a GOGOPH image of a gopher as an 80s rock star, whisky bottle, on stage, bright lights
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "a GOGOPH image of a gopher as an 80s rock star, whisky bottle, on stage, bright lights", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", { input: { model: "dev", prompt: "a GOGOPH image of a gopher as an 80s rock star, whisky bottle, on stage, bright lights", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 80, prompt_strength: 0.8, extra_lora_scale: 0.8, num_inference_steps: 28 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", input={ "model": "dev", "prompt": "a GOGOPH image of a gopher as an 80s rock star, whisky bottle, on stage, bright lights", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cdreier/golang-gopher-flux 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": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher as an 80s rock star, whisky bottle, on stage, bright lights", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-01-13T11:33:11.456573Z", "created_at": "2025-01-13T11:33:01.612000Z", "data_removed": false, "error": null, "id": "beqzzsa85hrma0cmbxr9spxr7g", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher as an 80s rock star, whisky bottle, on stage, bright lights", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "2025-01-13 11:33:03.189 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2025-01-13 11:33:03.190 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2732.37it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2692.94it/s]\n2025-01-13 11:33:03.303 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s\nfree=29068143558656\nDownloading weights\n2025-01-13T11:33:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpejnlzmu4/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\n2025-01-13T11:33:05Z | INFO | [ Complete ] dest=/tmp/tmpejnlzmu4/weights size=\"172 MB\" total_elapsed=1.685s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar\nDownloaded weights in 1.71s\n2025-01-13 11:33:05.015 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/9309d5dcc6116c38\n2025-01-13 11:33:05.086 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2025-01-13 11:33:05.087 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2025-01-13 11:33:05.087 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2737.09it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2696.76it/s]\n2025-01-13 11:33:05.200 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.18s\nUsing seed: 60231\n0it [00:00, ?it/s]\n1it [00:00, 8.33it/s]\n2it [00:00, 5.77it/s]\n3it [00:00, 5.25it/s]\n4it [00:00, 5.04it/s]\n5it [00:00, 4.88it/s]\n6it [00:01, 4.81it/s]\n7it [00:01, 4.78it/s]\n8it [00:01, 4.75it/s]\n9it [00:01, 4.74it/s]\n10it [00:02, 4.72it/s]\n11it [00:02, 4.71it/s]\n12it [00:02, 4.71it/s]\n13it [00:02, 4.71it/s]\n14it [00:02, 4.70it/s]\n15it [00:03, 4.71it/s]\n16it [00:03, 4.72it/s]\n17it [00:03, 4.71it/s]\n18it [00:03, 4.71it/s]\n19it [00:03, 4.69it/s]\n20it [00:04, 4.69it/s]\n21it [00:04, 4.70it/s]\n22it [00:04, 4.70it/s]\n23it [00:04, 4.70it/s]\n24it [00:05, 4.70it/s]\n25it [00:05, 4.69it/s]\n26it [00:05, 4.68it/s]\n27it [00:05, 4.69it/s]\n28it [00:05, 4.69it/s]\n28it [00:05, 4.77it/s]\nTotal safe images: 1 out of 1", "metrics": { "predict_time": 8.266245341, "total_time": 9.844573 }, "output": [ "https://replicate.delivery/xezq/rXIizmzgtyKPAlDfWqYBFXqrm7KRzHeU7qA3HN2CNYeufqSQB/out-0.webp" ], "started_at": "2025-01-13T11:33:03.190328Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-j7ru5yo6ntrtarvpfvazkble7ulfn5x2c3bdd446syoswvh4a44q", "get": "https://api.replicate.com/v1/predictions/beqzzsa85hrma0cmbxr9spxr7g", "cancel": "https://api.replicate.com/v1/predictions/beqzzsa85hrma0cmbxr9spxr7g/cancel" }, "version": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83" }
Generated in2025-01-13 11:33:03.189 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2025-01-13 11:33:03.190 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2732.37it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2692.94it/s] 2025-01-13 11:33:03.303 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s free=29068143558656 Downloading weights 2025-01-13T11:33:03Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpejnlzmu4/weights url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar 2025-01-13T11:33:05Z | INFO | [ Complete ] dest=/tmp/tmpejnlzmu4/weights size="172 MB" total_elapsed=1.685s url=https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar Downloaded weights in 1.71s 2025-01-13 11:33:05.015 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/9309d5dcc6116c38 2025-01-13 11:33:05.086 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded 2025-01-13 11:33:05.087 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys 2025-01-13 11:33:05.087 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s] Applying LoRA: 90%|█████████ | 275/304 [00:00<00:00, 2737.09it/s] Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2696.76it/s] 2025-01-13 11:33:05.200 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.18s Using seed: 60231 0it [00:00, ?it/s] 1it [00:00, 8.33it/s] 2it [00:00, 5.77it/s] 3it [00:00, 5.25it/s] 4it [00:00, 5.04it/s] 5it [00:00, 4.88it/s] 6it [00:01, 4.81it/s] 7it [00:01, 4.78it/s] 8it [00:01, 4.75it/s] 9it [00:01, 4.74it/s] 10it [00:02, 4.72it/s] 11it [00:02, 4.71it/s] 12it [00:02, 4.71it/s] 13it [00:02, 4.71it/s] 14it [00:02, 4.70it/s] 15it [00:03, 4.71it/s] 16it [00:03, 4.72it/s] 17it [00:03, 4.71it/s] 18it [00:03, 4.71it/s] 19it [00:03, 4.69it/s] 20it [00:04, 4.69it/s] 21it [00:04, 4.70it/s] 22it [00:04, 4.70it/s] 23it [00:04, 4.70it/s] 24it [00:05, 4.70it/s] 25it [00:05, 4.69it/s] 26it [00:05, 4.68it/s] 27it [00:05, 4.69it/s] 28it [00:05, 4.69it/s] 28it [00:05, 4.77it/s] Total safe images: 1 out of 1
Prediction
cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83ID21n66ma9ssrm80cmbxks30y9swStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- a GOGOPH image of a gopher disguised as opera singer
- go_fast
- lora_scale
- 1
- megapixels
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- webp
- guidance_scale
- 3.5
- output_quality
- 80
- prompt_strength
- 0.8
- extra_lora_scale
- 0.8
- num_inference_steps
- 28
{ "model": "dev", "prompt": "a GOGOPH image of a gopher disguised as opera singer", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", { input: { model: "dev", prompt: "a GOGOPH image of a gopher disguised as opera singer", go_fast: false, lora_scale: 1, megapixels: "1", num_outputs: 1, aspect_ratio: "1:1", output_format: "webp", guidance_scale: 3.5, output_quality: 80, prompt_strength: 0.8, extra_lora_scale: 0.8, num_inference_steps: 28 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cdreier/golang-gopher-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cdreier/golang-gopher-flux:b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", input={ "model": "dev", "prompt": "a GOGOPH image of a gopher disguised as opera singer", "go_fast": False, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run cdreier/golang-gopher-flux 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": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher disguised as opera singer", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-01-13T11:23:18.250982Z", "created_at": "2025-01-13T11:23:12.206000Z", "data_removed": false, "error": null, "id": "21n66ma9ssrm80cmbxks30y9sw", "input": { "model": "dev", "prompt": "a GOGOPH image of a gopher disguised as opera singer", "go_fast": false, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 3.5, "output_quality": 80, "prompt_strength": 0.8, "extra_lora_scale": 0.8, "num_inference_steps": 28 }, "logs": "Lora https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar already loaded\nUsing seed: 10111\n0it [00:00, ?it/s]\n1it [00:00, 8.40it/s]\n2it [00:00, 5.89it/s]\n3it [00:00, 5.36it/s]\n4it [00:00, 5.14it/s]\n5it [00:00, 5.02it/s]\n6it [00:01, 4.92it/s]\n7it [00:01, 4.88it/s]\n8it [00:01, 4.86it/s]\n9it [00:01, 4.85it/s]\n10it [00:01, 4.84it/s]\n11it [00:02, 4.82it/s]\n12it [00:02, 4.82it/s]\n13it [00:02, 4.82it/s]\n14it [00:02, 4.82it/s]\n15it [00:03, 4.81it/s]\n16it [00:03, 4.81it/s]\n17it [00:03, 4.81it/s]\n18it [00:03, 4.82it/s]\n19it [00:03, 4.82it/s]\n20it [00:04, 4.82it/s]\n21it [00:04, 4.82it/s]\n22it [00:04, 4.82it/s]\n23it [00:04, 4.82it/s]\n24it [00:04, 4.82it/s]\n25it [00:05, 4.82it/s]\n26it [00:05, 4.81it/s]\n27it [00:05, 4.81it/s]\n28it [00:05, 4.81it/s]\n28it [00:05, 4.89it/s]\nTotal safe images: 1 out of 1", "metrics": { "predict_time": 6.03863686, "total_time": 6.044982 }, "output": [ "https://replicate.delivery/xezq/DQ7nZmcnIb5bOxvNbsjdgkPRfDTsQQewwJ11XHuN1IDmmqEUA/out-0.webp" ], "started_at": "2025-01-13T11:23:12.212345Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-dpvk5am36uassxysgzuydfiunqj5wleyujrq7aadrsg4d5xnk7ca", "get": "https://api.replicate.com/v1/predictions/21n66ma9ssrm80cmbxks30y9sw", "cancel": "https://api.replicate.com/v1/predictions/21n66ma9ssrm80cmbxks30y9sw/cancel" }, "version": "b2e5b004d467b151869b7d5ab197ff3efa280b8ef7f297868c3a290051394b83" }
Generated inLora https://replicate.delivery/yhqm/zY4NYfklaxUMXKM5wMlQmfpXB5kAArUNXfN15HsOxPnD5UwmA/trained_model.tar already loaded Using seed: 10111 0it [00:00, ?it/s] 1it [00:00, 8.40it/s] 2it [00:00, 5.89it/s] 3it [00:00, 5.36it/s] 4it [00:00, 5.14it/s] 5it [00:00, 5.02it/s] 6it [00:01, 4.92it/s] 7it [00:01, 4.88it/s] 8it [00:01, 4.86it/s] 9it [00:01, 4.85it/s] 10it [00:01, 4.84it/s] 11it [00:02, 4.82it/s] 12it [00:02, 4.82it/s] 13it [00:02, 4.82it/s] 14it [00:02, 4.82it/s] 15it [00:03, 4.81it/s] 16it [00:03, 4.81it/s] 17it [00:03, 4.81it/s] 18it [00:03, 4.82it/s] 19it [00:03, 4.82it/s] 20it [00:04, 4.82it/s] 21it [00:04, 4.82it/s] 22it [00:04, 4.82it/s] 23it [00:04, 4.82it/s] 24it [00:04, 4.82it/s] 25it [00:05, 4.82it/s] 26it [00:05, 4.81it/s] 27it [00:05, 4.81it/s] 28it [00:05, 4.81it/s] 28it [00:05, 4.89it/s] Total safe images: 1 out of 1
Want to make some of these yourself?
Run this model