1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/fast-flux-schnell";
const data = {
"prompt": "A wallpaper image of sports car with 'Flux' written on it, motion blur, side view, long shot",
"steps": 4,
"seed": 1184522,
"aspect_ratio": "1:1",
"base64": false
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();
Text prompt for generating the image
Number of inference steps for image generation
min : 1,
max : 8
Seed for random number generation
aspect ratio of the output image
Allowed values:
Base64 encoding of the output image.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Fast Flux.1 Schnell by Segmind is a game-changer for developers who need speed without sacrificing quality. This isn't just another upgrade; it’s a leap forward in making state-of-the-art text-to-image generation faster and more accessible for local development and personal projects.
Fast Flux.1 Schnell is built on the robust foundations of FLUX.1 but re-engineered for those who want efficiency without the bloat. It’s designed to handle complex prompts with ease, delivering sharp, detailed images quicker than ever before. If you’re tired of waiting for your models to catch up to your creativity, this is the upgrade you’ve been waiting for.
What sets Fast Flux.1 Schnell apart is its optimization for speed. It cuts down processing times, making it ideal for developers who need rapid iteration or have limited computational resources. On an average, Fast Flux.1 Schnell is 2x faster than other API providers.
Fast Flux.1 Schnell is available under the Apache 2.0 license, with weights hosted on Hugging Face. This means you can integrate it into your projects seamlessly, whether you’re fine-tuning it for specific use cases or using it out of the box.
For developers and engineers, Fast Flux.1 Schnell offers a streamlined, high-performance tool that doesn’t compromise on quality. It’s your go-to for faster, smarter, and more efficient text-to-image generation.