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: "schnell",
prompt: "MOBIUI containing a ai music generation app with music player , playlist, card ui, apple ui, ios, app ui, mobile application UI, user interface design, website ui design, ios application ui, 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: 4
}
}
);
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": "schnell",
"prompt": "MOBIUI containing a ai music generation app with music player , playlist, card ui, apple ui, ios, app ui, mobile application UI, user interface design, website ui design, ios application ui, 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": 4
}
)
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": "schnell",
"prompt": "MOBIUI containing a ai music generation app with music player , playlist, card ui, apple ui, ios, app ui, mobile application UI, user interface design, website ui design, ios application ui, 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": 4
}
}' \
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-24T20:07:53.966757Z",
"created_at": "2024-08-24T20:07:16.803000Z",
"data_removed": false,
"error": null,
"id": "mcrhhsgg8drm40chgr0bkkdhrw",
"input": {
"model": "schnell",
"prompt": "MOBIUI containing a ai music generation app with music player , playlist, card ui, apple ui, ios, app ui, mobile application UI, user interface design, website ui design, ios application ui, 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": 4
},
"logs": "Using seed: 33151\nPrompt: MOBIUI containing a ai music generation app with music player , playlist, card ui, apple ui, ios, app ui, mobile application UI, user interface design, website ui design, ios application ui, user interface\ntxt2img mode\nUsing schnell model\nLoaded LoRAs in 9.51s\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:02, 1.09it/s]\n 50%|█████ | 2/4 [00:01<00:01, 1.24it/s]\n 75%|███████▌ | 3/4 [00:02<00:00, 1.16it/s]\n100%|██████████| 4/4 [00:03<00:00, 1.13it/s]\n100%|██████████| 4/4 [00:03<00:00, 1.14it/s]",
"metrics": {
"predict_time": 14.321665237,
"total_time": 37.163757
},
"output": [
"https://replicate.delivery/yhqm/d1XhJBGfyCUKfEJPGQQWGOawymzHE4DzF0LuKWbVErpZe9rmA/out-0.jpg",
"https://replicate.delivery/yhqm/puPGYBS2IO70Nh9Skw8wm2KeLLVSm9RpfEto68ce8Fwy89rmA/out-1.jpg",
"https://replicate.delivery/yhqm/fl1u0Qp5Ca0gESOWbfWR0Ucm8DX4AVTKOPPL0xq072fy89rmA/out-2.jpg",
"https://replicate.delivery/yhqm/398IGzF1LjImHVfuM1vLe1EYPjzOXkxIQfYTUQSvLvyy89rmA/out-3.jpg"
],
"started_at": "2024-08-24T20:07:39.645091Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/mcrhhsgg8drm40chgr0bkkdhrw",
"cancel": "https://api.replicate.com/v1/predictions/mcrhhsgg8drm40chgr0bkkdhrw/cancel"
},
"version": "1bf3362039a0ba88a625bff817a559bd8466428ae5a357e172fabfd4fe066fdf"
}
Using seed: 33151
Prompt: MOBIUI containing a ai music generation app with music player , playlist, card ui, apple ui, ios, app ui, mobile application UI, user interface design, website ui design, ios application ui, user interface
txt2img mode
Using schnell model
Loaded LoRAs in 9.51s
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:00<00:02, 1.09it/s]
50%|█████ | 2/4 [00:01<00:01, 1.24it/s]
75%|███████▌ | 3/4 [00:02<00:00, 1.16it/s]
100%|██████████| 4/4 [00:03<00:00, 1.13it/s]
100%|██████████| 4/4 [00:03<00:00, 1.14it/s]