MCPcopy Create free account

hub / github.com/TheSmallHanCat/flow2api / functions

Functions1,214 in github.com/TheSmallHanCat/flow2api

Methodflow_image_prefer_media_proxy
图片生成是否优先走媒体代理链路。
src/core/config.py:162
Methodflow_image_request_timeout
图片生成单次 HTTP 请求超时(秒)。
src/core/config.py:121
Methodflow_image_slot_wait_timeout
图片硬并发槽位等待超时(秒)。
src/core/config.py:172
Methodflow_image_timeout_retry_count
图片生成遇到网络超时时的快速重试次数。
src/core/config.py:134
Methodflow_image_timeout_retry_delay
图片生成网络超时重试前等待秒数。
src/core/config.py:143
Methodflow_image_timeout_use_media_proxy_fallback
网络超时时是否切换媒体代理重试。
src/core/config.py:152
Methodflow_labs_base_url
Google Labs base URL for project management
src/core/config.py:85
Methodflow_max_retries
(self)
src/core/config.py:103
Methodflow_timeout
(self)
src/core/config.py:95
Methodflow_video_launch_soft_limit
视频生成前置发车软并发上限(0 表示关闭软整形,仅使用硬并发)。
src/core/config.py:217
Methodflow_video_launch_stagger_ms
视频请求前置发车间隔(毫秒),用于平滑同批突发。
src/core/config.py:235
Methodflow_video_launch_wait_timeout
视频前置发车软并发等待超时(秒)。
src/core/config.py:226
Methodflow_video_slot_wait_timeout
视频硬并发槽位等待超时(秒)。
src/core/config.py:208
Functiongenerate_content
Gemini official generateContent endpoint.
src/api/routes.py:897
Methodgenerate_omni_reference_video
( self, at: str, st: str, project_id: str, prompt: str, aspect
src/services/flow_client.py:2746
Methodget_active_tokens
Get all active tokens
src/core/database.py:1082
Functionget_admin_config
Get admin configuration
src/api/admin.py:1549
Functionget_cache_config
Get cache configuration
src/api/admin.py:1698
Methodget_cache_path
Get full path to cached file
src/services/file_cache.py:509
Functionget_call_logic_config
Get token call logic configuration.
src/api/admin.py:1390
Functionget_captcha_config
Get captcha configuration
src/api/admin.py:1905
Functionget_captcha_runtime_status
Get background browser runtime preparation status.
src/api/admin.py:1891
Methodget_current_user_agent
获取当前浏览器实例的真实 User-Agent。 按优先级依次尝试: 1) 最近一次打码指纹中的 user_agent 2) 初始化时构建的 runtime_surface_profile 中的 userAgent 3) 通过 CDP
src/services/browser_captcha_personal.py:11698
Methodget_current_user_agent
获取当前浏览器实例的真实 User-Agent。 按优先级依次从 worker 中尝试: 1) 最近一次打码指纹中的 user_agent 2) 初始化时构建的 runtime_surface_profile 中的 userAgent
src/services/browser_captcha_personal.py:14074
Methodget_custom_score
( self, website_url: str, website_key: str, verify_url: str, action: s
src/services/browser_captcha_personal.py:14130
Methodget_custom_score
在浏览器页面内完成 token 获取与分数校验。
src/services/browser_captcha.py:2908
Methodget_custom_token
( self, website_url: str, website_key: str, action: str = "homepage",
src/services/browser_captcha_personal.py:14104
Methodget_custom_token
获取任意站点的 reCAPTCHA token,用于分数测试。
src/services/browser_captcha.py:2876
Functionget_gemini_model
Return a single model using Gemini-compatible response shape.
src/api/routes.py:840
Functionget_generation_timeout
Get generation timeout configuration
src/api/admin.py:1615
Methodget_instance
获取单例实例
src/services/browser_captcha_personal.py:1771
Methodget_instance
(cls, db=None)
src/services/browser_captcha_extension.py:31
Functionget_log_detail
Get single request log detail (payload loaded on demand)
src/api/admin.py:1509
Functionget_logs
Get lightweight request logs for list view
src/api/admin.py:1476
Functionget_plugin_config
Get plugin configuration
src/api/admin.py:2284
Methodget_project_by_id
Get project by UUID
src/core/database.py:1128
Functionget_proxy_config
Get proxy configuration
src/api/admin.py:1232
Functionget_proxy_config_alias
Get proxy configuration (alias for frontend compatibility)
src/api/admin.py:1247
Methodget_request_proxy_url
(self)
tests/test_api_captcha_fingerprint.py:16
Methodget_resident_count
(self)
src/services/browser_captcha_personal.py:13969
Methodget_resident_project_id
(self)
src/services/browser_captcha_personal.py:13978
Methodget_resident_project_ids
(self)
src/services/browser_captcha_personal.py:13972
Functionget_stats
Get statistics for dashboard
src/api/admin.py:1470
Methodget_stats
(self)
src/services/browser_captcha.py:3063
Functionget_system_info
Get system information
src/api/admin.py:1431
Methodget_task
Get task by ID
src/core/database.py:1167
Methodget_token
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:13651
Methodget_token
获取 reCAPTCHA Token(从共享浏览器池选择 slot) Args: project_id: 项目 ID action: reCAPTCHA action token_id: 业务
src/services/browser_captcha.py:2811
Methodget_token_bundle
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:13726
Methodget_token_pool_status
(self)
src/services/browser_captcha_personal.py:12047
Methodget_token_pool_status
(self)
src/services/browser_captcha_personal.py:13985
Functionget_token_refresh_config
Get AT/protocol refresh configuration.
src/api/admin.py:1641
Methodget_token_with_metadata
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:11308
Functionget_tokens
Get all tokens with statistics
src/api/admin.py:793
Methodhandle_request_failed
(request)
src/services/browser_captcha.py:1906
Methodhash_password
Hash password
src/core/auth.py:27
Functionhealth_check
Public health check endpoint - no auth required
src/api/admin.py:1461
Methodimage_timeout
Get image generation timeout in seconds
src/core/config.py:307
Functionimport_tokens
批量导入Token
src/api/admin.py:1097
Functionindex
Redirect to login page
src/main.py:295
Methodinitialize
()
tests/test_browser_captcha_personal.py:236
Methodinvalidate_token
(self, project_id: str)
src/services/browser_captcha_personal.py:13848
Functionis_admin_session_token_valid
(token: Optional[str])
src/api/admin.py:717
Methodis_at_valid
检查AT是否有效,如果无效或即将过期则自动刷新 Returns: True if AT is valid or refreshed successfully False if AT cannot be refreshed
src/services/token_manager.py:549
Methodis_resident_mode_active
(self)
src/services/browser_captcha_personal.py:13966
Functionlifespan
Application lifespan manager
src/main.py:88
Functionlist_gemini_models
List available models using Gemini-compatible response shape.
src/api/routes.py:827
Functionlist_model_aliases
List simplified model aliases for generationConfig-based resolution.
src/api/routes.py:808
Functionlist_models
List available models.
src/api/routes.py:792
Functionlistener
(event)
extension/content.js:31
Functionlogin
Login endpoint (alias for /api/admin/login)
src/api/admin.py:1449
Functionlogin_page
Login page
src/main.py:304
Functionlogout
Logout endpoint (alias for /api/admin/logout)
src/api/admin.py:1455
Functionmanage_page
Management console page
src/main.py:313
Methodmax_poll_attempts
(self)
src/core/config.py:248
Functionmetrics
Prometheus metrics endpoint for the main Flow2API service.
src/main.py:337
Methodnon_zero_byte_delta
(index: int)
src/services/browser_captcha_personal.py:3565
Methodnormalize_pool
(value: Any)
src/services/browser_captcha_personal.py:1968
Methodnotify_generation_request_finished
通知当前 Token 对应的上游图片/视频请求已结束。
src/services/browser_captcha.py:1768
FunctiononUpdated
(updatedTabId, changeInfo)
extension/background.js:54
Methodopen_login_browser
(self)
src/services/browser_captcha.py:3061
Methodopen_login_window
(self)
src/services/browser_captcha_personal.py:13854
Functionpatched_send
(self, cdp_obj, _is_update=False)
src/services/browser_captcha_personal.py:902
Functionpatched_update_targets
(self, *args, **kwargs)
src/services/browser_captcha_personal.py:948
Methodpersonal_headless
personal 内置浏览器是否强制无头;默认按有头模式运行。
src/core/config.py:502
Methodpersonal_idle_tab_ttl_seconds
内置浏览器打码标签页空闲超时(秒)
src/core/config.py:493
Methodpersonal_max_resident_tabs
内置浏览器打码单实例共享标签页上限
src/core/config.py:475
Methodpersonal_project_pool_size
单个 Token 默认维护的项目池数量,仅影响项目轮换。
src/core/config.py:484
Functionplugin_check_tokens
Return token status for external syncers using the plugin connection token.
src/api/admin.py:2442
Functionplugin_update_token
Receive token update from Chrome extension (no admin auth required, uses connection_token)
src/api/admin.py:2344
Methodpoll_interval
(self)
src/core/config.py:244
Methodpolling_mode_enabled
Get polling mode enabled status.
src/core/config.py:329
Functionrefresh_at
手动刷新Token的AT (使用ST转换) 🆕 如果 AT 刷新失败且处于 personal 模式,会自动尝试通过浏览器刷新 ST
src/api/admin.py:1026
Functionrefresh_credits
刷新Token余额 🆕
src/api/admin.py:1009
Methodrefresh_session_token
(self, project_id: str, token_id: Optional[int] = None)
src/services/browser_captcha_personal.py:13907
Methodrelease_image
Release image concurrency slot Args: token_id: Token ID
src/services/concurrency_manager.py:181
Methodrelease_reserved_slot
()
src/services/browser_captcha_personal.py:10948
Methodrelease_video
Release video concurrency slot Args: token_id: Token ID
src/services/concurrency_manager.py:203
Methodreload_config
(self)
src/services/browser_captcha_personal.py:13468
Methodremote_browser_api_key
Get remote browser captcha service API key
src/core/config.py:658
← previousnext →1,001–1,100 of 1,214, ranked by callers