An open API service indexing awesome lists of open source software.

https://github.com/prithivsakthiur/flux-api

Endpoint Image Generation using Flux
https://github.com/prithivsakthiur/flux-api

api bfl endpoints flux image

Last synced: 5 months ago
JSON representation

Endpoint Image Generation using Flux

Awesome Lists containing this project

README

          

## FLUX 1.1 [pro] Ultra : API - { 4x Higher Image Resolutions }

Upto - 4 Megapixels, 10sec per image sampling { Hi - Res }

Post πŸ€—: https://huggingface.co/posts/prithivMLmods/508581844814759

Endpoint Creation Step by Step: 🧡

-> Sign up to { api.bfl.ml } & get your api's: https://api.bfl.ml/auth/profile

-> File Structure:

flux_image_generation/

β”œβ”€β”€ .env
β”œβ”€β”€ generate_image.py
└── requirements.txt

-> Step 0: Add Your API Key to an Environment File
{ .env }
```
BFL_API_KEY=your_actual_api_key_here
```
-> Step 1: Install Required Libraries
{ requirements.txt }
```
requests
python-dotenv
```
-> Step 2: Setup the Python Script

{ generate_image.py} - https://github.com/PRITHIVSAKTHIUR/Flux-API/blob/main/generate_image.py

-> Step3: Install the requirements & Run the Script
```
pip install -r requirements.txt

python generate_image.py

```
-> Polling: The script polls the API every 0.5 seconds until the image generation result is ready. That's it the script also checks for a successful response after submitting the request.

For more visit:

πŸ”Ίfor script: https://github.com/PRITHIVSAKTHIUR/Flux-API/tree/main

πŸ”Ίbfl doc: https://docs.bfl.ml/quick_start/gen_image/#__tabbed_1_2

Endpoints for image generation: 🧡

-> /flux-pro-1.1-ultra
-> /flux-pro-1.1
-> /flux-pro
-> /flux-dev

Each ID has 50 free credits available for use, based on the cost per image sample generated by the model.

.
.
.
@prithivMLmods πŸ€—

HF : https://huggingface.co/prithivMLmods