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.
justmalhar /flux-mobile-ui:1bf33620
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run justmalhar/flux-mobile-ui using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"justmalhar/flux-mobile-ui:1bf3362039a0ba88a625bff817a559bd8466428ae5a357e172fabfd4fe066fdf",
{
input: {
model: "dev",
prompt: "MOBIUI containing a Maps navigation app screen, map view with direction options, bottom navigation bar, remaining time, routes, step by step directions, app ui, mobile user interface, user interface, ",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 4,
aspect_ratio: "9:16",
output_format: "jpg",
guidance_scale: 3.5,
output_quality: 100,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 25
}
}
);
console.log(output);
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 justmalhar/flux-mobile-ui using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"justmalhar/flux-mobile-ui:1bf3362039a0ba88a625bff817a559bd8466428ae5a357e172fabfd4fe066fdf",
input={
"model": "dev",
"prompt": "MOBIUI containing a Maps navigation app screen, map view with direction options, bottom navigation bar, remaining time, routes, step by step directions, app ui, mobile user interface, user interface, ",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 25
}
)
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 justmalhar/flux-mobile-ui 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": "1bf3362039a0ba88a625bff817a559bd8466428ae5a357e172fabfd4fe066fdf",
"input": {
"model": "dev",
"prompt": "MOBIUI containing a Maps navigation app screen, map view with direction options, bottom navigation bar, remaining time, routes, step by step directions, app ui, mobile user interface, user interface, ",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 4,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 25
}
}' \
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-08-23T10:28:45.477415Z",
"created_at": "2024-08-23T10:28:07.544000Z",
"data_removed": false,
"error": null,
"id": "ze1rg8vrz1rm20chfv3vbp99fg",
"input": {
"model": "dev",
"prompt": "MOBIUI containing a Maps navigation app screen, map view with direction options, bottom navigation bar, remaining time, routes, step by step directions, app ui, mobile user interface, user interface, ",
"lora_scale": 1,
"num_outputs": 4,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 100,
"num_inference_steps": 25
},
"logs": "Using seed: 41563\nPrompt: MOBIUI containing a Maps navigation app screen, map view with direction options, bottom navigation bar, remaining time, routes, step by step directions, app ui, mobile user interface, user interface,\ntxt2img mode\nUsing dev model\nLoading LoRA weights\nEnsuring enough disk space...\nFree disk space: 9733519069184\nDownloading weights\n2024-08-23T10:28:07Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/2c8f74d277701d7c url=https://replicate.delivery/yhqm/v6e5FP2DnMTdf0VlCxKJBG0WC5yJB5UC1n2LwkzSlEsw1gVTA/trained_model.tar\n2024-08-23T10:28:10Z | INFO | [ Complete ] dest=/src/weights-cache/2c8f74d277701d7c size=\"181 MB\" total_elapsed=2.569s url=https://replicate.delivery/yhqm/v6e5FP2DnMTdf0VlCxKJBG0WC5yJB5UC1n2LwkzSlEsw1gVTA/trained_model.tar\nb''\nDownloaded weights in 2.6016786098480225 seconds\nLoRA weights loaded successfully\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:23, 1.00it/s]\n 8%|▊ | 2/25 [00:01<00:20, 1.15it/s]\n 12%|█▏ | 3/25 [00:02<00:20, 1.08it/s]\n 16%|█▌ | 4/25 [00:03<00:20, 1.05it/s]\n 20%|██ | 5/25 [00:04<00:19, 1.03it/s]\n 24%|██▍ | 6/25 [00:05<00:18, 1.02it/s]\n 28%|██▊ | 7/25 [00:06<00:17, 1.01it/s]\n 32%|███▏ | 8/25 [00:07<00:16, 1.01it/s]\n 36%|███▌ | 9/25 [00:08<00:15, 1.00it/s]\n 40%|████ | 10/25 [00:09<00:14, 1.00it/s]\n 44%|████▍ | 11/25 [00:10<00:13, 1.00it/s]\n 48%|████▊ | 12/25 [00:11<00:12, 1.00it/s]\n 52%|█████▏ | 13/25 [00:12<00:11, 1.00it/s]\n 56%|█████▌ | 14/25 [00:13<00:11, 1.00s/it]\n 60%|██████ | 15/25 [00:14<00:10, 1.00s/it]\n 64%|██████▍ | 16/25 [00:15<00:09, 1.00s/it]\n 68%|██████▊ | 17/25 [00:16<00:08, 1.00s/it]\n 72%|███████▏ | 18/25 [00:17<00:07, 1.00s/it]\n 76%|███████▌ | 19/25 [00:18<00:06, 1.00s/it]\n 80%|████████ | 20/25 [00:19<00:05, 1.00s/it]\n 84%|████████▍ | 21/25 [00:20<00:04, 1.00s/it]\n 88%|████████▊ | 22/25 [00:21<00:03, 1.00s/it]\n 92%|█████████▏| 23/25 [00:22<00:02, 1.00s/it]\n 96%|█████████▌| 24/25 [00:23<00:01, 1.01s/it]\n100%|██████████| 25/25 [00:24<00:00, 1.01s/it]\n100%|██████████| 25/25 [00:24<00:00, 1.01it/s]",
"metrics": {
"predict_time": 37.919399939,
"total_time": 37.933415
},
"output": [
"https://replicate.delivery/yhqm/5YYlxvecys0TV6wlwjfezfV2prwvRy3XvMEfEMTaB4MqLLsaC/out-0.jpg",
"https://replicate.delivery/yhqm/DvIxC5BYxdalFJeYhC5PrYAvUllGf5x0P9xJSXdYBBydZhVTA/out-1.jpg",
"https://replicate.delivery/yhqm/4SuEjyUf3h05F6n7VFwVeM6pULMh8mZtUaRo6KRhctrdZhVTA/out-2.jpg",
"https://replicate.delivery/yhqm/mndEEnSDR46qJBMFHjOgwITCA4WHUmVOjcqz0AGBbKQXWY1E/out-3.jpg"
],
"started_at": "2024-08-23T10:28:07.558015Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ze1rg8vrz1rm20chfv3vbp99fg",
"cancel": "https://api.replicate.com/v1/predictions/ze1rg8vrz1rm20chfv3vbp99fg/cancel"
},
"version": "1bf3362039a0ba88a625bff817a559bd8466428ae5a357e172fabfd4fe066fdf"
}
Using seed: 41563
Prompt: MOBIUI containing a Maps navigation app screen, map view with direction options, bottom navigation bar, remaining time, routes, step by step directions, app ui, mobile user interface, user interface,
txt2img mode
Using dev model
Loading LoRA weights
Ensuring enough disk space...
Free disk space: 9733519069184
Downloading weights
2024-08-23T10:28:07Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/2c8f74d277701d7c url=https://replicate.delivery/yhqm/v6e5FP2DnMTdf0VlCxKJBG0WC5yJB5UC1n2LwkzSlEsw1gVTA/trained_model.tar
2024-08-23T10:28:10Z | INFO | [ Complete ] dest=/src/weights-cache/2c8f74d277701d7c size="181 MB" total_elapsed=2.569s url=https://replicate.delivery/yhqm/v6e5FP2DnMTdf0VlCxKJBG0WC5yJB5UC1n2LwkzSlEsw1gVTA/trained_model.tar
b''
Downloaded weights in 2.6016786098480225 seconds
LoRA weights loaded successfully
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:23, 1.00it/s]
8%|▊ | 2/25 [00:01<00:20, 1.15it/s]
12%|█▏ | 3/25 [00:02<00:20, 1.08it/s]
16%|█▌ | 4/25 [00:03<00:20, 1.05it/s]
20%|██ | 5/25 [00:04<00:19, 1.03it/s]
24%|██▍ | 6/25 [00:05<00:18, 1.02it/s]
28%|██▊ | 7/25 [00:06<00:17, 1.01it/s]
32%|███▏ | 8/25 [00:07<00:16, 1.01it/s]
36%|███▌ | 9/25 [00:08<00:15, 1.00it/s]
40%|████ | 10/25 [00:09<00:14, 1.00it/s]
44%|████▍ | 11/25 [00:10<00:13, 1.00it/s]
48%|████▊ | 12/25 [00:11<00:12, 1.00it/s]
52%|█████▏ | 13/25 [00:12<00:11, 1.00it/s]
56%|█████▌ | 14/25 [00:13<00:11, 1.00s/it]
60%|██████ | 15/25 [00:14<00:10, 1.00s/it]
64%|██████▍ | 16/25 [00:15<00:09, 1.00s/it]
68%|██████▊ | 17/25 [00:16<00:08, 1.00s/it]
72%|███████▏ | 18/25 [00:17<00:07, 1.00s/it]
76%|███████▌ | 19/25 [00:18<00:06, 1.00s/it]
80%|████████ | 20/25 [00:19<00:05, 1.00s/it]
84%|████████▍ | 21/25 [00:20<00:04, 1.00s/it]
88%|████████▊ | 22/25 [00:21<00:03, 1.00s/it]
92%|█████████▏| 23/25 [00:22<00:02, 1.00s/it]
96%|█████████▌| 24/25 [00:23<00:01, 1.01s/it]
100%|██████████| 25/25 [00:24<00:00, 1.01s/it]
100%|██████████| 25/25 [00:24<00:00, 1.01it/s]