Flux.1 Dev
Approved Data Classifications
Description
Flux.1 Dev is an open-weight, guidance-distilled AI image generation model developed by Black Forest Labs, tailored for non-commercial applications. This model is directly distilled from the more advanced Flux.1 Pro, allowing it to maintain similar quality and prompt adherence capabilities while being more efficient than standard models of comparable size. Launched to provide users with a powerful yet accessible tool for generating high-quality images from text prompts, Flux.1 Dev is designed to streamline the creative process for graphic design, content creation, and marketing applications. It excels in producing visually appealing images quickly and effectively, making it suitable for users who require reliable results without the need for extensive computational resources. With its user-friendly interface and open-source nature, Flux.1 Dev encourages innovation and collaboration within the AI community, allowing developers and artists to explore the potential of text-to-image generation in their projects.
Capabilities
Model | Training Data | Input | Output | Context Length | Cost (per image) |
---|---|---|---|---|---|
flux.1-dev | May 2024 | Text | Image | n/a | $0.0125/image |
- estimated image size is
1024
x1024
- All prices listed are based on 1 image
Availability
Cloud Provider
Usage
- curl
- python
- javascript
curl -X POST https://api.ai.it.ufl.edu/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_TOKEN>" \
-d '{
"model": "flux.1-dev",
"prompt": "An Alligator walking around the University of Florida saying hi to students.",
"n": 1,
"size": "1024x1024",
"quality": "standard",
"response_format": "b64_json"
}'
from openai import OpenAI
client = OpenAI(
api_key="your_api_key",
base_url="https://api.ai.it.ufl.edu/v1"
)
response = client.images.generate(
model="flux.1-dev",
prompt="An Alligator walking around the University of Florida saying hi to students.",
size="1024x1024",
quality="standard",
n=1,
response_format="url"
)
image_url = response.data[0].url
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'your_api_key',
baseURL: 'https://api.ai.it.ufl.edu/v1'
});
const completion = await openai.images.generate({
model: "flux.1-dev",
prompt: "An Alligator walking around the University of Florida saying hi to students.",
n: 1,
size: "1024x1024",
quality: "standard",
response_format: "url",
});
image_url = response.data[0].url;