{"openapi":"3.1.0","info":{"title":"UnoRouter BFF","description":"Backend-for-frontend for UnoRouter. Pass-through verticals (auth, billing, token, affiliate, logs, pricing, dashboard, stats, settings, badge) proxy the upstream relay. The chat vertical owns local state and streaming logic.","version":"1.0.0","contact":{"name":"UnoRouter","url":"https://unorouter.com","email":"support@unorouter.com"}},"servers":[{"url":"https://unorouter.com/api"}],"x-service-info":{"categories":["ai","developer-tools"],"docs":{"apiReference":"https://unorouter.com/api/openapi","homepage":"https://unorouter.com","llms":"https://unorouter.com/llms.txt"}},"paths":{"/api/ai/chat/custom-forward/chat/completions":{"post":{"operationId":"postApiAiChatCustom-forwardChatCompletions"}},"/api/ai/chat/custom-forward/models":{"get":{"operationId":"getApiAiChatCustom-forwardModels"}},"/api/ai/chat/task/finalize":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["msgId","taskId","resultUrl"],"properties":{"msgId":{"maxLength":64,"type":"string"},"taskId":{"maxLength":64,"type":"string"},"resultUrl":{"maxLength":2048,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["msgId","taskId","resultUrl"],"properties":{"msgId":{"maxLength":64,"type":"string"},"taskId":{"maxLength":64,"type":"string"},"resultUrl":{"maxLength":2048,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["msgId","taskId","resultUrl"],"properties":{"msgId":{"maxLength":64,"type":"string"},"taskId":{"maxLength":64,"type":"string"},"resultUrl":{"maxLength":2048,"type":"string"}}}}}},"operationId":"postApiAiChatTaskFinalize"}},"/api/ai/chat/resume/{id}":{"get":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"getApiAiChatResumeById"},"delete":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"deleteApiAiChatResumeById"}},"/api/ai/chat/title":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"maxLength":10000,"type":"string"},"model":{"type":"string"},"titleModel":{"maxLength":128,"type":"string"},"titleGroup":{"maxLength":128,"type":"string"},"titlePrompt":{"maxLength":4096,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["text"],"properties":{"text":{"maxLength":10000,"type":"string"},"model":{"type":"string"},"titleModel":{"maxLength":128,"type":"string"},"titleGroup":{"maxLength":128,"type":"string"},"titlePrompt":{"maxLength":4096,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["text"],"properties":{"text":{"maxLength":10000,"type":"string"},"model":{"type":"string"},"titleModel":{"maxLength":128,"type":"string"},"titleGroup":{"maxLength":128,"type":"string"},"titlePrompt":{"maxLength":4096,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAiChatTitle"}},"/api/ai/chat/stream":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"maxLength":128,"type":"string"},"messages":{"maxItems":200,"type":"array","items":{}},"convId":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"webSearch":{"type":"boolean"},"group":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"overrides":{"type":"object","properties":{"reasoningEffort":{"anyOf":[{"anyOf":[{"const":"max","type":"string"},{"const":"xhigh","type":"string"},{"const":"high","type":"string"},{"const":"medium","type":"string"},{"const":"low","type":"string"},{"const":"minimal","type":"string"},{"const":"none","type":"string"}]},{"type":"null"}]},"chatMemory":{"anyOf":[{"minimum":1,"maximum":1000,"type":"number"},{"type":"null"}]},"systemPromptOverride":{"anyOf":[{"maxLength":100000,"type":"string"},{"type":"null"}]},"authorNote":{"anyOf":[{"maxLength":100000,"type":"string"},{"type":"null"}]},"authorNoteDepth":{"minimum":0,"maximum":100,"type":"number"},"webSearchEnabled":{"type":"boolean"},"webSearchEngine":{"type":"string","enum":["auto","native","exa","tavily"]},"webSearchContextSize":{"type":"string","enum":["low","medium","high"]},"temperature":{"anyOf":[{"minimum":0,"maximum":2,"type":"number"},{"type":"null"}]},"topP":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"topK":{"anyOf":[{"minimum":0,"maximum":1000,"type":"number"},{"type":"null"}]},"minP":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"topA":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"frequencyPenalty":{"anyOf":[{"minimum":-2,"maximum":2,"type":"number"},{"type":"null"}]},"presencePenalty":{"anyOf":[{"minimum":-2,"maximum":2,"type":"number"},{"type":"null"}]},"repetitionPenalty":{"anyOf":[{"minimum":0,"maximum":2,"type":"number"},{"type":"null"}]},"maxTokens":{"anyOf":[{"minimum":1,"maximum":1000000,"type":"number"},{"type":"null"}]},"extraBody":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}]},"streamingEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"autoScrollStream":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showReasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"memoryEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"imageEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"utilityModel":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"titleModel":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"titlePrompt":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"promptInstruction":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"imageModel":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}]},"imagePreview":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"useCharAvatarRef":{"anyOf":[{"type":"boolean"},{"type":"null"}]}}},"chatContext":{"type":"object","properties":{"persona":{"anyOf":[{},{"type":"null"}]},"characters":{"maxItems":64,"type":"array","items":{"type":"object","required":["binding","character"],"properties":{"binding":{"type":"object","required":["characterId"],"properties":{"characterId":{"type":"string"},"orderIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"isActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"overrides":{}}},"character":{}}}},"lorebooks":{"maxItems":16,"type":"array","items":{"type":"object","required":["lorebook","entries"],"properties":{"lorebook":{},"entries":{"maxItems":1024,"type":"array","items":{}}}}},"preset":{"anyOf":[{},{"type":"null"}]},"settings":{"anyOf":[{},{"type":"null"}]},"globalVars":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"globalVars":{"anyOf":[{"type":"string"},{"type":"null"}]},"speakingCharacterId":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"messageTimes":{"type":"object","patternProperties":{"^(.*)$":{"type":"number"}}},"clientEnv":{"type":"object","properties":{"viewportW":{"type":"number"},"viewportH":{"type":"number"},"locale":{"maxLength":32,"type":"string"},"timeZone":{"maxLength":64,"type":"string"}}}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"maxLength":128,"type":"string"},"messages":{"maxItems":200,"type":"array","items":{}},"convId":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"webSearch":{"type":"boolean"},"group":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"overrides":{"type":"object","properties":{"reasoningEffort":{"anyOf":[{"anyOf":[{"const":"max","type":"string"},{"const":"xhigh","type":"string"},{"const":"high","type":"string"},{"const":"medium","type":"string"},{"const":"low","type":"string"},{"const":"minimal","type":"string"},{"const":"none","type":"string"}]},{"type":"null"}]},"chatMemory":{"anyOf":[{"minimum":1,"maximum":1000,"type":"number"},{"type":"null"}]},"systemPromptOverride":{"anyOf":[{"maxLength":100000,"type":"string"},{"type":"null"}]},"authorNote":{"anyOf":[{"maxLength":100000,"type":"string"},{"type":"null"}]},"authorNoteDepth":{"minimum":0,"maximum":100,"type":"number"},"webSearchEnabled":{"type":"boolean"},"webSearchEngine":{"type":"string","enum":["auto","native","exa","tavily"]},"webSearchContextSize":{"type":"string","enum":["low","medium","high"]},"temperature":{"anyOf":[{"minimum":0,"maximum":2,"type":"number"},{"type":"null"}]},"topP":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"topK":{"anyOf":[{"minimum":0,"maximum":1000,"type":"number"},{"type":"null"}]},"minP":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"topA":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"frequencyPenalty":{"anyOf":[{"minimum":-2,"maximum":2,"type":"number"},{"type":"null"}]},"presencePenalty":{"anyOf":[{"minimum":-2,"maximum":2,"type":"number"},{"type":"null"}]},"repetitionPenalty":{"anyOf":[{"minimum":0,"maximum":2,"type":"number"},{"type":"null"}]},"maxTokens":{"anyOf":[{"minimum":1,"maximum":1000000,"type":"number"},{"type":"null"}]},"extraBody":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}]},"streamingEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"autoScrollStream":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showReasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"memoryEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"imageEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"utilityModel":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"titleModel":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"titlePrompt":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"promptInstruction":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"imageModel":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}]},"imagePreview":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"useCharAvatarRef":{"anyOf":[{"type":"boolean"},{"type":"null"}]}}},"chatContext":{"type":"object","properties":{"persona":{"anyOf":[{},{"type":"null"}]},"characters":{"maxItems":64,"type":"array","items":{"type":"object","required":["binding","character"],"properties":{"binding":{"type":"object","required":["characterId"],"properties":{"characterId":{"type":"string"},"orderIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"isActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"overrides":{}}},"character":{}}}},"lorebooks":{"maxItems":16,"type":"array","items":{"type":"object","required":["lorebook","entries"],"properties":{"lorebook":{},"entries":{"maxItems":1024,"type":"array","items":{}}}}},"preset":{"anyOf":[{},{"type":"null"}]},"settings":{"anyOf":[{},{"type":"null"}]},"globalVars":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"globalVars":{"anyOf":[{"type":"string"},{"type":"null"}]},"speakingCharacterId":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"messageTimes":{"type":"object","patternProperties":{"^(.*)$":{"type":"number"}}},"clientEnv":{"type":"object","properties":{"viewportW":{"type":"number"},"viewportH":{"type":"number"},"locale":{"maxLength":32,"type":"string"},"timeZone":{"maxLength":64,"type":"string"}}}}}},"multipart/form-data":{"schema":{"type":"object","required":["model","messages"],"properties":{"model":{"maxLength":128,"type":"string"},"messages":{"maxItems":200,"type":"array","items":{}},"convId":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"webSearch":{"type":"boolean"},"group":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"overrides":{"type":"object","properties":{"reasoningEffort":{"anyOf":[{"anyOf":[{"const":"max","type":"string"},{"const":"xhigh","type":"string"},{"const":"high","type":"string"},{"const":"medium","type":"string"},{"const":"low","type":"string"},{"const":"minimal","type":"string"},{"const":"none","type":"string"}]},{"type":"null"}]},"chatMemory":{"anyOf":[{"minimum":1,"maximum":1000,"type":"number"},{"type":"null"}]},"systemPromptOverride":{"anyOf":[{"maxLength":100000,"type":"string"},{"type":"null"}]},"authorNote":{"anyOf":[{"maxLength":100000,"type":"string"},{"type":"null"}]},"authorNoteDepth":{"minimum":0,"maximum":100,"type":"number"},"webSearchEnabled":{"type":"boolean"},"webSearchEngine":{"type":"string","enum":["auto","native","exa","tavily"]},"webSearchContextSize":{"type":"string","enum":["low","medium","high"]},"temperature":{"anyOf":[{"minimum":0,"maximum":2,"type":"number"},{"type":"null"}]},"topP":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"topK":{"anyOf":[{"minimum":0,"maximum":1000,"type":"number"},{"type":"null"}]},"minP":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"topA":{"anyOf":[{"minimum":0,"maximum":1,"type":"number"},{"type":"null"}]},"frequencyPenalty":{"anyOf":[{"minimum":-2,"maximum":2,"type":"number"},{"type":"null"}]},"presencePenalty":{"anyOf":[{"minimum":-2,"maximum":2,"type":"number"},{"type":"null"}]},"repetitionPenalty":{"anyOf":[{"minimum":0,"maximum":2,"type":"number"},{"type":"null"}]},"maxTokens":{"anyOf":[{"minimum":1,"maximum":1000000,"type":"number"},{"type":"null"}]},"extraBody":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}]},"streamingEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"autoScrollStream":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"showReasoning":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"memoryEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"imageEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"utilityModel":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"titleModel":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"titlePrompt":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"promptInstruction":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"imageModel":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}]},"imagePreview":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"useCharAvatarRef":{"anyOf":[{"type":"boolean"},{"type":"null"}]}}},"chatContext":{"type":"object","properties":{"persona":{"anyOf":[{},{"type":"null"}]},"characters":{"maxItems":64,"type":"array","items":{"type":"object","required":["binding","character"],"properties":{"binding":{"type":"object","required":["characterId"],"properties":{"characterId":{"type":"string"},"orderIndex":{"anyOf":[{"type":"number"},{"type":"null"}]},"isActive":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"overrides":{}}},"character":{}}}},"lorebooks":{"maxItems":16,"type":"array","items":{"type":"object","required":["lorebook","entries"],"properties":{"lorebook":{},"entries":{"maxItems":1024,"type":"array","items":{}}}}},"preset":{"anyOf":[{},{"type":"null"}]},"settings":{"anyOf":[{},{"type":"null"}]},"globalVars":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"globalVars":{"anyOf":[{"type":"string"},{"type":"null"}]},"speakingCharacterId":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"messageTimes":{"type":"object","patternProperties":{"^(.*)$":{"type":"number"}}},"clientEnv":{"type":"object","properties":{"viewportW":{"type":"number"},"viewportH":{"type":"number"},"locale":{"maxLength":32,"type":"string"},"timeZone":{"maxLength":64,"type":"string"}}}}}}}},"operationId":"postApiAiChatStream"}},"/api/ai/chat/forward/chat/completions":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["model"],"properties":{"model":{"maxLength":128,"type":"string"},"group":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]}}}},"application/x-www-form-urlencoded":{"schema":{"additionalProperties":true,"type":"object","required":["model"],"properties":{"model":{"maxLength":128,"type":"string"},"group":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]}}}},"multipart/form-data":{"schema":{"additionalProperties":true,"type":"object","required":["model"],"properties":{"model":{"maxLength":128,"type":"string"},"group":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]}}}}}},"operationId":"postApiAiChatForwardChatCompletions"}},"/api/ai/chat/web-search":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"maxLength":100000,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["text"],"properties":{"text":{"maxLength":100000,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["text"],"properties":{"text":{"maxLength":100000,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAiChatWeb-search"}},"/api/ai/chat/trigger-op/llm":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","model"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["prompt","model"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["prompt","model"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAiChatTrigger-opLlm"}},"/api/ai/chat/trigger-op/similarity":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["source","values"],"properties":{"source":{"maxLength":100000,"type":"string"},"values":{"maxItems":256,"type":"array","items":{"maxLength":100000,"type":"string"}}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["source","values"],"properties":{"source":{"maxLength":100000,"type":"string"},"values":{"maxItems":256,"type":"array","items":{"maxLength":100000,"type":"string"}}}}},"multipart/form-data":{"schema":{"type":"object","required":["source","values"],"properties":{"source":{"maxLength":100000,"type":"string"},"values":{"maxItems":256,"type":"array","items":{"maxLength":100000,"type":"string"}}}}}}},"operationId":"postApiAiChatTrigger-opSimilarity"}},"/api/ai/chat/trigger-op/imggen":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"negative":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"},"references":{"maxItems":6,"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"maxLength":15000000,"type":"string"}}}}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"negative":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"},"references":{"maxItems":6,"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"maxLength":15000000,"type":"string"}}}}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"negative":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"},"references":{"maxItems":6,"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"maxLength":15000000,"type":"string"}}}}},"additionalProperties":false}}}},"operationId":"postApiAiChatTrigger-opImggen"}},"/api/ai/chat/trigger-op/imgtask":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","model"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["prompt","model"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["prompt","model"],"properties":{"prompt":{"maxLength":100000,"type":"string"},"model":{"maxLength":128,"type":"string"},"group":{"maxLength":128,"type":"string"}}}}}},"operationId":"postApiAiChatTrigger-opImgtask"}},"/api/ai/chat/task/{taskId}":{"get":{"parameters":[{"name":"taskId","in":"path","required":true,"schema":{"pattern":"^[A-Za-z0-9_-]{1,128}$","type":"string"}}],"operationId":"getApiAiChatTaskByTaskId"}},"/api/ai/image/submit":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","prompt"],"properties":{"model":{"minLength":1,"maxLength":128,"type":"string"},"mode":{"type":"string","enum":["txt2img","img2img","upscale","adetailer","inpaint","edit"]},"prompt":{"minLength":1,"maxLength":8000,"type":"string"},"negativePrompt":{"maxLength":4000,"type":"string"},"params":{"type":"object","properties":{"width":{"minimum":64,"maximum":5060,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":64,"maximum":5060,"type":"integer"}]},"height":{"minimum":64,"maximum":5060,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":64,"maximum":5060,"type":"integer"}]},"steps":{"minimum":1,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":80,"type":"integer"}]},"cfg":{"minimum":0,"maximum":20,"type":"number"},"guidance":{"minimum":0,"maximum":20,"type":"number"},"sampler":{"maxLength":64,"type":"string"},"scheduler":{"maxLength":64,"type":"string"},"seed":{"minimum":0,"maximum":4294967295,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":4294967295,"type":"integer"}]},"hiresDenoise":{"minimum":0,"maximum":1,"type":"number"},"hiresUpscale":{"minimum":1,"maximum":4,"type":"number"},"n":{"minimum":1,"maximum":4,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":4,"type":"integer"}]},"quality":{"maxLength":32,"type":"string"},"outputFormat":{"maxLength":16,"type":"string"},"watermark":{"type":"boolean"},"background":{"maxLength":32,"type":"string"},"strength":{"minimum":0,"maximum":1,"type":"number"},"initImageUrl":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"maskUrl":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"vae":{"maxLength":128,"type":"string"},"hiresSteps":{"minimum":1,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":80,"type":"integer"}]},"embeddings":{"maxItems":6,"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}},"adetailer":{"type":"object","required":["yoloModel"],"properties":{"yoloModel":{"maxLength":128,"type":"string"},"prompt":{"maxLength":2000,"type":"string"},"negativePrompt":{"maxLength":2000,"type":"string"},"steps":{"minimum":0,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":80,"type":"integer"}]},"confidence":{"minimum":0,"maximum":1,"type":"number"},"maskBlur":{"minimum":0,"maximum":64,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":64,"type":"integer"}]},"denoise":{"minimum":0,"maximum":1,"type":"number"},"inpaintOnlyMasked":{"type":"boolean"},"loras":{"maxItems":6,"type":"array","items":{"type":"object","required":["name","weight"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}}}},"clipSkip":{"minimum":0,"maximum":12,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":12,"type":"integer"}]}}},"loras":{"maxItems":12,"type":"array","items":{"type":"object","required":["name","weight"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"},"source":{"maxLength":64,"type":"string"}}}},"references":{"maxItems":6,"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"name":{"maxLength":200,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}},"extraParams":{"type":"object","properties":{"air":{"maxLength":256,"type":"string"},"airName":{"maxLength":256,"type":"string"},"airArchitecture":{"maxLength":64,"type":"string"}}},"visibility":{"type":"string","enum":["private","unlisted","public"]},"sessionId":{"maxLength":64,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["model","prompt"],"properties":{"model":{"minLength":1,"maxLength":128,"type":"string"},"mode":{"type":"string","enum":["txt2img","img2img","upscale","adetailer","inpaint","edit"]},"prompt":{"minLength":1,"maxLength":8000,"type":"string"},"negativePrompt":{"maxLength":4000,"type":"string"},"params":{"type":"object","properties":{"width":{"minimum":64,"maximum":5060,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":64,"maximum":5060,"type":"integer"}]},"height":{"minimum":64,"maximum":5060,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":64,"maximum":5060,"type":"integer"}]},"steps":{"minimum":1,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":80,"type":"integer"}]},"cfg":{"minimum":0,"maximum":20,"type":"number"},"guidance":{"minimum":0,"maximum":20,"type":"number"},"sampler":{"maxLength":64,"type":"string"},"scheduler":{"maxLength":64,"type":"string"},"seed":{"minimum":0,"maximum":4294967295,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":4294967295,"type":"integer"}]},"hiresDenoise":{"minimum":0,"maximum":1,"type":"number"},"hiresUpscale":{"minimum":1,"maximum":4,"type":"number"},"n":{"minimum":1,"maximum":4,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":4,"type":"integer"}]},"quality":{"maxLength":32,"type":"string"},"outputFormat":{"maxLength":16,"type":"string"},"watermark":{"type":"boolean"},"background":{"maxLength":32,"type":"string"},"strength":{"minimum":0,"maximum":1,"type":"number"},"initImageUrl":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"maskUrl":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"vae":{"maxLength":128,"type":"string"},"hiresSteps":{"minimum":1,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":80,"type":"integer"}]},"embeddings":{"maxItems":6,"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}},"adetailer":{"type":"object","required":["yoloModel"],"properties":{"yoloModel":{"maxLength":128,"type":"string"},"prompt":{"maxLength":2000,"type":"string"},"negativePrompt":{"maxLength":2000,"type":"string"},"steps":{"minimum":0,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":80,"type":"integer"}]},"confidence":{"minimum":0,"maximum":1,"type":"number"},"maskBlur":{"minimum":0,"maximum":64,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":64,"type":"integer"}]},"denoise":{"minimum":0,"maximum":1,"type":"number"},"inpaintOnlyMasked":{"type":"boolean"},"loras":{"maxItems":6,"type":"array","items":{"type":"object","required":["name","weight"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}}}},"clipSkip":{"minimum":0,"maximum":12,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":12,"type":"integer"}]}}},"loras":{"maxItems":12,"type":"array","items":{"type":"object","required":["name","weight"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"},"source":{"maxLength":64,"type":"string"}}}},"references":{"maxItems":6,"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"name":{"maxLength":200,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}},"extraParams":{"type":"object","properties":{"air":{"maxLength":256,"type":"string"},"airName":{"maxLength":256,"type":"string"},"airArchitecture":{"maxLength":64,"type":"string"}}},"visibility":{"type":"string","enum":["private","unlisted","public"]},"sessionId":{"maxLength":64,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["model","prompt"],"properties":{"model":{"minLength":1,"maxLength":128,"type":"string"},"mode":{"type":"string","enum":["txt2img","img2img","upscale","adetailer","inpaint","edit"]},"prompt":{"minLength":1,"maxLength":8000,"type":"string"},"negativePrompt":{"maxLength":4000,"type":"string"},"params":{"type":"object","properties":{"width":{"minimum":64,"maximum":5060,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":64,"maximum":5060,"type":"integer"}]},"height":{"minimum":64,"maximum":5060,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":64,"maximum":5060,"type":"integer"}]},"steps":{"minimum":1,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":80,"type":"integer"}]},"cfg":{"minimum":0,"maximum":20,"type":"number"},"guidance":{"minimum":0,"maximum":20,"type":"number"},"sampler":{"maxLength":64,"type":"string"},"scheduler":{"maxLength":64,"type":"string"},"seed":{"minimum":0,"maximum":4294967295,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":4294967295,"type":"integer"}]},"hiresDenoise":{"minimum":0,"maximum":1,"type":"number"},"hiresUpscale":{"minimum":1,"maximum":4,"type":"number"},"n":{"minimum":1,"maximum":4,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":4,"type":"integer"}]},"quality":{"maxLength":32,"type":"string"},"outputFormat":{"maxLength":16,"type":"string"},"watermark":{"type":"boolean"},"background":{"maxLength":32,"type":"string"},"strength":{"minimum":0,"maximum":1,"type":"number"},"initImageUrl":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"maskUrl":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"vae":{"maxLength":128,"type":"string"},"hiresSteps":{"minimum":1,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":80,"type":"integer"}]},"embeddings":{"maxItems":6,"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}},"adetailer":{"type":"object","required":["yoloModel"],"properties":{"yoloModel":{"maxLength":128,"type":"string"},"prompt":{"maxLength":2000,"type":"string"},"negativePrompt":{"maxLength":2000,"type":"string"},"steps":{"minimum":0,"maximum":80,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":80,"type":"integer"}]},"confidence":{"minimum":0,"maximum":1,"type":"number"},"maskBlur":{"minimum":0,"maximum":64,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":64,"type":"integer"}]},"denoise":{"minimum":0,"maximum":1,"type":"number"},"inpaintOnlyMasked":{"type":"boolean"},"loras":{"maxItems":6,"type":"array","items":{"type":"object","required":["name","weight"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}}}},"clipSkip":{"minimum":0,"maximum":12,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":12,"type":"integer"}]}}},"loras":{"maxItems":12,"type":"array","items":{"type":"object","required":["name","weight"],"properties":{"name":{"maxLength":256,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"},"source":{"maxLength":64,"type":"string"}}}},"references":{"maxItems":6,"type":"array","items":{"type":"object","required":["url"],"properties":{"url":{"pattern":"^(data:image/(png|jpeg|webp);base64,|https://)","maxLength":8388608,"type":"string"},"name":{"maxLength":200,"type":"string"},"weight":{"minimum":0,"maximum":2,"type":"number"}}}},"extraParams":{"type":"object","properties":{"air":{"maxLength":256,"type":"string"},"airName":{"maxLength":256,"type":"string"},"airArchitecture":{"maxLength":64,"type":"string"}}},"visibility":{"type":"string","enum":["private","unlisted","public"]},"sessionId":{"maxLength":64,"type":"string"}}}}}},"operationId":"postApiAiImageSubmit"}},"/api/ai/image/catalog/loras":{"get":{"parameters":[{"name":"search","in":"query","required":false,"schema":{"maxLength":128,"type":"string"}},{"name":"architecture","in":"query","required":false,"schema":{"maxLength":32,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":50,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":50,"type":"integer"}]}}],"operationId":"getApiAiImageCatalogLoras"}},"/api/ai/image/catalog/embeddings":{"get":{"parameters":[{"name":"search","in":"query","required":false,"schema":{"maxLength":128,"type":"string"}},{"name":"architecture","in":"query","required":false,"schema":{"maxLength":32,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":50,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":1,"maximum":50,"type":"integer"}]}}],"operationId":"getApiAiImageCatalogEmbeddings"}},"/api/ai/image/checkpoints":{"get":{"parameters":[{"name":"q","in":"query","required":true,"schema":{"maxLength":512,"type":"string"}}],"operationId":"getApiAiImageCheckpoints"}},"/api/ai/image/civitai-versions":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"minLength":1,"maxLength":512,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["query"],"properties":{"query":{"minLength":1,"maxLength":512,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["query"],"properties":{"query":{"minLength":1,"maxLength":512,"type":"string"}}}}}},"operationId":"postApiAiImageCivitai-versions"}},"/api/ai/image/civitai-lora-versions":{"get":{"parameters":[{"name":"q","in":"query","required":true,"schema":{"maxLength":512,"type":"string"}}],"operationId":"getApiAiImageCivitai-lora-versions"}},"/api/auth/account/login":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string"},"turnstile":{"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string"},"turnstile":{"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string"},"turnstile":{"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAuthAccountLogin"}},"/api/auth/account/login/2fa":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"flow_token":{"type":"string"},"method":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"flow_token":{"type":"string"},"method":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"flow_token":{"type":"string"},"method":{"type":"string"}}}}}},"operationId":"postApiAuthAccountLogin2fa"}},"/api/auth/account/register":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["username","password","customer_type"],"properties":{"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"verification_code":{"type":"string"},"aff_code":{"type":"string"},"customer_type":{"type":"string","enum":["consumer","business"]},"turnstile":{"type":"string"},"terms_version":{"maxLength":16,"type":"string"},"terms_locale":{"maxLength":16,"type":"string"},"terms_text":{"maxLength":20000,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["username","password","customer_type"],"properties":{"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"verification_code":{"type":"string"},"aff_code":{"type":"string"},"customer_type":{"type":"string","enum":["consumer","business"]},"turnstile":{"type":"string"},"terms_version":{"maxLength":16,"type":"string"},"terms_locale":{"maxLength":16,"type":"string"},"terms_text":{"maxLength":20000,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["username","password","customer_type"],"properties":{"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"verification_code":{"type":"string"},"aff_code":{"type":"string"},"customer_type":{"type":"string","enum":["consumer","business"]},"turnstile":{"type":"string"},"terms_version":{"maxLength":16,"type":"string"},"terms_locale":{"maxLength":16,"type":"string"},"terms_text":{"maxLength":20000,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAuthAccountRegister"}},"/api/auth/account/logout":{"get":{"operationId":"getApiAuthAccountLogout"}},"/api/auth/account/expired":{"get":{"parameters":[{"name":"locale","in":"query","required":true,"schema":{"type":"string"}},{"name":"next","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiAuthAccountExpired"}},"/api/auth/account/self":{"get":{"operationId":"getApiAuthAccountSelf"}},"/api/auth/account/status":{"get":{"operationId":"getApiAuthAccountStatus"}},"/api/auth/account/oauth/state":{"get":{"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string"}},{"name":"redirect","in":"query","required":false,"schema":{"type":"string"}},{"name":"aff","in":"query","required":false,"schema":{"type":"string"}},{"name":"action","in":"query","required":false,"schema":{"type":"string"}},{"name":"customer_type","in":"query","required":false,"schema":{"type":"string","enum":["consumer","business"]}},{"name":"turnstile","in":"query","required":false,"schema":{"type":"string"}},{"name":"terms_version","in":"query","required":false,"schema":{"maxLength":16,"type":"string"}},{"name":"terms_locale","in":"query","required":false,"schema":{"maxLength":16,"type":"string"}},{"name":"terms_text","in":"query","required":false,"schema":{"maxLength":20000,"type":"string"}}],"operationId":"getApiAuthAccountOauthState"}},"/api/auth/account/oauth/callback":{"get":{"parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string"}},{"name":"error","in":"query","required":false,"schema":{"type":"string"}},{"name":"verify","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiAuthAccountOauthCallback"}},"/api/auth/account/bindings/{binding_type}":{"delete":{"parameters":[{"name":"binding_type","in":"path","required":true,"schema":{"type":"string","enum":["github","discord","google","oidc","wechat","telegram","linuxdo"]}}],"operationId":"deleteApiAuthAccountBindingsByBinding_type"}},"/api/auth/account/verification":{"get":{"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}},{"name":"turnstile","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiAuthAccountVerification"}},"/api/auth/account/reset-password":{"get":{"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}},{"name":"turnstile","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiAuthAccountReset-password"}},"/api/auth/account/reset-password/confirm":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","token"],"properties":{"email":{"type":"string"},"token":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["email","token"],"properties":{"email":{"type":"string"},"token":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email","token"],"properties":{"email":{"type":"string"},"token":{"type":"string"}}}}}},"operationId":"postApiAuthAccountReset-passwordConfirm"}},"/api/auth/settings/self":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string"},"original_password":{"type":"string"},"email":{"type":"string"},"verification_code":{"type":"string"},"display_name":{"type":"string"},"customer_type":{"type":"string","enum":["consumer","business"]}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"password":{"type":"string"},"original_password":{"type":"string"},"email":{"type":"string"},"verification_code":{"type":"string"},"display_name":{"type":"string"},"customer_type":{"type":"string","enum":["consumer","business"]}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"password":{"type":"string"},"original_password":{"type":"string"},"email":{"type":"string"},"verification_code":{"type":"string"},"display_name":{"type":"string"},"customer_type":{"type":"string","enum":["consumer","business"]}}}}}},"operationId":"putApiAuthSettingsSelf"},"delete":{"operationId":"deleteApiAuthSettingsSelf"}},"/api/auth/settings/token":{"post":{"operationId":"postApiAuthSettingsToken"}},"/api/auth/settings/setting":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["quota_warning_enabled","notify_type","quota_warning_threshold","accept_unset_model_ratio_model","record_ip_log"],"properties":{"quota_warning_enabled":{"type":"boolean"},"notify_type":{"type":"string"},"quota_warning_threshold":{"type":"number"},"accept_unset_model_ratio_model":{"type":"boolean"},"record_ip_log":{"type":"boolean"},"notification_email":{"type":"string"},"webhook_url":{"type":"string"},"webhook_secret":{"type":"string"},"bark_url":{"type":"string"},"gotify_url":{"type":"string"},"gotify_token":{"type":"string"},"gotify_priority":{"type":"number"},"upstream_model_update_notify_enabled":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["quota_warning_enabled","notify_type","quota_warning_threshold","accept_unset_model_ratio_model","record_ip_log"],"properties":{"quota_warning_enabled":{"type":"boolean"},"notify_type":{"type":"string"},"quota_warning_threshold":{"type":"number"},"accept_unset_model_ratio_model":{"type":"boolean"},"record_ip_log":{"type":"boolean"},"notification_email":{"type":"string"},"webhook_url":{"type":"string"},"webhook_secret":{"type":"string"},"bark_url":{"type":"string"},"gotify_url":{"type":"string"},"gotify_token":{"type":"string"},"gotify_priority":{"type":"number"},"upstream_model_update_notify_enabled":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]}}}},"multipart/form-data":{"schema":{"type":"object","required":["quota_warning_enabled","notify_type","quota_warning_threshold","accept_unset_model_ratio_model","record_ip_log"],"properties":{"quota_warning_enabled":{"type":"boolean"},"notify_type":{"type":"string"},"quota_warning_threshold":{"type":"number"},"accept_unset_model_ratio_model":{"type":"boolean"},"record_ip_log":{"type":"boolean"},"notification_email":{"type":"string"},"webhook_url":{"type":"string"},"webhook_secret":{"type":"string"},"bark_url":{"type":"string"},"gotify_url":{"type":"string"},"gotify_token":{"type":"string"},"gotify_priority":{"type":"number"},"upstream_model_update_notify_enabled":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]}}}}}},"operationId":"postApiAuthSettingsSetting"}},"/api/auth/settings/timeout":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["max_first_token_seconds","max_chain_first_token_seconds"],"properties":{"max_first_token_seconds":{"minimum":0,"maximum":600,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":600,"type":"integer"}]},"max_chain_first_token_seconds":{"minimum":0,"maximum":600,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":600,"type":"integer"}]}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["max_first_token_seconds","max_chain_first_token_seconds"],"properties":{"max_first_token_seconds":{"minimum":0,"maximum":600,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":600,"type":"integer"}]},"max_chain_first_token_seconds":{"minimum":0,"maximum":600,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":600,"type":"integer"}]}}}},"multipart/form-data":{"schema":{"type":"object","required":["max_first_token_seconds","max_chain_first_token_seconds"],"properties":{"max_first_token_seconds":{"minimum":0,"maximum":600,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":600,"type":"integer"}]},"max_chain_first_token_seconds":{"minimum":0,"maximum":600,"anyOf":[{"format":"integer","default":0,"type":"string"},{"minimum":0,"maximum":600,"type":"integer"}]}}}}}},"operationId":"putApiAuthSettingsTimeout"}},"/api/auth/settings/verification":{"get":{"parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}},{"name":"turnstile","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiAuthSettingsVerification"}},"/api/auth/settings/email/bind":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"type":"string"},"code":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"type":"string"},"code":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"type":"string"},"code":{"type":"string"}}}}}},"operationId":"postApiAuthSettingsEmailBind"}},"/api/auth/settings/2fa/status":{"get":{"operationId":"getApiAuthSettings2faStatus"}},"/api/auth/settings/verify/methods":{"get":{"parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]}}],"operationId":"getApiAuthSettingsVerifyMethods"}},"/api/auth/settings/verify":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["method","scope"],"properties":{"method":{"type":"string","enum":["2fa","password"]},"scope":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]},"code":{"type":"string"},"password":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["method","scope"],"properties":{"method":{"type":"string","enum":["2fa","password"]},"scope":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]},"code":{"type":"string"},"password":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["method","scope"],"properties":{"method":{"type":"string","enum":["2fa","password"]},"scope":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]},"code":{"type":"string"},"password":{"type":"string"}}}}}},"operationId":"postApiAuthSettingsVerify"}},"/api/auth/settings/verify/oauth":{"get":{"parameters":[{"name":"provider","in":"query","required":true,"schema":{"type":"string"}},{"name":"scope","in":"query","required":true,"schema":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]}},{"name":"redirect","in":"query","required":true,"schema":{"type":"string"}}],"operationId":"getApiAuthSettingsVerifyOauth"}},"/api/auth/settings/passkey/verify/begin":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scope"],"properties":{"scope":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["scope"],"properties":{"scope":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]}}}},"multipart/form-data":{"schema":{"type":"object","required":["scope"],"properties":{"scope":{"type":"string","enum":["2fa.setup","2fa.disable","passkey.register","passkey.delete","account.delete"]}}}}}},"operationId":"postApiAuthSettingsPasskeyVerifyBegin"}},"/api/auth/settings/passkey/verify/finish":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["flow_token","credential"],"properties":{"flow_token":{"type":"string"},"credential":{"type":"object","required":["id","rawId","type","response"],"properties":{"id":{"type":"string"},"rawId":{"type":"string"},"type":{"const":"public-key","type":"string"},"response":{"type":"object","required":["authenticatorData","clientDataJSON","signature"],"properties":{"authenticatorData":{"type":"string"},"clientDataJSON":{"type":"string"},"signature":{"type":"string"},"userHandle":{"type":"string"}}}}}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["flow_token","credential"],"properties":{"flow_token":{"type":"string"},"credential":{"type":"object","required":["id","rawId","type","response"],"properties":{"id":{"type":"string"},"rawId":{"type":"string"},"type":{"const":"public-key","type":"string"},"response":{"type":"object","required":["authenticatorData","clientDataJSON","signature"],"properties":{"authenticatorData":{"type":"string"},"clientDataJSON":{"type":"string"},"signature":{"type":"string"},"userHandle":{"type":"string"}}}}}}}},"multipart/form-data":{"schema":{"type":"object","required":["flow_token","credential"],"properties":{"flow_token":{"type":"string"},"credential":{"type":"object","required":["id","rawId","type","response"],"properties":{"id":{"type":"string"},"rawId":{"type":"string"},"type":{"const":"public-key","type":"string"},"response":{"type":"object","required":["authenticatorData","clientDataJSON","signature"],"properties":{"authenticatorData":{"type":"string"},"clientDataJSON":{"type":"string"},"signature":{"type":"string"},"userHandle":{"type":"string"}}}}}}}}}},"operationId":"postApiAuthSettingsPasskeyVerifyFinish"}},"/api/auth/settings/2fa/setup":{"post":{"operationId":"postApiAuthSettings2faSetup"}},"/api/auth/settings/2fa/enable":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code","flow_token"],"properties":{"code":{"type":"string"},"flow_token":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["code","flow_token"],"properties":{"code":{"type":"string"},"flow_token":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["code","flow_token"],"properties":{"code":{"type":"string"},"flow_token":{"type":"string"}}}}}},"operationId":"postApiAuthSettings2faEnable"}},"/api/auth/settings/2fa/disable":{"post":{"operationId":"postApiAuthSettings2faDisable"}},"/api/auth/settings/passkey":{"get":{"operationId":"getApiAuthSettingsPasskey"},"delete":{"operationId":"deleteApiAuthSettingsPasskey"}},"/api/auth/settings/passkey/register/begin":{"post":{"operationId":"postApiAuthSettingsPasskeyRegisterBegin"}},"/api/auth/settings/passkey/register/finish":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["flow_token","credential"],"properties":{"flow_token":{"type":"string"},"credential":{"type":"object","required":["id","rawId","type","response"],"properties":{"id":{"type":"string"},"rawId":{"type":"string"},"type":{"const":"public-key","type":"string"},"response":{"type":"object","required":["clientDataJSON","attestationObject"],"properties":{"clientDataJSON":{"type":"string"},"attestationObject":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}}},"authenticatorAttachment":{"type":"string"}}}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["flow_token","credential"],"properties":{"flow_token":{"type":"string"},"credential":{"type":"object","required":["id","rawId","type","response"],"properties":{"id":{"type":"string"},"rawId":{"type":"string"},"type":{"const":"public-key","type":"string"},"response":{"type":"object","required":["clientDataJSON","attestationObject"],"properties":{"clientDataJSON":{"type":"string"},"attestationObject":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}}},"authenticatorAttachment":{"type":"string"}}}}}},"multipart/form-data":{"schema":{"type":"object","required":["flow_token","credential"],"properties":{"flow_token":{"type":"string"},"credential":{"type":"object","required":["id","rawId","type","response"],"properties":{"id":{"type":"string"},"rawId":{"type":"string"},"type":{"const":"public-key","type":"string"},"response":{"type":"object","required":["clientDataJSON","attestationObject"],"properties":{"clientDataJSON":{"type":"string"},"attestationObject":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}}},"authenticatorAttachment":{"type":"string"}}}}}}}},"operationId":"postApiAuthSettingsPasskeyRegisterFinish"}},"/api/auth/free-consents/":{"get":{"operationId":"getApiAuthFree-consents"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","locale","text"],"properties":{"model":{"maxLength":255,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["model","locale","text"],"properties":{"model":{"maxLength":255,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["model","locale","text"],"properties":{"model":{"maxLength":255,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAuthFree-consents"},"delete":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"maxLength":255,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["model"],"properties":{"model":{"maxLength":255,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["model"],"properties":{"model":{"maxLength":255,"type":"string"}}}}}},"operationId":"deleteApiAuthFree-consents"}},"/api/auth/own-purpose-objection/":{"get":{"operationId":"getApiAuthOwn-purpose-objection"},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["objection"],"properties":{"objection":{"type":"boolean"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["objection"],"properties":{"objection":{"type":"boolean"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["objection"],"properties":{"objection":{"type":"boolean"}},"additionalProperties":false}}}},"operationId":"putApiAuthOwn-purpose-objection"}},"/api/auth/provider-consents/":{"get":{"parameters":[{"name":"model","in":"query","required":false,"schema":{"maxLength":255,"type":"string"}}],"operationId":"getApiAuthProvider-consents"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["aliases","model","locale","text"],"properties":{"aliases":{"maxItems":500,"type":"array","items":{"maxLength":16,"type":"string"}},"model":{"maxLength":255,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["aliases","model","locale","text"],"properties":{"aliases":{"maxItems":500,"type":"array","items":{"maxLength":16,"type":"string"}},"model":{"maxLength":255,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["aliases","model","locale","text"],"properties":{"aliases":{"maxItems":500,"type":"array","items":{"maxLength":16,"type":"string"}},"model":{"maxLength":255,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAuthProvider-consents"},"delete":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["alias"],"properties":{"alias":{"minLength":1,"maxLength":16,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["alias"],"properties":{"alias":{"minLength":1,"maxLength":16,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["alias"],"properties":{"alias":{"minLength":1,"maxLength":16,"type":"string"}}}}}},"operationId":"deleteApiAuthProvider-consents"}},"/api/auth/terms-acceptance/":{"get":{"operationId":"getApiAuthTerms-acceptance"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["version","locale","text"],"properties":{"version":{"maxLength":16,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["version","locale","text"],"properties":{"version":{"maxLength":16,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["version","locale","text"],"properties":{"version":{"maxLength":16,"type":"string"},"locale":{"maxLength":16,"type":"string"},"text":{"minLength":1,"maxLength":20000,"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiAuthTerms-acceptance"}},"/api/billing/core/topup-info":{"get":{"operationId":"getApiBillingCoreTopup-info"}},"/api/billing/core/subscription-plans":{"get":{"operationId":"getApiBillingCoreSubscription-plans"}},"/api/billing/core/subscription-self":{"get":{"operationId":"getApiBillingCoreSubscription-self"}},"/api/billing/core/portal":{"get":{"parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","enum":["stripe","creem"]}}],"operationId":"getApiBillingCorePortal"}},"/api/billing/core/transactions/topups":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiBillingCoreTransactionsTopups"}},"/api/billing/core/transactions/orders":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiBillingCoreTransactionsOrders"}},"/api/billing/core/subscription-preference":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["billing_preference"],"properties":{"billing_preference":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["billing_preference"],"properties":{"billing_preference":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["billing_preference"],"properties":{"billing_preference":{"type":"string"}}}}}},"operationId":"putApiBillingCoreSubscription-preference"}},"/api/billing/core/redeem":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key"],"properties":{"key":{"minLength":1,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["key"],"properties":{"key":{"minLength":1,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["key"],"properties":{"key":{"minLength":1,"type":"string"}}}}}},"operationId":"postApiBillingCoreRedeem"}},"/api/billing/core/stripe-pay":{"post":{"summary":"Start a Stripe checkout session for a balance top-up","x-payment-info":{"intent":"session","method":"stripe","amount":null,"currency":"USD","description":"Top-up balance via Stripe checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"success_url":{"type":"string"},"cancel_url":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"success_url":{"type":"string"},"cancel_url":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"success_url":{"type":"string"},"cancel_url":{"type":"string"}}}}}},"operationId":"postApiBillingCoreStripe-pay"}},"/api/billing/core/creem-pay":{"post":{"summary":"Start a Creem checkout session for a balance top-up","x-payment-info":{"intent":"session","method":"creem","amount":null,"currency":"USD","description":"Top-up balance via Creem checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["product_id","payment_method"],"properties":{"product_id":{"type":"string"},"payment_method":{"type":"string"},"amount":{"type":"number"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["product_id","payment_method"],"properties":{"product_id":{"type":"string"},"payment_method":{"type":"string"},"amount":{"type":"number"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["product_id","payment_method"],"properties":{"product_id":{"type":"string"},"payment_method":{"type":"string"},"amount":{"type":"number"}},"additionalProperties":false}}}},"operationId":"postApiBillingCoreCreem-pay"}},"/api/billing/core/nowpayments-pay":{"post":{"summary":"Start a NowPayments crypto checkout for a balance top-up","x-payment-info":{"intent":"session","method":"nowpayments","amount":null,"currency":"USD","description":"Top-up balance via NowPayments crypto checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"success_url":{"type":"string"},"cancel_url":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"success_url":{"type":"string"},"cancel_url":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"},"success_url":{"type":"string"},"cancel_url":{"type":"string"}}}}}},"operationId":"postApiBillingCoreNowpayments-pay"}},"/api/billing/core/delopay-pay":{"post":{"summary":"Start a DeloPay PayPal checkout for a balance top-up","x-payment-info":{"intent":"session","method":"delopay","amount":null,"currency":"USD","description":"Top-up balance via DeloPay PayPal checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["amount","payment_method"],"properties":{"amount":{"type":"number"},"payment_method":{"type":"string"}}}}}},"operationId":"postApiBillingCoreDelopay-pay"}},"/api/billing/core/subscription/stripe-pay":{"post":{"summary":"Start a Stripe checkout session for a subscription plan","x-payment-info":{"intent":"session","method":"stripe","amount":null,"currency":"USD","description":"Subscribe to a plan via Stripe checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}}}},"operationId":"postApiBillingCoreSubscriptionStripe-pay"}},"/api/billing/core/subscription/creem-pay":{"post":{"summary":"Start a Creem checkout session for a subscription plan","x-payment-info":{"intent":"session","method":"creem","amount":null,"currency":"USD","description":"Subscribe to a plan via Creem checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}}}},"operationId":"postApiBillingCoreSubscriptionCreem-pay"}},"/api/billing/core/subscription/nowpayments-pay":{"post":{"summary":"Start a NowPayments crypto checkout for a subscription plan","x-payment-info":{"intent":"session","method":"nowpayments","amount":null,"currency":"USD","description":"Subscribe to a plan via NowPayments crypto checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}}}},"operationId":"postApiBillingCoreSubscriptionNowpayments-pay"}},"/api/billing/core/subscription/delopay-pay":{"post":{"summary":"Start a DeloPay PayPal checkout for a subscription plan","x-payment-info":{"intent":"session","method":"delopay","amount":null,"currency":"USD","description":"Subscribe to a plan via DeloPay PayPal checkout URL"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["plan_id"],"properties":{"plan_id":{"type":"number"}}}}}},"operationId":"postApiBillingCoreSubscriptionDelopay-pay"}},"/api/billing/affiliate/invitees":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiBillingAffiliateInvitees"}},"/api/billing/affiliate/commissions":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiBillingAffiliateCommissions"}},"/api/billing/affiliate/transfer":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["quota"],"properties":{"quota":{"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["quota"],"properties":{"quota":{"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["quota"],"properties":{"quota":{"type":"number"}}}}}},"operationId":"postApiBillingAffiliateTransfer"}},"/api/billing/dashboard/quota":{"get":{"parameters":[{"name":"start_timestamp","in":"query","required":false,"schema":{"type":"number"}},{"name":"end_timestamp","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiBillingDashboardQuota"}},"/api/billing/dashboard/flow":{"get":{"parameters":[{"name":"start_timestamp","in":"query","required":true,"schema":{"type":"number"}},{"name":"end_timestamp","in":"query","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"token_id":{"type":"number"},"token_name":{"type":"string"},"use_group":{"type":"string"},"model_name":{"type":"string"},"channel_id":{"type":"number"},"channel_name":{"type":"string"},"token_used":{"type":"number"},"count":{"type":"number"},"quota":{"type":"number"}}}}}}}},"operationId":"getApiBillingDashboardFlow"}},"/api/billing/partner/redemption":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiBillingPartnerRedemption"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","quota"],"properties":{"name":{"minLength":1,"maxLength":20,"type":"string"},"quota":{"minimum":1,"type":"number"},"expired_time":{"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["name","quota"],"properties":{"name":{"minLength":1,"maxLength":20,"type":"string"},"quota":{"minimum":1,"type":"number"},"expired_time":{"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["name","quota"],"properties":{"name":{"minLength":1,"maxLength":20,"type":"string"},"quota":{"minimum":1,"type":"number"},"expired_time":{"type":"number"}}}}}},"operationId":"postApiBillingPartnerRedemption"}},"/api/billing/partner/redemption/{id}":{"delete":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9]{1,20}$","type":"string"}}],"operationId":"deleteApiBillingPartnerRedemptionById"}},"/api/billing/partner/grant":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["user_id","quota"],"properties":{"user_id":{"minimum":1,"type":"number"},"quota":{"minimum":1,"type":"number"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["user_id","quota"],"properties":{"user_id":{"minimum":1,"type":"number"},"quota":{"minimum":1,"type":"number"}}}},"multipart/form-data":{"schema":{"type":"object","required":["user_id","quota"],"properties":{"user_id":{"minimum":1,"type":"number"},"quota":{"minimum":1,"type":"number"}}}}}},"operationId":"postApiBillingPartnerGrant"}},"/api/billing/token/search":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string"}},{"name":"token","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiBillingTokenSearch"}},"/api/billing/token/":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}}}},"operationId":"postApiBillingToken"},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","status","name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"id":{"type":"number"},"status":{"type":"number"},"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["id","status","name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"id":{"type":"number"},"status":{"type":"number"},"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["id","status","name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"id":{"type":"number"},"status":{"type":"number"},"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}}}},"operationId":"putApiBillingToken"}},"/api/billing/token/status":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id","status","name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"id":{"type":"number"},"status":{"type":"number"},"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["id","status","name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"id":{"type":"number"},"status":{"type":"number"},"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}},"multipart/form-data":{"schema":{"type":"object","required":["id","status","name","remain_quota","expired_time","unlimited_quota","model_limits_enabled","model_limits","allow_ips","group","cross_group_retry"],"properties":{"id":{"type":"number"},"status":{"type":"number"},"name":{"type":"string"},"remain_quota":{"type":"number"},"expired_time":{"type":"number"},"unlimited_quota":{"type":"boolean"},"model_limits_enabled":{"type":"boolean"},"model_limits":{"type":"string"},"allow_ips":{"nullable":true,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"type":"string"},"cross_group_retry":{"type":"boolean"},"group_mapping":{"type":"string"},"auto_groups":{"nullable":true,"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"allow_user_quota_query":{"nullable":true,"anyOf":[{"type":"boolean"},{"type":"null"}]},"default_reasoning_effort":{"type":"string"}},"additionalProperties":false}}}},"operationId":"putApiBillingTokenStatus"}},"/api/billing/token/{id}/key":{"post":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9]{1,20}$","type":"string"}}],"operationId":"postApiBillingTokenByIdKey"}},"/api/billing/token/best-key":{"get":{"operationId":"getApiBillingTokenBest-key"}},"/api/billing/token/groups":{"get":{"operationId":"getApiBillingTokenGroups"}},"/api/billing/token/{id}":{"delete":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9]{1,20}$","type":"string"}}],"operationId":"deleteApiBillingTokenById"}},"/api/models/pricing/counts":{"get":{"operationId":"getApiModelsPricingCounts"}},"/api/models/pricing/vendors":{"get":{"operationId":"getApiModelsPricingVendors"}},"/api/models/pricing/browse":{"get":{"operationId":"getApiModelsPricingBrowse"}},"/api/models/pricing/catalog":{"get":{"operationId":"getApiModelsPricingCatalog"}},"/api/models/pricing/consent-models":{"get":{"operationId":"getApiModelsPricingConsent-models"}},"/api/models/pricing/image-models":{"get":{"operationId":"getApiModelsPricingImage-models"}},"/api/models/pricing/task-image-models":{"get":{"operationId":"getApiModelsPricingTask-image-models"}},"/api/models/pricing/vendor":{"get":{"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"operationId":"getApiModelsPricingVendor"}},"/api/models/pricing/detail":{"get":{"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string"}}],"operationId":"getApiModelsPricingDetail"}},"/api/models/pricing/model-groups":{"get":{"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string"}}],"operationId":"getApiModelsPricingModel-groups"}},"/api/models/pricing/subscriptions":{"get":{"operationId":"getApiModelsPricingSubscriptions"}},"/api/models/perf-metrics/summary":{"get":{"parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiModelsPerf-metricsSummary"}},"/api/models/perf-metrics/":{"get":{"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string"}},{"name":"hours","in":"query","required":false,"schema":{"type":"number"}}],"operationId":"getApiModelsPerf-metrics"}},"/api/models/model-status/page_compact":{"get":{"parameters":[{"name":"bucket","in":"query","required":false,"schema":{"type":"string"}},{"name":"hours","in":"query","required":false,"schema":{"anyOf":[{"format":"numeric","default":0,"type":"string"},{"type":"number"}]}}],"operationId":"getApiModelsModel-statusPage_compact"}},"/api/models/model-status/buckets":{"get":{"parameters":[{"name":"model","in":"query","required":true,"schema":{"minLength":1,"type":"string"}},{"name":"bucket","in":"query","required":false,"schema":{"type":"string"}},{"name":"hours","in":"query","required":false,"schema":{"anyOf":[{"format":"numeric","default":0,"type":"string"},{"type":"number"}]}}],"operationId":"getApiModelsModel-statusBuckets"}},"/api/models/model-status/components":{"get":{"operationId":"getApiModelsModel-statusComponents"}},"/api/models/rankings/":{"get":{"parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["today","week","month","year","all"]}}],"operationId":"getApiModelsRankings"}},"/api/models/benchmarks/":{"get":{"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string"}}],"operationId":"getApiModelsBenchmarks"}},"/api/models/model-ranking/":{"get":{"parameters":[{"name":"model","in":"query","required":true,"schema":{"type":"string"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["today","week","month","year","all"]}}],"operationId":"getApiModelsModel-ranking"}},"/api/models/verify/probe":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","headers","reqBody"],"properties":{"url":{"minLength":1,"maxLength":2048,"type":"string"},"headers":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"reqBody":{}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["url","headers","reqBody"],"properties":{"url":{"minLength":1,"maxLength":2048,"type":"string"},"headers":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"reqBody":{}}}},"multipart/form-data":{"schema":{"type":"object","required":["url","headers","reqBody"],"properties":{"url":{"minLength":1,"maxLength":2048,"type":"string"},"headers":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"reqBody":{}}}}}},"operationId":"postApiModelsVerifyProbe"}},"/api/models/model-tester/verify-and-publish":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["provider","baseUrl","apiKey","model"],"properties":{"provider":{"type":"string","enum":["anthropic","openai","gemini"]},"baseUrl":{"minLength":1,"maxLength":2048,"type":"string"},"apiKey":{"minLength":1,"maxLength":4096,"type":"string"},"model":{"minLength":1,"maxLength":256,"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["provider","baseUrl","apiKey","model"],"properties":{"provider":{"type":"string","enum":["anthropic","openai","gemini"]},"baseUrl":{"minLength":1,"maxLength":2048,"type":"string"},"apiKey":{"minLength":1,"maxLength":4096,"type":"string"},"model":{"minLength":1,"maxLength":256,"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["provider","baseUrl","apiKey","model"],"properties":{"provider":{"type":"string","enum":["anthropic","openai","gemini"]},"baseUrl":{"minLength":1,"maxLength":2048,"type":"string"},"apiKey":{"minLength":1,"maxLength":4096,"type":"string"},"model":{"minLength":1,"maxLength":256,"type":"string"}}}}}},"operationId":"postApiModelsModel-testerVerify-and-publish"}},"/api/models/model-tester/published/{id}":{"delete":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"operationId":"deleteApiModelsModel-testerPublishedById"}},"/api/models/model-tester/published/{id}/detail":{"get":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"operationId":"getApiModelsModel-testerPublishedByIdDetail"}},"/api/models/model-tester/stats":{"get":{"operationId":"getApiModelsModel-testerStats"}},"/api/models/model-tester/rankings":{"get":{"parameters":[{"name":"page","in":"query","required":false,"schema":{"minimum":1,"default":1,"type":"number"}},{"name":"pageSize","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}}],"operationId":"getApiModelsModel-testerRankings"}},"/api/models/model-tester/rankings/{host}":{"get":{"parameters":[{"name":"host","in":"path","required":true,"schema":{"minLength":1,"maxLength":256,"type":"string"}}],"operationId":"getApiModelsModel-testerRankingsByHost"}},"/api/models/model-tester/rankings/{host}/{model}":{"get":{"parameters":[{"name":"host","in":"path","required":true,"schema":{"minLength":1,"maxLength":256,"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"minLength":1,"maxLength":256,"type":"string"}}],"operationId":"getApiModelsModel-testerRankingsByHostByModel"}},"/api/ops/badge/all":{"get":{"parameters":[{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["en","de","fr","it","es","pt-BR","ja","ko","ru","tr","ar","he","hi","id","pl","vi","zh-CN","zh-TW"]}},{"name":"theme","in":"query","required":false,"schema":{"type":"string","enum":["dark","light"]}},{"name":"ref","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["svg","png"]}},{"name":"size","in":"query","required":false,"schema":{"type":"string","enum":["xs","sm","md","lg","xl","og","reddit","reddit-mobile","discord","discord-invite"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["banner","square","sponsor","providers","pricing","hero","referral","brand","chat","tester"]}},{"name":"model","in":"query","required":false,"schema":{"maxLength":256,"type":"string"}},{"name":"models","in":"query","required":false,"schema":{"maxLength":600,"type":"string"}}],"operationId":"getApiOpsBadgeAll"}},"/api/ops/badge/{name}":{"get":{"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["en","de","fr","it","es","pt-BR","ja","ko","ru","tr","ar","he","hi","id","pl","vi","zh-CN","zh-TW"]}},{"name":"theme","in":"query","required":false,"schema":{"type":"string","enum":["dark","light"]}},{"name":"ref","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["svg","png"]}},{"name":"size","in":"query","required":false,"schema":{"type":"string","enum":["xs","sm","md","lg","xl","og","reddit","reddit-mobile","discord","discord-invite"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["banner","square","sponsor","providers","pricing","hero","referral","brand","chat","tester"]}},{"name":"model","in":"query","required":false,"schema":{"maxLength":256,"type":"string"}},{"name":"models","in":"query","required":false,"schema":{"maxLength":600,"type":"string"}}],"operationId":"getApiOpsBadgeByName"}},"/api/ops/health/":{"get":{"operationId":"getApiOpsHealth"}},"/api/ops/logs/":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}},{"name":"type","in":"query","required":false,"schema":{"type":"number"}},{"name":"start_timestamp","in":"query","required":false,"schema":{"type":"number"}},{"name":"end_timestamp","in":"query","required":false,"schema":{"type":"number"}},{"name":"token_name","in":"query","required":false,"schema":{"type":"string"}},{"name":"model_name","in":"query","required":false,"schema":{"type":"string"}},{"name":"group","in":"query","required":false,"schema":{"type":"string"}},{"name":"request_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"upstream_request_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"subscription_plan","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiOpsLogs"}},"/api/ops/logs/by-request":{"get":{"parameters":[{"name":"request_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"object","required":["channel","quota","promptTokens","completionTokens","useTime","modelName","group"],"properties":{"channel":{"default":null,"anyOf":[{"type":"string"},{"type":"null"}]},"quota":{"default":null,"anyOf":[{"type":"number"},{"type":"null"}]},"promptTokens":{"default":null,"anyOf":[{"type":"number"},{"type":"null"}]},"completionTokens":{"default":null,"anyOf":[{"type":"number"},{"type":"null"}]},"useTime":{"default":null,"anyOf":[{"type":"number"},{"type":"null"}]},"modelName":{"default":null,"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"default":null,"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}}},"operationId":"getApiOpsLogsBy-request"}},"/api/ops/logs/stat":{"get":{"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"number"}},{"name":"start_timestamp","in":"query","required":false,"schema":{"type":"number"}},{"name":"end_timestamp","in":"query","required":false,"schema":{"type":"number"}},{"name":"token_name","in":"query","required":false,"schema":{"type":"string"}},{"name":"model_name","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiOpsLogsStat"}},"/api/ops/logs/midjourney":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}},{"name":"mj_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"start_timestamp","in":"query","required":false,"schema":{"description":"Start timestamp in milliseconds","type":"string"}},{"name":"end_timestamp","in":"query","required":false,"schema":{"description":"End timestamp in milliseconds","type":"string"}}],"operationId":"getApiOpsLogsMidjourney"}},"/api/ops/logs/task":{"get":{"parameters":[{"name":"p","in":"query","required":false,"schema":{"type":"number"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"number"}},{"name":"start_timestamp","in":"query","required":false,"schema":{"description":"Start timestamp in seconds","type":"number"}},{"name":"end_timestamp","in":"query","required":false,"schema":{"description":"End timestamp in seconds","type":"number"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"task_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"action","in":"query","required":false,"schema":{"type":"string"}}],"operationId":"getApiOpsLogsTask"}},"/api/ops/stats/history":{"get":{"operationId":"getApiOpsStatsHistory"}}},"components":{"schemas":{}}}