MCPcopy Create free account

hub / github.com/LumaAI-API/Luma-API / functions

Functions57 in github.com/LumaAI-API/Luma-API

↓ 12 callersFunctionWrapperLumaError
(c *gin.Context, err error, statusCode int)
luma.go:36
↓ 10 callersFunctionGetOrDefaultString
(env string, defaultValue string)
common/utils.go:139
↓ 9 callersFunctionDoRequest
(method, url string, body io.Reader, otherHeaders map[string]string)
request.go:47
↓ 8 callersFunctionGenLumaError
(err error, statusCode int)
luma.go:46
↓ 8 callersFunctionReturnOpenAIError
(c *gin.Context, err error, code string, statusCode int)
common/openai_tools.go:129
↓ 6 callersFunctionSendChatData
(w http.ResponseWriter, model string, chatID, data string)
common/openai_tools.go:104
↓ 3 callersFunctionReturnLumaError
(c *gin.Context, err ErrorResp, statusCode int)
luma.go:55
↓ 3 callersFunctionuploadFile
support base64\url
luma.go:170
↓ 2 callersFunctionGetJsonString
(data any)
common/utils.go:146
↓ 2 callersFunctionGetLumaAuth
()
luma.go:60
↓ 2 callersFunctionSafeGoroutine
(f func())
common/utils.go:20
↓ 2 callersFunctiondoGeneration
(c *gin.Context)
luma.go:99
↓ 2 callersFunctiongetMe
()
luma.go:261
↓ 1 callersFunctionConstructChatCompletionStreamReponse
(model, answerID string, answer string)
common/openai_tools.go:86
↓ 1 callersFunctionGetOrDefault
(env string, defaultValue int)
common/utils.go:127
↓ 1 callersFunctionGetRandomString
(length int)
common/utils.go:113
↓ 1 callersFunctionGetRequestBody
(c *gin.Context)
common/utils.go:177
↓ 1 callersFunctionGetTimeString
()
common/utils.go:122
↓ 1 callersFunctionGinzapWithConfig
()
middleware/logger.go:12
↓ 1 callersFunctionHandleRespCookies
(resp *http.Response)
luma.go:66
↓ 1 callersFunctionInitTemplate
()
common/template.go:15
↓ 1 callersFunctionInitTlsHTTPClient
()
request.go:19
↓ 1 callersFunctionPathExists
(path string)
common/utils.go:202
↓ 1 callersFunctionRegisterRouter
(r *gin.Engine)
router.go:11
↓ 1 callersFunctionRequestId
()
middleware/request-id.go:11
↓ 1 callersFunctionSecretAuth
()
middleware/auth.go:10
↓ 1 callersFunctionSendChatDone
(w http.ResponseWriter)
common/openai_tools.go:115
↓ 1 callersFunctionSetupLogger
()
common/log.go:20
↓ 1 callersFunctionStartAllKeepAlive
()
keep-alive.go:8
↓ 1 callersFunctioncheckChatConfig
()
chat.go:193
↓ 1 callersFunctionfetchTask
(taskID string)
chat.go:175
↓ 1 callersFunctiongetImageFromBase64
(encoded string)
luma.go:239
↓ 1 callersFunctiongetImageFromUrl
(url string)
luma.go:248
↓ 1 callersFunctiongetSignedUpload
()
luma.go:202
↓ 1 callersFunctiongetUsage
()
luma.go:277
↓ 1 callersFunctionreadImage
(image string)
luma.go:228
↓ 1 callersFunctionsetSSEHeaders
(c *gin.Context)
chat.go:207
FunctionAny2Bool
(data any)
common/utils.go:75
FunctionAny2Int
(data any)
common/utils.go:52
FunctionAny2String
(inter interface{})
common/utils.go:31
FunctionChatCompletions
(c *gin.Context)
chat.go:20
FunctionExtentGenerations
@Summary Submit luma extend generate video task @Schemes @Description @Accept json @Produce json @Param task_id path string true "extend task id" @Par
api.go:32
FunctionFetchByID
@Summary Get luma generate video task @Schemes @Description @Accept json @Produce json @Param task_id path string true "fetch single task by id" @Succ
api.go:44
FunctionGenerations
@Summary Submit luma generate video task @Schemes @Description @Accept json @Produce json @Param body body GenRequest true "submit generate video" @Su
api.go:19
FunctionGetDownloadUrl
@Summary Get video url without watermark @Schemes @Description @Accept json @Produce json @Param task_id path string true "fetch by id" @Success 200 {
api.go:105
FunctionGetRootDir
()
common/utils.go:191
FunctionGetUUID
()
common/utils.go:101
FunctionMe
@Summary Get current user info @Schemes @Description @Accept json @Produce json @Success 200 {object} object "user info" @Router /luma/users/me [get]
api.go:136
FunctionToPtr
(arg T)
common/utils.go:198
FunctionUnmarshalBodyReusable
(c *gin.Context, v any)
common/utils.go:154
FunctionUpload
@Summary Upload image to luma @Schemes @Description @Accept json @Produce json @Param body body UploadReq true "Upload image params" @Success 200 {obj
api.go:80
FunctionUsage
@Summary Get current user subscription usage @Schemes @Description @Accept json @Produce json @Success 200 {object} object "subscription info" @Router
api.go:152
FunctionWrapperOpenAIError
(err error, code string)
common/openai_tools.go:120
Functioninit
()
request.go:15
Functioninit
()
common/utils.go:109
Functioninit
()
docs/docs.go:362
Functionmain
()
main.go:13