Prediction
black-forest-labs/flux-1.1-pro-ultraOfficial model
ID
mxg89ntj9hrm80cms1qa2dt898
Status
Succeeded
Source
Web
Total duration
Created
by @ltejedor
Input
- raw
- prompt
- photograph of a fancy wooden chair, black background
- aspect_ratio
- 4:5
- output_format
- jpg
- safety_tolerance
- 2
- image_prompt_strength
- 0.1
{
"raw": false,
"prompt": "photograph of a fancy wooden chair, black background",
"aspect_ratio": "4:5",
"output_format": "jpg",
"safety_tolerance": 2,
"image_prompt_strength": 0.1
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run black-forest-labs/flux-1.1-pro-ultra using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
raw: false,
prompt: "photograph of a fancy wooden chair, black background",
aspect_ratio: "4:5",
output_format: "jpg",
safety_tolerance: 2,
image_prompt_strength: 0.1
};
const output = await replicate.run("black-forest-labs/flux-1.1-pro-ultra", { input });
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
import replicate
Run black-forest-labs/flux-1.1-pro-ultra using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"black-forest-labs/flux-1.1-pro-ultra",
input={
"raw": False,
"prompt": "photograph of a fancy wooden chair, black background",
"aspect_ratio": "4:5",
"output_format": "jpg",
"safety_tolerance": 2,
"image_prompt_strength": 0.1
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-1.1-pro-ultra 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 $'{
"input": {
"raw": false,
"prompt": "photograph of a fancy wooden chair, black background",
"aspect_ratio": "4:5",
"output_format": "jpg",
"safety_tolerance": 2,
"image_prompt_strength": 0.1
}
}' \
https://api.replicate.com/v1/models/black-forest-labs/flux-1.1-pro-ultra/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2025-02-02T20:51:09.363350Z",
"created_at": "2025-02-02T20:51:00.812000Z",
"data_removed": false,
"error": null,
"id": "mxg89ntj9hrm80cms1qa2dt898",
"input": {
"raw": false,
"prompt": "photograph of a fancy wooden chair, black background",
"aspect_ratio": "4:5",
"output_format": "jpg",
"safety_tolerance": 2,
"image_prompt_strength": 0.1
},
"logs": "Running prediction... \nUsing seed: 14418\nGenerating image...\nGenerated image in 8.4sec\nDownloaded image in 0.13sec",
"metrics": {
"image_count": 1,
"predict_time": 8.546239065,
"total_time": 8.55135
},
"output": "https://replicate.delivery/xezq/n9eTFrCPm01ucC70dT0FIumnMNwpw4AaEu1BmUknlZteyYLUA/tmpv04xqg6e.jpg",
"started_at": "2025-02-02T20:51:00.817111Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bsvm-2hbe6skwzqluughbsl3upjhziyh3jlx2tnmn4pekflpahgpfzhoq",
"get": "https://api.replicate.com/v1/predictions/mxg89ntj9hrm80cms1qa2dt898",
"cancel": "https://api.replicate.com/v1/predictions/mxg89ntj9hrm80cms1qa2dt898/cancel"
},
"version": "hidden"
}
Generated in
Running prediction...
Using seed: 14418
Generating image...
Generated image in 8.4sec
Downloaded image in 0.13sec