Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheSmallHanCat/flow2api
/ functions
Functions
1,214 in github.com/TheSmallHanCat/flow2api
⨍
Functions
1,214
◇
Types & classes
80
↳
Endpoints
65
Method
flow_image_prefer_media_proxy
图片生成是否优先走媒体代理链路。
src/core/config.py:162
Method
flow_image_request_timeout
图片生成单次 HTTP 请求超时(秒)。
src/core/config.py:121
Method
flow_image_slot_wait_timeout
图片硬并发槽位等待超时(秒)。
src/core/config.py:172
Method
flow_image_timeout_retry_count
图片生成遇到网络超时时的快速重试次数。
src/core/config.py:134
Method
flow_image_timeout_retry_delay
图片生成网络超时重试前等待秒数。
src/core/config.py:143
Method
flow_image_timeout_use_media_proxy_fallback
网络超时时是否切换媒体代理重试。
src/core/config.py:152
Method
flow_labs_base_url
Google Labs base URL for project management
src/core/config.py:85
Method
flow_max_retries
(self)
src/core/config.py:103
Method
flow_timeout
(self)
src/core/config.py:95
Method
flow_video_launch_soft_limit
视频生成前置发车软并发上限(0 表示关闭软整形,仅使用硬并发)。
src/core/config.py:217
Method
flow_video_launch_stagger_ms
视频请求前置发车间隔(毫秒),用于平滑同批突发。
src/core/config.py:235
Method
flow_video_launch_wait_timeout
视频前置发车软并发等待超时(秒)。
src/core/config.py:226
Method
flow_video_slot_wait_timeout
视频硬并发槽位等待超时(秒)。
src/core/config.py:208
Function
generate_content
Gemini official generateContent endpoint.
src/api/routes.py:897
Method
generate_omni_reference_video
( self, at: str, st: str, project_id: str, prompt: str, aspect
src/services/flow_client.py:2746
Method
get_active_tokens
Get all active tokens
src/core/database.py:1082
Function
get_admin_config
Get admin configuration
src/api/admin.py:1549
Function
get_cache_config
Get cache configuration
src/api/admin.py:1698
Method
get_cache_path
Get full path to cached file
src/services/file_cache.py:509
Function
get_call_logic_config
Get token call logic configuration.
src/api/admin.py:1390
Function
get_captcha_config
Get captcha configuration
src/api/admin.py:1905
Function
get_captcha_runtime_status
Get background browser runtime preparation status.
src/api/admin.py:1891
Method
get_current_user_agent
获取当前浏览器实例的真实 User-Agent。 按优先级依次尝试: 1) 最近一次打码指纹中的 user_agent 2) 初始化时构建的 runtime_surface_profile 中的 userAgent 3) 通过 CDP
src/services/browser_captcha_personal.py:11698
Method
get_current_user_agent
获取当前浏览器实例的真实 User-Agent。 按优先级依次从 worker 中尝试: 1) 最近一次打码指纹中的 user_agent 2) 初始化时构建的 runtime_surface_profile 中的 userAgent
src/services/browser_captcha_personal.py:14074
Method
get_custom_score
( self, website_url: str, website_key: str, verify_url: str, action: s
src/services/browser_captcha_personal.py:14130
Method
get_custom_score
在浏览器页面内完成 token 获取与分数校验。
src/services/browser_captcha.py:2908
Method
get_custom_token
( self, website_url: str, website_key: str, action: str = "homepage",
src/services/browser_captcha_personal.py:14104
Method
get_custom_token
获取任意站点的 reCAPTCHA token,用于分数测试。
src/services/browser_captcha.py:2876
Function
get_gemini_model
Return a single model using Gemini-compatible response shape.
src/api/routes.py:840
Function
get_generation_timeout
Get generation timeout configuration
src/api/admin.py:1615
Method
get_instance
获取单例实例
src/services/browser_captcha_personal.py:1771
Method
get_instance
(cls, db=None)
src/services/browser_captcha_extension.py:31
Function
get_log_detail
Get single request log detail (payload loaded on demand)
src/api/admin.py:1509
Function
get_logs
Get lightweight request logs for list view
src/api/admin.py:1476
Function
get_plugin_config
Get plugin configuration
src/api/admin.py:2284
Method
get_project_by_id
Get project by UUID
src/core/database.py:1128
Function
get_proxy_config
Get proxy configuration
src/api/admin.py:1232
Function
get_proxy_config_alias
Get proxy configuration (alias for frontend compatibility)
src/api/admin.py:1247
Method
get_request_proxy_url
(self)
tests/test_api_captcha_fingerprint.py:16
Method
get_resident_count
(self)
src/services/browser_captcha_personal.py:13969
Method
get_resident_project_id
(self)
src/services/browser_captcha_personal.py:13978
Method
get_resident_project_ids
(self)
src/services/browser_captcha_personal.py:13972
Function
get_stats
Get statistics for dashboard
src/api/admin.py:1470
Method
get_stats
(self)
src/services/browser_captcha.py:3063
Function
get_system_info
Get system information
src/api/admin.py:1431
Method
get_task
Get task by ID
src/core/database.py:1167
Method
get_token
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:13651
Method
get_token
获取 reCAPTCHA Token(从共享浏览器池选择 slot) Args: project_id: 项目 ID action: reCAPTCHA action token_id: 业务
src/services/browser_captcha.py:2811
Method
get_token_bundle
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:13726
Method
get_token_pool_status
(self)
src/services/browser_captcha_personal.py:12047
Method
get_token_pool_status
(self)
src/services/browser_captcha_personal.py:13985
Function
get_token_refresh_config
Get AT/protocol refresh configuration.
src/api/admin.py:1641
Method
get_token_with_metadata
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:11308
Function
get_tokens
Get all tokens with statistics
src/api/admin.py:793
Method
handle_request_failed
(request)
src/services/browser_captcha.py:1906
Method
hash_password
Hash password
src/core/auth.py:27
Function
health_check
Public health check endpoint - no auth required
src/api/admin.py:1461
Method
image_timeout
Get image generation timeout in seconds
src/core/config.py:307
Function
import_tokens
批量导入Token
src/api/admin.py:1097
Function
index
Redirect to login page
src/main.py:295
Method
initialize
()
tests/test_browser_captcha_personal.py:236
Method
invalidate_token
(self, project_id: str)
src/services/browser_captcha_personal.py:13848
Function
is_admin_session_token_valid
(token: Optional[str])
src/api/admin.py:717
Method
is_at_valid
检查AT是否有效,如果无效或即将过期则自动刷新 Returns: True if AT is valid or refreshed successfully False if AT cannot be refreshed
src/services/token_manager.py:549
Method
is_resident_mode_active
(self)
src/services/browser_captcha_personal.py:13966
Function
lifespan
Application lifespan manager
src/main.py:88
Function
list_gemini_models
List available models using Gemini-compatible response shape.
src/api/routes.py:827
Function
list_model_aliases
List simplified model aliases for generationConfig-based resolution.
src/api/routes.py:808
Function
list_models
List available models.
src/api/routes.py:792
Function
listener
(event)
extension/content.js:31
Function
login
Login endpoint (alias for /api/admin/login)
src/api/admin.py:1449
Function
login_page
Login page
src/main.py:304
Function
logout
Logout endpoint (alias for /api/admin/logout)
src/api/admin.py:1455
Function
manage_page
Management console page
src/main.py:313
Method
max_poll_attempts
(self)
src/core/config.py:248
Function
metrics
Prometheus metrics endpoint for the main Flow2API service.
src/main.py:337
Method
non_zero_byte_delta
(index: int)
src/services/browser_captcha_personal.py:3565
Method
normalize_pool
(value: Any)
src/services/browser_captcha_personal.py:1968
Method
notify_generation_request_finished
通知当前 Token 对应的上游图片/视频请求已结束。
src/services/browser_captcha.py:1768
Function
onUpdated
(updatedTabId, changeInfo)
extension/background.js:54
Method
open_login_browser
(self)
src/services/browser_captcha.py:3061
Method
open_login_window
(self)
src/services/browser_captcha_personal.py:13854
Function
patched_send
(self, cdp_obj, _is_update=False)
src/services/browser_captcha_personal.py:902
Function
patched_update_targets
(self, *args, **kwargs)
src/services/browser_captcha_personal.py:948
Method
personal_headless
personal 内置浏览器是否强制无头;默认按有头模式运行。
src/core/config.py:502
Method
personal_idle_tab_ttl_seconds
内置浏览器打码标签页空闲超时(秒)
src/core/config.py:493
Method
personal_max_resident_tabs
内置浏览器打码单实例共享标签页上限
src/core/config.py:475
Method
personal_project_pool_size
单个 Token 默认维护的项目池数量,仅影响项目轮换。
src/core/config.py:484
Function
plugin_check_tokens
Return token status for external syncers using the plugin connection token.
src/api/admin.py:2442
Function
plugin_update_token
Receive token update from Chrome extension (no admin auth required, uses connection_token)
src/api/admin.py:2344
Method
poll_interval
(self)
src/core/config.py:244
Method
polling_mode_enabled
Get polling mode enabled status.
src/core/config.py:329
Function
refresh_at
手动刷新Token的AT (使用ST转换) 🆕 如果 AT 刷新失败且处于 personal 模式,会自动尝试通过浏览器刷新 ST
src/api/admin.py:1026
Function
refresh_credits
刷新Token余额 🆕
src/api/admin.py:1009
Method
refresh_session_token
(self, project_id: str, token_id: Optional[int] = None)
src/services/browser_captcha_personal.py:13907
Method
release_image
Release image concurrency slot Args: token_id: Token ID
src/services/concurrency_manager.py:181
Method
release_reserved_slot
()
src/services/browser_captcha_personal.py:10948
Method
release_video
Release video concurrency slot Args: token_id: Token ID
src/services/concurrency_manager.py:203
Method
reload_config
(self)
src/services/browser_captcha_personal.py:13468
Method
remote_browser_api_key
Get remote browser captcha service API key
src/core/config.py:658
← previous
next →
1,001–1,100 of 1,214, ranked by callers