443 Commits

Author SHA1 Message Date
harisreedhar e003785ecb fix asset loading issue 2026-02-24 19:06:44 +05:30
Harisreedhar 6f70f51d5e Merge pull request #1028 from facefusion/poc/api-update
refactor api
2026-01-26 16:45:32 +05:30
harisreedhar b7b60c186f refactor api 2026-01-26 16:37:33 +05:30
henryruhs ed1c9b0b24 POC for API 2025-12-20 22:16:40 +01:00
henryruhs 72bb4b8865 POC for API 2025-12-20 18:47:38 +01:00
henryruhs 423fee9d7f feat: add API process functionality
This commit adds comprehensive API process functionality including:
- Remote streaming support
- Session management and context handling
- Media type support (video/audio/image)
- Asset management and path isolation
- Workflow refactoring and optimization
- Security improvements and state violation handling
- Gallery and image resolution features
- Audio support
- Analysis tools
- Version guard

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-20 14:35:07 +01:00
harisreedhar bed330f701 create to_image.py 2025-12-19 16:49:31 +05:30
Harisreedhar 3b93008906 Merge pull request #1009 from facefusion/feat/audio-to-image-as-frames
audio to image as frames
2025-12-19 16:41:21 +05:30
harisreedhar f9f3a9e62b audio to image as frames 2025-12-19 16:03:37 +05:30
harisreedhar 3479cd0af3 audio to image as frames 2025-12-18 19:56:31 +05:30
henryruhs 1e8e763516 Rename local(s) to locale(s) 2025-12-17 18:50:50 +01:00
harisreedhar b2a2f84c24 workflows rename 2025-12-17 18:42:13 +01:00
harisreedhar 0773403d4b workflows rename 2025-12-17 18:42:13 +01:00
harisreedhar 23f865640a image to video as sequence 2025-12-17 18:42:13 +01:00
Henry Ruhs 396610e88c feat/ping-endpoint (#1001)
* api: add WebSocket /ping endpoint and update session guard to support WebSocket subprotocol auth; add tests (test_api_ping.py)

* Initial websocket support using ping

* Initial websocket support using ping

* Initial websocket support using ping

* Combine imports
2025-12-17 18:42:13 +01:00
harisreedhar 286d25e91d use common analyse_image method 2025-12-17 18:42:13 +01:00
harisreedhar deb5909f91 to video unification 2025-12-17 18:42:13 +01:00
harisreedhar 17f24784ad to video unification 2025-12-17 18:42:13 +01:00
harisreedhar e9d9dec598 detect workflow 2025-12-17 18:42:13 +01:00
harisreedhar 12ab871289 changes
restructure conditional methods to a fall-through pattern

common process_temp_frame for all workflow
2025-12-17 18:42:13 +01:00
Henry Ruhs 44830ffd9d Feat/session context (#993)
* Add simple session context

* Add simple session context
2025-12-17 18:42:13 +01:00
Henry Ruhs e13b81207c Add simple path isolation (#992) 2025-12-17 18:42:13 +01:00
harisreedhar c7e61d1678 update ffmpeg.set_loop
add test

introduce spawn_frames
2025-12-17 18:42:13 +01:00
harisreedhar 50473df4c0 changes 2025-12-17 18:42:13 +01:00
harisreedhar 2dbf4523fe remove --keep-temp 2025-12-17 18:42:13 +01:00
harisreedhar 1cfabf6639 Part 2 2025-12-17 18:42:13 +01:00
harisreedhar 03d1555a6f Part 2 2025-12-17 18:42:13 +01:00
harisreedhar cba29311c1 fix 2025-12-17 18:42:13 +01:00
harisreedhar 35c2022700 part 1 2025-12-17 18:42:13 +01:00
henryruhs 549de72bef Switch workflow args order in tests, Remove old choices in processors 2025-12-17 18:42:13 +01:00
henryruhs 9e6c070629 Switch workflow args order in tests, Remove old choices in processors 2025-12-17 18:42:13 +01:00
harisreedhar d4a4cf71d4 add todo
add test

cleanup

remove -w

move --workflow position

fix test

add --worflow, audio-to-image, image-to-image, image-to-video
2025-12-17 18:42:13 +01:00
Henry Ruhs 6180ccf6e6 Scope for Args (#988)
* Add API scopes

* Add API scopes

* Add API scopes

* Add API scopes

* Add API scopes

* Add API scopes

* Add API scopes

* Add API scopes

* Remove system memory limit (#986)

# Conflicts:
#	facefusion/program.py

* Add session_id, make token size more reasonable (#983)

* Add session_id, make token size more reasonable

* Use more direct approach

* Fix more stuff

* Fix ignore comments

* Fix naming

* Fix lint
2025-12-17 18:42:13 +01:00
harisreedhar 65a61d5001 changes 2025-12-17 18:42:13 +01:00
harisreedhar 7ccf4d5eda changes 2025-12-17 18:42:13 +01:00
harisreedhar b035f1a6e5 changes 2025-12-17 18:42:13 +01:00
harisreedhar 588eb049b0 rename to target_path 2025-12-17 18:42:13 +01:00
harisreedhar 0a4e1c639d fix exit-helper 2025-12-17 18:42:13 +01:00
harisreedhar 85b6d962f2 refactor temp handling from target-path to output-path 2025-12-17 18:42:13 +01:00
henryruhs 6f89e7db51 Burn it with fire 2025-12-17 18:42:13 +01:00
henryruhs 69ad7572c6 Burn it with fire 2025-12-17 18:42:13 +01:00
Henry Ruhs 68a56588e3 Remove system memory limit (#986) 2025-12-17 18:42:13 +01:00
Henry Ruhs 4b0d6c3333 Add session_id, make token size more reasonable (#983)
* Add session_id, make token size more reasonable

* Use more direct approach
2025-12-17 18:42:13 +01:00
Henry Ruhs 3daf049684 Local API (#982)
* Introduce API scelleton

* Raw impl for session

* Simple state endpoint

* Apply _body naming

* Finalize session testing and comment out tons of useless code

* Clean and refactor part1

* Clean and refactor part2

* Clean and refactor part2

* Clean and refactor part2

* Clean and refactor part2

* Refactor middleware

* Refactor middleware

* Clean and refactor part3

* TDD and 2 beers

* TDD and 2 beers

* Complete state endpoints

* You can only set what is already present

* Use only JSON as response

* Use default logger

* Improve auth extraction

* Extend api command with more args

* Adjust API messages
2025-12-17 18:42:13 +01:00
harisreedhar f745ddc831 remove output_path argument 2025-12-17 18:42:13 +01:00
harisreedhar 8f27d5dd08 remove output_path argument from merge_video() 2025-12-17 18:42:13 +01:00
harisreedhar a6bd2cdcc7 remove output_video_fps argument from merge_video() 2025-12-17 18:42:13 +01:00
harisreedhar 3ef90673b5 rename method argument 2025-12-17 18:42:13 +01:00
harisreedhar 29e3014945 fix 2025-12-17 18:42:13 +01:00
harisreedhar 7e2f793cf4 remove same file extension constraint 2025-12-17 18:42:13 +01:00