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
- Host: GitHub
- URL: https://github.com/prithivsakthiur/flux-api
- Owner: PRITHIVSAKTHIUR
- Created: 2024-11-08T17:33:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T18:49:14.000Z (over 1 year ago)
- Last Synced: 2025-05-06T21:48:01.636Z (about 1 year ago)
- Topics: api, bfl, endpoints, flux, image
- Language: Python
- Homepage: https://docs.bfl.ml/quick_start/gen_image/#__tabbed_1_2
- Size: 3.81 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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