Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LumaAI-API/Luma-API
/ functions
Functions
57 in github.com/LumaAI-API/Luma-API
⨍
Functions
57
◇
Types & classes
17
↓ 12 callers
Function
WrapperLumaError
(c *gin.Context, err error, statusCode int)
luma.go:36
↓ 10 callers
Function
GetOrDefaultString
(env string, defaultValue string)
common/utils.go:139
↓ 9 callers
Function
DoRequest
(method, url string, body io.Reader, otherHeaders map[string]string)
request.go:47
↓ 8 callers
Function
GenLumaError
(err error, statusCode int)
luma.go:46
↓ 8 callers
Function
ReturnOpenAIError
(c *gin.Context, err error, code string, statusCode int)
common/openai_tools.go:129
↓ 6 callers
Function
SendChatData
(w http.ResponseWriter, model string, chatID, data string)
common/openai_tools.go:104
↓ 3 callers
Function
ReturnLumaError
(c *gin.Context, err ErrorResp, statusCode int)
luma.go:55
↓ 3 callers
Function
uploadFile
support base64\url
luma.go:170
↓ 2 callers
Function
GetJsonString
(data any)
common/utils.go:146
↓ 2 callers
Function
GetLumaAuth
()
luma.go:60
↓ 2 callers
Function
SafeGoroutine
(f func())
common/utils.go:20
↓ 2 callers
Function
doGeneration
(c *gin.Context)
luma.go:99
↓ 2 callers
Function
getMe
()
luma.go:261
↓ 1 callers
Function
ConstructChatCompletionStreamReponse
(model, answerID string, answer string)
common/openai_tools.go:86
↓ 1 callers
Function
GetOrDefault
(env string, defaultValue int)
common/utils.go:127
↓ 1 callers
Function
GetRandomString
(length int)
common/utils.go:113
↓ 1 callers
Function
GetRequestBody
(c *gin.Context)
common/utils.go:177
↓ 1 callers
Function
GetTimeString
()
common/utils.go:122
↓ 1 callers
Function
GinzapWithConfig
()
middleware/logger.go:12
↓ 1 callers
Function
HandleRespCookies
(resp *http.Response)
luma.go:66
↓ 1 callers
Function
InitTemplate
()
common/template.go:15
↓ 1 callers
Function
InitTlsHTTPClient
()
request.go:19
↓ 1 callers
Function
PathExists
(path string)
common/utils.go:202
↓ 1 callers
Function
RegisterRouter
(r *gin.Engine)
router.go:11
↓ 1 callers
Function
RequestId
()
middleware/request-id.go:11
↓ 1 callers
Function
SecretAuth
()
middleware/auth.go:10
↓ 1 callers
Function
SendChatDone
(w http.ResponseWriter)
common/openai_tools.go:115
↓ 1 callers
Function
SetupLogger
()
common/log.go:20
↓ 1 callers
Function
StartAllKeepAlive
()
keep-alive.go:8
↓ 1 callers
Function
checkChatConfig
()
chat.go:193
↓ 1 callers
Function
fetchTask
(taskID string)
chat.go:175
↓ 1 callers
Function
getImageFromBase64
(encoded string)
luma.go:239
↓ 1 callers
Function
getImageFromUrl
(url string)
luma.go:248
↓ 1 callers
Function
getSignedUpload
()
luma.go:202
↓ 1 callers
Function
getUsage
()
luma.go:277
↓ 1 callers
Function
readImage
(image string)
luma.go:228
↓ 1 callers
Function
setSSEHeaders
(c *gin.Context)
chat.go:207
Function
Any2Bool
(data any)
common/utils.go:75
Function
Any2Int
(data any)
common/utils.go:52
Function
Any2String
(inter interface{})
common/utils.go:31
Function
ChatCompletions
(c *gin.Context)
chat.go:20
Function
ExtentGenerations
@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
Function
FetchByID
@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
Function
Generations
@Summary Submit luma generate video task @Schemes @Description @Accept json @Produce json @Param body body GenRequest true "submit generate video" @Su
api.go:19
Function
GetDownloadUrl
@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
Function
GetRootDir
()
common/utils.go:191
Function
GetUUID
()
common/utils.go:101
Function
Me
@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
Function
ToPtr
(arg T)
common/utils.go:198
Function
UnmarshalBodyReusable
(c *gin.Context, v any)
common/utils.go:154
Function
Upload
@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
Function
Usage
@Summary Get current user subscription usage @Schemes @Description @Accept json @Produce json @Success 200 {object} object "subscription info" @Router
api.go:152
Function
WrapperOpenAIError
(err error, code string)
common/openai_tools.go:120
Function
init
()
request.go:15
Function
init
()
common/utils.go:109
Function
init
()
docs/docs.go:362
Function
main
()
main.go:13