MCPcopy Create free account

hub / github.com/QuantumNous/new-api / functions

Functions15,409 in github.com/QuantumNous/new-api

↓ 1 callersFunctionGenerateAudioOtherInfo
(ctx *gin.Context, relayInfo *relaycommon.RelayInfo, usage *dto.Usage, modelRatio, groupRatio, completionRatio
service/log_info_generate.go:302
↓ 1 callersFunctionGenerateClaudeOtherInfo
(ctx *gin.Context, relayInfo *relaycommon.RelayInfo, modelRatio, groupRatio, completionRatio float64, cacheTo
service/log_info_generate.go:314
↓ 1 callersFunctionGenerateOAuthCode
GenerateOAuthCode generates a state code for OAuth CSRF protection
controller/oauth.go:46
↓ 1 callersFunctionGenerateQRCodeData
GenerateQRCodeData 生成二维码数据
common/totp.go:146
↓ 1 callersFunctionGenerateTOTPSecret
GenerateTOTPSecret 生成TOTP密钥和配置
common/totp.go:26
↓ 1 callersFunctionGenerateWssOtherInfo
(ctx *gin.Context, relayInfo *relaycommon.RelayInfo, usage *dto.RealtimeUsage, modelRatio, groupRatio, complet
service/log_info_generate.go:290
↓ 1 callersFunctionGetAPIVersion
(c *gin.Context)
relay/common/relay_utils.go:101
↓ 1 callersFunctionGetAllActiveUserSubscriptions
GetAllActiveUserSubscriptions returns all active subscriptions for a user.
model/subscription.go:866
↓ 1 callersFunctionGetAllEnableAbilityWithChannels
()
model/ability.go:33
↓ 1 callersFunctionGetAllPrefillGroups
GetAllPrefillGroups 获取全部组,可按类型过滤(为空则返回全部)
model/prefill_group.go:119
↓ 1 callersFunctionGetAllQuotaDates
(startTime int64, endTime int64, username string)
model/usedata.go:183
↓ 1 callersFunctionGetAllRedemptions
(startIdx int, num int)
model/redemption.go:28
↓ 1 callersFunctionGetAllTasks
(startIdx int, num int, queryParams TaskQueryParams)
model/midjourney.go:66
↓ 1 callersFunctionGetAllTokens
(c *gin.Context)
controller/token.go:132
↓ 1 callersFunctionGetAllTopUps
GetAllTopUps 获取全平台的充值记录(管理员使用,不限制时间窗口)
model/topup.go:337
↓ 1 callersFunctionGetAllUnFinishSyncTasks
(limit int)
model/task.go:413
↓ 1 callersFunctionGetAllUnFinishTasks
()
model/midjourney.go:96
↓ 1 callersFunctionGetAllUserTask
(userId int, startIdx int, num int, queryParams TaskQueryParams)
model/midjourney.go:39
↓ 1 callersFunctionGetAllUserTokens
(userId int, startIdx int, num int)
model/token.go:110
↓ 1 callersFunctionGetAndValidAudioRequest
(c *gin.Context, relayMode int)
relay/helper/valid_request.go:63
↓ 1 callersFunctionGetAndValidateAlphaSearchRequest
(c *gin.Context)
relay/helper/valid_request.go:155
↓ 1 callersFunctionGetAndValidateDeepSeekToolsRequest
GetAndValidateDeepSeekToolsRequest keeps the raw body for forwarding. The upstream validates query/url itself, and no field changes the per-call price
relay/helper/valid_request.go:177
↓ 1 callersFunctionGetAndValidateEmbeddingRequest
(c *gin.Context, relayMode int)
relay/helper/valid_request.go:102
↓ 1 callersFunctionGetAndValidateGeminiBatchEmbeddingRequest
(c *gin.Context)
relay/helper/valid_request.go:428
↓ 1 callersFunctionGetAndValidateGeminiEmbeddingRequest
(c *gin.Context)
relay/helper/valid_request.go:419
↓ 1 callersFunctionGetAndValidateRerankRequest
(c *gin.Context)
relay/helper/valid_request.go:85
↓ 1 callersFunctionGetAndValidateResponsesCompactionRequest
(c *gin.Context)
relay/helper/valid_request.go:197
↓ 1 callersFunctionGetAnnouncements
()
setting/console_setting/validation.go:251
↓ 1 callersFunctionGetAnonymousRequestBodyLimitBytes
()
common/request_body_limit.go:7
↓ 1 callersFunctionGetApiInfo
()
setting/console_setting/validation.go:163
↓ 1 callersFunctionGetAudioCompletionRatioCopy
()
setting/ratio_setting/model_ratio.go:704
↓ 1 callersFunctionGetAudioRatioCopy
()
setting/ratio_setting/model_ratio.go:700
↓ 1 callersFunctionGetAuthIdentity
GetAuthIdentity returns a dashboard session identity. PAT-authenticated requests intentionally have no SessionID and cannot manage browser sessions.
middleware/auth.go:152
↓ 1 callersMethodGetAvailableReplicas
GetAvailableReplicas retrieves available replicas per location for specified hardware
pkg/ionet/hardware.go:12
↓ 1 callersFunctionGetBindingCountByProviderId
GetBindingCountByProviderId returns the number of bindings for a provider
model/user_oauth_binding.go:142
↓ 1 callersFunctionGetBucketSeconds
()
setting/perf_metrics_setting/config.go:27
↓ 1 callersFunctionGetBuiltinBillingExprCopy
()
setting/billing_setting/tiered_billing.go:162
↓ 1 callersMethodGetByChannelType
(channelType int)
pkg/jsplugin/routing.go:507
↓ 1 callersFunctionGetByMJIds
(userId int, mjIds []string)
model/midjourney.go:140
↓ 1 callersFunctionGetByOnlyTaskId
(taskId string)
model/task.go:439
↓ 1 callersFunctionGetCacheRatioCopy
()
setting/ratio_setting/cache_ratio.go:180
↓ 1 callersFunctionGetChannelAffinityCacheStats
()
service/channel_affinity.go:113
↓ 1 callersFunctionGetChannelAffinityStatsContext
(c *gin.Context)
service/channel_affinity.go:389
↓ 1 callersFunctionGetChannelDefaultBaseURLs
(c *gin.Context)
controller/channel.go:212
↓ 1 callersFunctionGetChannelKey
GetChannelKey 获取渠道密钥(需要通过安全验证中间件) 此函数依赖 SecureVerificationRequired 中间件,确保用户已通过安全验证
controller/channel.go:525
↓ 1 callersMethodGetChannelName
()
relay/channel/sub2api/adaptor.go:15
↓ 1 callersMethodGetChannelType
()
relay/common/relay_info.go:906
↓ 1 callersFunctionGetChargedAmount
(count float64, user model.User)
controller/topup_stripe.go:405
↓ 1 callersFunctionGetClaudeAuthHeader
GetClaudeAuthHeader get claude auth header
controller/channel-billing.go:148
↓ 1 callersFunctionGetCompletionRatioCopy
()
setting/ratio_setting/model_ratio.go:692
↓ 1 callersMethodGetConfig
()
oauth/generic.go:85
↓ 1 callersMethodGetContainerDetails
GetContainerDetails retrieves detailed information about a specific container
pkg/ionet/container.go:34
↓ 1 callersFunctionGetContextKeyStringMap
(c *gin.Context, key constant.ContextKey)
common/gin.go:259
↓ 1 callersFunctionGetContextKeyTime
(c *gin.Context, key constant.ContextKey)
common/gin.go:263
↓ 1 callersFunctionGetCreateCacheRatioCopy
()
setting/ratio_setting/cache_ratio.go:184
↓ 1 callersMethodGetData
(v any)
model/task.go:80
↓ 1 callersFunctionGetDefaultEndpointInfo
GetDefaultEndpointInfo 返回指定端点类型的默认信息以及是否存在
common/endpoint_defaults.go:34
↓ 1 callersFunctionGetDefaultPricingMaps
GetDefaultPricingMaps returns independent copies for model-level reset and first-write initialization; callers cannot mutate the built-in defaults.
setting/ratio_setting/model_ratio.go:413
↓ 1 callersMethodGetDeployment
GetDeployment retrieves detailed information about a specific deployment
pkg/ionet/deployment.go:90
↓ 1 callersFunctionGetDiskCacheInfo
GetDiskCacheInfo 获取磁盘缓存目录信息
common/disk_cache.go:141
↓ 1 callersFunctionGetDiskSpaceInfo
GetDiskSpaceInfo 获取缓存目录所在磁盘的空间信息 (Unix/Linux/macOS)
common/system_monitor_unix.go:12
↓ 1 callersFunctionGetFAQ
()
setting/console_setting/validation.go:259
↓ 1 callersFunctionGetFileTypeFromUrl
GetFileTypeFromUrl 获取文件类型,返回 mime type, 例如 image/jpeg, image/png, image/gif, image/bmp, image/tiff, application/pdf 如果获取失败,返回 application/octet-stream
service/file_decoder.go:23
↓ 1 callersFunctionGetFlushIntervalMinutes
()
setting/perf_metrics_setting/config.go:40
↓ 1 callersFunctionGetGeminiSafetySetting
GetGeminiSafetySetting 获取安全设置
setting/model_setting/gemini.go:71
↓ 1 callersFunctionGetGrokSettings
()
setting/model_setting/grok.go:22
↓ 1 callersFunctionGetGroupEnabledModels
(group string)
model/ability.go:43
↓ 1 callersFunctionGetGroupRateLimit
(group string)
setting/rate_limit.go:47
↓ 1 callersFunctionGetImageConfig
GetImageConfig 获取图片配置
service/file_service.go:387
↓ 1 callersFunctionGetImageRatioCopy
()
setting/ratio_setting/model_ratio.go:696
↓ 1 callersFunctionGetIp
()
common/utils.go:45
↓ 1 callersFunctionGetJSONFieldNames
(t reflect.Type)
relaykit/dto/openai_image.go:133
↓ 1 callersFunctionGetLatestCodexClientVersion
(ctx context.Context, client *http.Client)
service/codex_models.go:29
↓ 1 callersFunctionGetLocalRealtimeID
(c *gin.Context)
relay/helper/common.go:338
↓ 1 callersFunctionGetLocalizer
GetLocalizer returns a localizer for the specified language
i18n/i18n.go:65
↓ 1 callersFunctionGetLogByTokenId
(tokenId int)
model/log.go:139
↓ 1 callersFunctionGetMjRequestModel
(relayMode int, midjRequest *dto.MidjourneyRequest)
service/midjourney.go:139
↓ 1 callersFunctionGetModelConnections
()
model/model_meta.go:419
↓ 1 callersMethodGetModelLimits
()
model/token.go:343
↓ 1 callersMethodGetModelList
()
relay/channel/sub2api/adaptor.go:11
↓ 1 callersFunctionGetModelMeta
GetModelMeta 根据 ID 获取单条模型信息
controller/model_meta.go:87
↓ 1 callersFunctionGetModelPriceCopy
()
setting/ratio_setting/model_ratio.go:688
↓ 1 callersFunctionGetModelPricingIssues
(c *gin.Context)
controller/model_pricing_config.go:21
↓ 1 callersFunctionGetModelQuotaTypes
GetModelQuotaTypes 返回指定模型的计费类型集合(来自缓存)
model/model_extra.go:21
↓ 1 callersFunctionGetModelRegion
(other string, localModelName string)
relay/channel/vertex/relay-vertex.go:5
↓ 1 callersMethodGetName
()
oauth/oidc.go:43
↓ 1 callersFunctionGetNetworkIps
()
common/utils.go:72
↓ 1 callersFunctionGetNodeIdentity
()
common/node_identity.go:26
↓ 1 callersMethodGetOpenAIError
()
relaykit/dto/openai_compaction.go:18
↓ 1 callersFunctionGetPasskeyByCredentialID
(credentialID []byte)
model/passkey.go:142
↓ 1 callersFunctionGetPerfMetrics
(modelName string, group string, startTs int64, endTs int64)
model/perf_metric.go:51
↓ 1 callersFunctionGetPerfMetricsSummaryBucketsAll
(startTs int64, endTs int64, groups []string)
model/perf_metric.go:99
↓ 1 callersMethodGetPriceEstimation
GetPriceEstimation calculates the estimated cost for a deployment
pkg/ionet/deployment.go:187
↓ 1 callersMethodGetProviderPrefix
GetProviderPrefix returns the prefix for auto-generated usernames (e.g., "github_")
oauth/provider.go:35
↓ 1 callersFunctionGetQuotaDataByUserId
(userId int, startTime int64, endTime int64)
model/usedata.go:162
↓ 1 callersFunctionGetQuotaDataByUsername
(username string, startTime int64, endTime int64)
model/usedata.go:151
↓ 1 callersFunctionGetQuotaDataGroupByUser
(startTime int64, endTime int64)
model/usedata.go:173
↓ 1 callersFunctionGetRandomInt
(max int)
common/utils.go:234
↓ 1 callersFunctionGetRankingQuotaBuckets
(startTime int64, endTime int64, bucketSize int64)
model/usedata_rankings.go:34
↓ 1 callersFunctionGetRankingQuotaTotals
(startTime int64, endTime int64)
model/usedata_rankings.go:21
← previousnext →5,201–5,300 of 15,409, ranked by callers