Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
authbyte /flux-funko-pop:5bf170cc
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run authbyte/flux-funko-pop using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"authbyte/flux-funko-pop:5bf170ccf18c3fb0ae11b4232c8f45a793ba2c4b6f19f825b9cb336bbb652655",
{
input: {
model: "dev",
prompt: "FUNKO of a woman dressed in a suit",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run authbyte/flux-funko-pop using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"authbyte/flux-funko-pop:5bf170ccf18c3fb0ae11b4232c8f45a793ba2c4b6f19f825b9cb336bbb652655",
input={
"model": "dev",
"prompt": "FUNKO of a woman dressed in a suit",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run authbyte/flux-funko-pop 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": "authbyte/flux-funko-pop:5bf170ccf18c3fb0ae11b4232c8f45a793ba2c4b6f19f825b9cb336bbb652655",
"input": {
"model": "dev",
"prompt": "FUNKO of a woman dressed in a suit",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-12-29T00:39:07.834838Z",
"created_at": "2024-12-29T00:39:01.255000Z",
"data_removed": false,
"error": null,
"id": "mc48ps91gxrmc0cm1zd8emd9jr",
"input": {
"model": "dev",
"prompt": "FUNKO of a woman dressed in a suit",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "2024-12-29 00:39:01.421 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-29 00:39:01.422 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 93%|█████████▎| 283/304 [00:00<00:00, 2827.72it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2742.25it/s]\n2024-12-29 00:39:01.533 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s\n2024-12-29 00:39:01.534 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/a0dc7bb4c4fc7909\n2024-12-29 00:39:01.655 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2024-12-29 00:39:01.655 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-29 00:39:01.655 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 93%|█████████▎| 284/304 [00:00<00:00, 2827.46it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2745.28it/s]\n2024-12-29 00:39:01.766 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.23s\nUsing seed: 19160\n0it [00:00, ?it/s]\n1it [00:00, 8.37it/s]\n2it [00:00, 5.86it/s]\n3it [00:00, 5.34it/s]\n4it [00:00, 5.13it/s]\n5it [00:00, 5.01it/s]\n6it [00:01, 4.92it/s]\n7it [00:01, 4.88it/s]\n8it [00:01, 4.87it/s]\n9it [00:01, 4.87it/s]\n10it [00:01, 4.85it/s]\n11it [00:02, 4.84it/s]\n12it [00:02, 4.84it/s]\n13it [00:02, 4.83it/s]\n14it [00:02, 4.83it/s]\n15it [00:03, 4.83it/s]\n16it [00:03, 4.82it/s]\n17it [00:03, 4.81it/s]\n18it [00:03, 4.81it/s]\n19it [00:03, 4.81it/s]\n20it [00:04, 4.81it/s]\n21it [00:04, 4.81it/s]\n22it [00:04, 4.81it/s]\n23it [00:04, 4.81it/s]\n24it [00:04, 4.81it/s]\n25it [00:05, 4.81it/s]\n26it [00:05, 4.82it/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.412236085,
"total_time": 6.579838
},
"output": [
"https://replicate.delivery/xezq/oQs4dSpfhu3GH6xw7tq3DDfqTMzJQe8tZrNdUJTtzibWhJfPB/out-0.webp"
],
"started_at": "2024-12-29T00:39:01.422602Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-c2lkx7spiypyqhcuiqoyoutonbwdij6lc7ixvf7xasjizqylqzxa",
"get": "https://api.replicate.com/v1/predictions/mc48ps91gxrmc0cm1zd8emd9jr",
"cancel": "https://api.replicate.com/v1/predictions/mc48ps91gxrmc0cm1zd8emd9jr/cancel"
},
"version": "5bf170ccf18c3fb0ae11b4232c8f45a793ba2c4b6f19f825b9cb336bbb652655"
}
2024-12-29 00:39:01.421 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2024-12-29 00:39:01.422 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 93%|█████████▎| 283/304 [00:00<00:00, 2827.72it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2742.25it/s]
2024-12-29 00:39:01.533 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s
2024-12-29 00:39:01.534 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/a0dc7bb4c4fc7909
2024-12-29 00:39:01.655 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded
2024-12-29 00:39:01.655 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2024-12-29 00:39:01.655 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 93%|█████████▎| 284/304 [00:00<00:00, 2827.46it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2745.28it/s]
2024-12-29 00:39:01.766 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.23s
Using seed: 19160
0it [00:00, ?it/s]
1it [00:00, 8.37it/s]
2it [00:00, 5.86it/s]
3it [00:00, 5.34it/s]
4it [00:00, 5.13it/s]
5it [00:00, 5.01it/s]
6it [00:01, 4.92it/s]
7it [00:01, 4.88it/s]
8it [00:01, 4.87it/s]
9it [00:01, 4.87it/s]
10it [00:01, 4.85it/s]
11it [00:02, 4.84it/s]
12it [00:02, 4.84it/s]
13it [00:02, 4.83it/s]
14it [00:02, 4.83it/s]
15it [00:03, 4.83it/s]
16it [00:03, 4.82it/s]
17it [00:03, 4.81it/s]
18it [00:03, 4.81it/s]
19it [00:03, 4.81it/s]
20it [00:04, 4.81it/s]
21it [00:04, 4.81it/s]
22it [00:04, 4.81it/s]
23it [00:04, 4.81it/s]
24it [00:04, 4.81it/s]
25it [00:05, 4.81it/s]
26it [00:05, 4.82it/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