{"id":21943474,"url":"https://github.com/xe/flux","last_synced_at":"2025-10-19T22:44:18.296Z","repository":{"id":264523234,"uuid":"839397301","full_name":"Xe/flux","owner":"Xe","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-07T14:23:24.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T16:56:26.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-07T14:23:12.000Z","updated_at":"2024-08-21T12:57:34.000Z","dependencies_parsed_at":"2024-11-24T21:00:06.112Z","dependency_job_id":"9a182647-d6ba-413d-b8ea-e831e9b20a56","html_url":"https://github.com/Xe/flux","commit_stats":null,"previous_names":["xe/flux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Fflux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Fflux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Fflux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xe%2Fflux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xe","download_url":"https://codeload.github.com/Xe/flux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250303649,"owners_count":21408640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T03:30:27.188Z","updated_at":"2025-10-19T22:44:18.230Z","avatar_url":"https://github.com/Xe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eFlux GPU Demo\u003c/h1\u003e\n    \u003cp\u003eRun \u003cstrong\u003e\u003ca href=\"https://huggingface.co/black-forest-labs/FLUX.1-schnell\"\u003eFlux\u003c/a\u003e\u003c/strong\u003e as a Replicate Cog on Fly.io!\u003c/p\u003e\n\u003c/div\u003e\n\n![Untitled](https://github.com/user-attachments/assets/fec35726-e1c2-48a3-904c-c8c50daa6b54)\n\n\nFlux is one of the most advanced text-to-image model families yet. This demo exposes the Dev model via a simple HTTP server, thanks to [Replicate Cog](https://github.com/replicate/cog). It can be adapted to use the Schnell model which is faster and comes with an Apache-2.0 license. Cog is an open-source tool that lets you package machine learning models in a standard, production-ready container. When you're up and running, you can generate images using the `/predictions` endpoint. Images are automatically stored in object-storage on [Tigris](https://www.tigrisdata.com/) (you'll need to make sure you add a bucket to the app).\n\n## Deploy to Fly.io\n\n\u003c!-- \u003e [!IMPORTANT]  \n\u003e Before you deploy, you'll need to get access to the model on Hugging Face by filling out the form in the model [repo](https://huggingface.co/stabilityai/stable-diffusion-3-medium-diffusers/tree/main). --\u003e\n\n```sh\nfly apps create --name [APP_NAME]\n\nfly storage create\n\nfly secrets set HUGGING_FACE_HUB_TOKEN=\u003cHUGGING_FACE_TOKEN\u003e\n\ncog push registry.fly.io/[APP_NAME]:latest --use-cuda-base-image false\n\n```\nNow replace `image` in your fly.toml, then:\n\n```sh\nfly deploy\n```\n\n## Example Request\n\n```sh\ncurl --silent https://cog-flux.fly.dev/predictions/test \\\n    --request PUT \\\n    --header \"Content-Type: application/json\" \\\n    --data @- \u003c\u003c 'EOF' | jq\n{\n    \"input\": {\n        \"prompt\": \"Starry night dreamscape with purple hot-air balloons\",\n        \"aspect_ratio\": \"16:9\",\n        \"guidance_scale\": 3.5,\n        \"num_inference_steps\": 50,\n        \"max_sequence_length\": 512,\n        \"output_format\": \"png\"\n    }\n}\nEOF\n```\n\nNow view your image at `https://fly.storage.tigris.dev/[BUCKET_NAME]/[OUTPUT_IMAGE_NAME]`\n\n## Having trouble?\n\nCreate an issue or ask a question here: https://community.fly.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxe%2Fflux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxe%2Fflux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxe%2Fflux/lists"}