swagger.yaml 187 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811
  1. definitions:
  2. adaptor.ConfigTemplate:
  3. properties:
  4. description:
  5. type: string
  6. example: {}
  7. name:
  8. type: string
  9. required:
  10. type: boolean
  11. type:
  12. $ref: '#/definitions/adaptor.ConfigType'
  13. type: object
  14. adaptor.ConfigTemplates:
  15. additionalProperties:
  16. $ref: '#/definitions/adaptor.ConfigTemplate'
  17. type: object
  18. adaptor.ConfigType:
  19. enum:
  20. - string
  21. - number
  22. - bool
  23. - object
  24. type: string
  25. x-enum-varnames:
  26. - ConfigTypeString
  27. - ConfigTypeNumber
  28. - ConfigTypeBool
  29. - ConfigTypeObject
  30. adaptors.AdaptorMeta:
  31. properties:
  32. config:
  33. $ref: '#/definitions/adaptor.ConfigTemplates'
  34. defaultBaseUrl:
  35. type: string
  36. fetures:
  37. items:
  38. type: string
  39. type: array
  40. keyHelp:
  41. type: string
  42. name:
  43. type: string
  44. type: object
  45. controller.AddChannelRequest:
  46. properties:
  47. base_url:
  48. type: string
  49. config:
  50. $ref: '#/definitions/model.ChannelConfig'
  51. key:
  52. type: string
  53. model_mapping:
  54. additionalProperties:
  55. type: string
  56. type: object
  57. models:
  58. items:
  59. type: string
  60. type: array
  61. name:
  62. type: string
  63. priority:
  64. type: integer
  65. sets:
  66. items:
  67. type: string
  68. type: array
  69. status:
  70. type: integer
  71. type:
  72. $ref: '#/definitions/model.ChannelType'
  73. type: object
  74. controller.AddTokenRequest:
  75. properties:
  76. models:
  77. items:
  78. type: string
  79. type: array
  80. name:
  81. type: string
  82. quota:
  83. type: number
  84. subnets:
  85. items:
  86. type: string
  87. type: array
  88. type: object
  89. controller.BuiltinModelConfig:
  90. properties:
  91. config:
  92. additionalProperties: {}
  93. type: object
  94. created_at:
  95. type: string
  96. exclude_from_tests:
  97. type: boolean
  98. force_save_detail:
  99. type: boolean
  100. image_prices:
  101. additionalProperties:
  102. format: float64
  103. type: number
  104. description: map[size]price_per_image
  105. type: object
  106. image_quality_prices:
  107. additionalProperties:
  108. additionalProperties:
  109. format: float64
  110. type: number
  111. type: object
  112. description: map[size]map[quality]price_per_image
  113. type: object
  114. max_error_rate:
  115. type: number
  116. model:
  117. type: string
  118. owner:
  119. $ref: '#/definitions/model.ModelOwner'
  120. plugin:
  121. additionalProperties:
  122. items:
  123. type: integer
  124. type: array
  125. type: object
  126. price:
  127. $ref: '#/definitions/model.Price'
  128. retry_times:
  129. type: integer
  130. rpm:
  131. type: integer
  132. timeout_config:
  133. $ref: '#/definitions/model.TimeoutConfig'
  134. tpm:
  135. type: integer
  136. type:
  137. $ref: '#/definitions/mode.Mode'
  138. updated_at:
  139. type: string
  140. warn_error_rate:
  141. type: number
  142. type: object
  143. controller.CreateGroupRequest:
  144. properties:
  145. available_sets:
  146. items:
  147. type: string
  148. type: array
  149. balance_alert_enabled:
  150. type: boolean
  151. balance_alert_threshold:
  152. type: number
  153. rpm_ratio:
  154. type: number
  155. tpm_ratio:
  156. type: number
  157. type: object
  158. controller.EmbedMCP:
  159. properties:
  160. config_templates:
  161. $ref: '#/definitions/controller.EmbedMCPConfigTemplates'
  162. embed_config:
  163. $ref: '#/definitions/model.MCPEmbeddingConfig'
  164. enabled:
  165. type: boolean
  166. github_url:
  167. type: string
  168. id:
  169. type: string
  170. name:
  171. type: string
  172. name_cn:
  173. type: string
  174. readme:
  175. type: string
  176. readme_cn:
  177. type: string
  178. readme_cn_url:
  179. type: string
  180. readme_url:
  181. type: string
  182. tags:
  183. items:
  184. type: string
  185. type: array
  186. type: object
  187. controller.EmbedMCPConfigTemplate:
  188. properties:
  189. description:
  190. type: string
  191. example:
  192. type: string
  193. name:
  194. type: string
  195. required:
  196. type: boolean
  197. type: object
  198. controller.EmbedMCPConfigTemplates:
  199. additionalProperties:
  200. $ref: '#/definitions/controller.EmbedMCPConfigTemplate'
  201. type: object
  202. controller.EnabledModelChannel:
  203. properties:
  204. id:
  205. type: integer
  206. name:
  207. type: string
  208. type:
  209. $ref: '#/definitions/model.ChannelType'
  210. type: object
  211. controller.GetModelConfigsByModelsContainsRequest:
  212. properties:
  213. models:
  214. items:
  215. type: string
  216. type: array
  217. type: object
  218. controller.GroupMCPResponse:
  219. properties:
  220. created_at:
  221. type: string
  222. description:
  223. type: string
  224. endpoints:
  225. $ref: '#/definitions/controller.MCPEndpoint'
  226. group_id:
  227. type: string
  228. id:
  229. type: string
  230. name:
  231. type: string
  232. openapi_config:
  233. $ref: '#/definitions/model.MCPOpenAPIConfig'
  234. proxy_config:
  235. $ref: '#/definitions/model.GroupMCPProxyConfig'
  236. status:
  237. $ref: '#/definitions/model.GroupMCPStatus'
  238. type:
  239. $ref: '#/definitions/model.GroupMCPType'
  240. update_at:
  241. type: string
  242. type: object
  243. controller.GroupModel:
  244. properties:
  245. config:
  246. additionalProperties: {}
  247. type: object
  248. created_at:
  249. type: integer
  250. enabled_plugins:
  251. items:
  252. type: string
  253. type: array
  254. image_prices:
  255. additionalProperties:
  256. format: float64
  257. type: number
  258. description: map[size]price_per_image
  259. type: object
  260. image_quality_prices:
  261. additionalProperties:
  262. additionalProperties:
  263. format: float64
  264. type: number
  265. type: object
  266. description: map[size]map[quality]price_per_image
  267. type: object
  268. model:
  269. type: string
  270. owner:
  271. $ref: '#/definitions/model.ModelOwner'
  272. price:
  273. $ref: '#/definitions/model.Price'
  274. rpm:
  275. type: integer
  276. tpm:
  277. type: integer
  278. type:
  279. $ref: '#/definitions/mode.Mode'
  280. updated_at:
  281. type: integer
  282. type: object
  283. controller.GroupPublicMCPDetailResponse:
  284. properties:
  285. created_at:
  286. type: string
  287. description:
  288. type: string
  289. description_cn:
  290. type: string
  291. embed_config:
  292. $ref: '#/definitions/model.MCPEmbeddingConfig'
  293. endpoints:
  294. $ref: '#/definitions/controller.MCPEndpoint'
  295. github_url:
  296. type: string
  297. hosted:
  298. type: boolean
  299. id:
  300. type: string
  301. logo_url:
  302. type: string
  303. name:
  304. type: string
  305. name_cn:
  306. type: string
  307. openapi_config:
  308. $ref: '#/definitions/model.MCPOpenAPIConfig'
  309. params:
  310. additionalProperties:
  311. type: string
  312. type: object
  313. price:
  314. $ref: '#/definitions/model.MCPPrice'
  315. proxy_config:
  316. $ref: '#/definitions/model.PublicMCPProxyConfig'
  317. readme:
  318. type: string
  319. readme_cn:
  320. type: string
  321. readme_cn_url:
  322. type: string
  323. readme_url:
  324. type: string
  325. reusing:
  326. additionalProperties:
  327. $ref: '#/definitions/model.ReusingParam'
  328. type: object
  329. status:
  330. $ref: '#/definitions/model.PublicMCPStatus'
  331. tags:
  332. items:
  333. type: string
  334. type: array
  335. test_config:
  336. allOf:
  337. - $ref: '#/definitions/model.TestConfig'
  338. description: only used by list tools
  339. tools:
  340. items:
  341. $ref: '#/definitions/mcp.Tool'
  342. type: array
  343. type:
  344. $ref: '#/definitions/model.PublicMCPType'
  345. update_at:
  346. type: string
  347. type: object
  348. controller.GroupPublicMCPResponse:
  349. properties:
  350. created_at:
  351. type: string
  352. description:
  353. type: string
  354. description_cn:
  355. type: string
  356. embed_config:
  357. $ref: '#/definitions/model.MCPEmbeddingConfig'
  358. github_url:
  359. type: string
  360. hosted:
  361. type: boolean
  362. id:
  363. type: string
  364. logo_url:
  365. type: string
  366. name:
  367. type: string
  368. name_cn:
  369. type: string
  370. openapi_config:
  371. $ref: '#/definitions/model.MCPOpenAPIConfig'
  372. price:
  373. $ref: '#/definitions/model.MCPPrice'
  374. proxy_config:
  375. $ref: '#/definitions/model.PublicMCPProxyConfig'
  376. readme:
  377. type: string
  378. readme_cn:
  379. type: string
  380. readme_cn_url:
  381. type: string
  382. readme_url:
  383. type: string
  384. status:
  385. $ref: '#/definitions/model.PublicMCPStatus'
  386. tags:
  387. items:
  388. type: string
  389. type: array
  390. test_config:
  391. allOf:
  392. - $ref: '#/definitions/model.TestConfig'
  393. description: only used by list tools
  394. type:
  395. $ref: '#/definitions/model.PublicMCPType'
  396. update_at:
  397. type: string
  398. type: object
  399. controller.GroupResponse:
  400. properties:
  401. accessed_at:
  402. type: string
  403. available_sets:
  404. items:
  405. type: string
  406. type: array
  407. balance_alert_enabled:
  408. type: boolean
  409. balance_alert_threshold:
  410. type: number
  411. created_at:
  412. type: string
  413. id:
  414. type: string
  415. request_count:
  416. type: integer
  417. rpm_ratio:
  418. type: number
  419. status:
  420. type: integer
  421. tpm_ratio:
  422. type: number
  423. used_amount:
  424. type: number
  425. type: object
  426. controller.ImportChannelFromOneAPIRequest:
  427. properties:
  428. dsn:
  429. type: string
  430. type: object
  431. controller.MCPEndpoint:
  432. properties:
  433. host:
  434. type: string
  435. sse:
  436. type: string
  437. streamable_http:
  438. type: string
  439. type: object
  440. controller.OpenAIModelPermission:
  441. properties:
  442. allow_create_engine:
  443. type: boolean
  444. allow_fine_tuning:
  445. type: boolean
  446. allow_logprobs:
  447. type: boolean
  448. allow_sampling:
  449. type: boolean
  450. allow_search_indices:
  451. type: boolean
  452. allow_view:
  453. type: boolean
  454. created:
  455. type: integer
  456. group:
  457. type: string
  458. id:
  459. type: string
  460. is_blocking:
  461. type: boolean
  462. object:
  463. type: string
  464. organization:
  465. type: string
  466. type: object
  467. controller.OpenAIModels:
  468. properties:
  469. created:
  470. type: integer
  471. id:
  472. type: string
  473. object:
  474. type: string
  475. owned_by:
  476. type: string
  477. parent:
  478. type: string
  479. permission:
  480. items:
  481. $ref: '#/definitions/controller.OpenAIModelPermission'
  482. type: array
  483. root:
  484. type: string
  485. type: object
  486. controller.PublicMCPResponse:
  487. properties:
  488. created_at:
  489. type: string
  490. description:
  491. type: string
  492. description_cn:
  493. type: string
  494. embed_config:
  495. $ref: '#/definitions/model.MCPEmbeddingConfig'
  496. endpoints:
  497. $ref: '#/definitions/controller.MCPEndpoint'
  498. github_url:
  499. type: string
  500. id:
  501. type: string
  502. logo_url:
  503. type: string
  504. name:
  505. type: string
  506. name_cn:
  507. type: string
  508. openapi_config:
  509. $ref: '#/definitions/model.MCPOpenAPIConfig'
  510. price:
  511. $ref: '#/definitions/model.MCPPrice'
  512. proxy_config:
  513. $ref: '#/definitions/model.PublicMCPProxyConfig'
  514. readme:
  515. type: string
  516. readme_cn:
  517. type: string
  518. readme_cn_url:
  519. type: string
  520. readme_url:
  521. type: string
  522. status:
  523. $ref: '#/definitions/model.PublicMCPStatus'
  524. tags:
  525. items:
  526. type: string
  527. type: array
  528. test_config:
  529. allOf:
  530. - $ref: '#/definitions/model.TestConfig'
  531. description: only used by list tools
  532. type:
  533. $ref: '#/definitions/model.PublicMCPType'
  534. update_at:
  535. type: string
  536. type: object
  537. controller.SaveEmbedMCPRequest:
  538. properties:
  539. enabled:
  540. type: boolean
  541. id:
  542. type: string
  543. init_config:
  544. additionalProperties:
  545. type: string
  546. type: object
  547. type: object
  548. controller.SaveGroupModelConfigRequest:
  549. properties:
  550. force_save_detail:
  551. type: boolean
  552. image_prices:
  553. additionalProperties:
  554. format: float64
  555. type: number
  556. type: object
  557. model:
  558. type: string
  559. override_force_save_detail:
  560. type: boolean
  561. override_limit:
  562. type: boolean
  563. override_price:
  564. type: boolean
  565. override_retry_times:
  566. type: boolean
  567. price:
  568. $ref: '#/definitions/model.Price'
  569. retry_times:
  570. type: integer
  571. rpm:
  572. type: integer
  573. tpm:
  574. type: integer
  575. type: object
  576. controller.SaveModelConfigsRequest:
  577. properties:
  578. config:
  579. additionalProperties: {}
  580. type: object
  581. created_at:
  582. type: string
  583. exclude_from_tests:
  584. type: boolean
  585. force_save_detail:
  586. type: boolean
  587. image_prices:
  588. additionalProperties:
  589. format: float64
  590. type: number
  591. description: map[size]price_per_image
  592. type: object
  593. image_quality_prices:
  594. additionalProperties:
  595. additionalProperties:
  596. format: float64
  597. type: number
  598. type: object
  599. description: map[size]map[quality]price_per_image
  600. type: object
  601. max_error_rate:
  602. type: number
  603. model:
  604. type: string
  605. owner:
  606. $ref: '#/definitions/model.ModelOwner'
  607. plugin:
  608. additionalProperties:
  609. items:
  610. type: integer
  611. type: array
  612. type: object
  613. price:
  614. $ref: '#/definitions/model.Price'
  615. retry_times:
  616. type: integer
  617. rpm:
  618. type: integer
  619. timeout_config:
  620. $ref: '#/definitions/model.TimeoutConfig'
  621. tpm:
  622. type: integer
  623. type:
  624. $ref: '#/definitions/mode.Mode'
  625. updated_at:
  626. type: string
  627. warn_error_rate:
  628. type: number
  629. type: object
  630. controller.StatusData:
  631. properties:
  632. startTime:
  633. type: integer
  634. type: object
  635. controller.TestResult:
  636. properties:
  637. data:
  638. $ref: '#/definitions/model.ChannelTest'
  639. message:
  640. type: string
  641. success:
  642. type: boolean
  643. type: object
  644. controller.TokenResponse:
  645. properties:
  646. accessed_at:
  647. type: string
  648. created_at:
  649. type: string
  650. group:
  651. type: string
  652. id:
  653. type: integer
  654. key:
  655. type: string
  656. models:
  657. items:
  658. type: string
  659. type: array
  660. name:
  661. type: string
  662. period_last_update_amount:
  663. description: Total usage at last period reset
  664. type: number
  665. period_last_update_time:
  666. description: Last time period was reset
  667. type: string
  668. period_quota:
  669. type: number
  670. period_type:
  671. description: daily, weekly, monthly, default is monthly
  672. type: string
  673. quota:
  674. type: number
  675. request_count:
  676. type: integer
  677. status:
  678. type: integer
  679. subnets:
  680. items:
  681. type: string
  682. type: array
  683. used_amount:
  684. type: number
  685. type: object
  686. controller.UpdateChannelStatusRequest:
  687. properties:
  688. status:
  689. type: integer
  690. type: object
  691. controller.UpdateGroupMCPStatusRequest:
  692. properties:
  693. status:
  694. $ref: '#/definitions/model.GroupMCPStatus'
  695. type: object
  696. controller.UpdateGroupRPMRatioRequest:
  697. properties:
  698. rpm_ratio:
  699. type: number
  700. type: object
  701. controller.UpdateGroupStatusRequest:
  702. properties:
  703. status:
  704. type: integer
  705. type: object
  706. controller.UpdateGroupTPMRatioRequest:
  707. properties:
  708. tpm_ratio:
  709. type: number
  710. type: object
  711. controller.UpdateGroupsStatusRequest:
  712. properties:
  713. groups:
  714. items:
  715. type: string
  716. type: array
  717. status:
  718. type: integer
  719. type: object
  720. controller.UpdatePublicMCPStatusRequest:
  721. properties:
  722. status:
  723. $ref: '#/definitions/model.PublicMCPStatus'
  724. type: object
  725. controller.UpdateTokenNameRequest:
  726. properties:
  727. name:
  728. type: string
  729. type: object
  730. controller.UpdateTokenStatusRequest:
  731. properties:
  732. status:
  733. type: integer
  734. type: object
  735. mcp.Meta:
  736. properties:
  737. additionalFields:
  738. additionalProperties: {}
  739. description: |-
  740. AdditionalFields are any fields present in the Meta that are not
  741. otherwise defined in the protocol.
  742. type: object
  743. progressToken:
  744. description: |-
  745. If specified, the caller is requesting out-of-band progress
  746. notifications for this request (as represented by
  747. notifications/progress). The value of this parameter is an
  748. opaque token that will be attached to any subsequent
  749. notifications. The receiver is not obligated to provide these
  750. notifications.
  751. type: object
  752. mcp.Tool:
  753. properties:
  754. _meta:
  755. allOf:
  756. - $ref: '#/definitions/mcp.Meta'
  757. description: Meta is a metadata object that is reserved by MCP for storing
  758. additional information.
  759. annotations:
  760. allOf:
  761. - $ref: '#/definitions/mcp.ToolAnnotation'
  762. description: Optional properties describing tool behavior
  763. description:
  764. description: A human-readable description of the tool.
  765. type: string
  766. inputSchema:
  767. allOf:
  768. - $ref: '#/definitions/mcp.ToolInputSchema'
  769. description: A JSON Schema object defining the expected parameters for the
  770. tool.
  771. name:
  772. description: The name of the tool.
  773. type: string
  774. type: object
  775. mcp.ToolAnnotation:
  776. properties:
  777. destructiveHint:
  778. description: If true, the tool may perform destructive updates
  779. type: boolean
  780. idempotentHint:
  781. description: If true, repeated calls with same args have no additional effect
  782. type: boolean
  783. openWorldHint:
  784. description: If true, tool interacts with external entities
  785. type: boolean
  786. readOnlyHint:
  787. description: If true, the tool does not modify its environment
  788. type: boolean
  789. title:
  790. description: Human-readable title for the tool
  791. type: string
  792. type: object
  793. mcp.ToolInputSchema:
  794. properties:
  795. $defs:
  796. additionalProperties: {}
  797. type: object
  798. properties:
  799. additionalProperties: {}
  800. type: object
  801. required:
  802. items:
  803. type: string
  804. type: array
  805. type:
  806. type: string
  807. type: object
  808. middleware.APIResponse:
  809. properties:
  810. data: {}
  811. message:
  812. type: string
  813. success:
  814. type: boolean
  815. type: object
  816. mode.Mode:
  817. enum:
  818. - 0
  819. - 1
  820. - 2
  821. - 3
  822. - 4
  823. - 5
  824. - 6
  825. - 7
  826. - 8
  827. - 9
  828. - 10
  829. - 11
  830. - 12
  831. - 13
  832. - 14
  833. - 15
  834. - 16
  835. - 17
  836. - 18
  837. - 19
  838. - 20
  839. type: integer
  840. x-enum-varnames:
  841. - Unknown
  842. - ChatCompletions
  843. - Completions
  844. - Embeddings
  845. - Moderations
  846. - ImagesGenerations
  847. - ImagesEdits
  848. - AudioSpeech
  849. - AudioTranscription
  850. - AudioTranslation
  851. - Rerank
  852. - ParsePdf
  853. - Anthropic
  854. - VideoGenerationsJobs
  855. - VideoGenerationsGetJobs
  856. - VideoGenerationsContent
  857. - Responses
  858. - ResponsesGet
  859. - ResponsesDelete
  860. - ResponsesCancel
  861. - ResponsesInputItems
  862. model.AnthropicMessageRequest:
  863. properties:
  864. messages:
  865. items:
  866. $ref: '#/definitions/model.Message'
  867. type: array
  868. model:
  869. type: string
  870. type: object
  871. model.Channel:
  872. properties:
  873. balance:
  874. type: number
  875. balance_threshold:
  876. type: number
  877. balance_updated_at:
  878. type: string
  879. base_url:
  880. type: string
  881. channel_tests:
  882. items:
  883. $ref: '#/definitions/model.ChannelTest'
  884. type: array
  885. config:
  886. $ref: '#/definitions/model.ChannelConfig'
  887. created_at:
  888. type: string
  889. enabled_auto_balance_check:
  890. type: boolean
  891. id:
  892. type: integer
  893. key:
  894. type: string
  895. last_test_error_at:
  896. type: string
  897. model_mapping:
  898. additionalProperties:
  899. type: string
  900. type: object
  901. models:
  902. items:
  903. type: string
  904. type: array
  905. name:
  906. type: string
  907. priority:
  908. type: integer
  909. request_count:
  910. type: integer
  911. retry_count:
  912. type: integer
  913. sets:
  914. items:
  915. type: string
  916. type: array
  917. status:
  918. type: integer
  919. type:
  920. $ref: '#/definitions/model.ChannelType'
  921. used_amount:
  922. type: number
  923. type: object
  924. model.ChannelConfig:
  925. properties:
  926. spec:
  927. items:
  928. type: integer
  929. type: array
  930. type: object
  931. model.ChannelTest:
  932. properties:
  933. actual_model:
  934. type: string
  935. channel_id:
  936. type: integer
  937. channel_name:
  938. type: string
  939. channel_type:
  940. $ref: '#/definitions/model.ChannelType'
  941. code:
  942. type: integer
  943. mode:
  944. $ref: '#/definitions/mode.Mode'
  945. model:
  946. type: string
  947. response:
  948. type: string
  949. success:
  950. type: boolean
  951. test_at:
  952. type: string
  953. took:
  954. type: number
  955. type: object
  956. model.ChannelType:
  957. enum:
  958. - 1
  959. - 3
  960. - 4
  961. - 12
  962. - 13
  963. - 14
  964. - 15
  965. - 16
  966. - 17
  967. - 18
  968. - 19
  969. - 20
  970. - 23
  971. - 24
  972. - 25
  973. - 26
  974. - 27
  975. - 28
  976. - 29
  977. - 30
  978. - 31
  979. - 32
  980. - 33
  981. - 34
  982. - 35
  983. - 36
  984. - 37
  985. - 40
  986. - 41
  987. - 42
  988. - 43
  989. - 44
  990. - 45
  991. - 46
  992. - 47
  993. - 48
  994. - 49
  995. - 50
  996. type: integer
  997. x-enum-varnames:
  998. - ChannelTypeOpenAI
  999. - ChannelTypeAzure
  1000. - ChannelTypeAzure2
  1001. - ChannelTypeGoogleGeminiOpenAI
  1002. - ChannelTypeBaiduV2
  1003. - ChannelTypeAnthropic
  1004. - ChannelTypeBaidu
  1005. - ChannelTypeZhipu
  1006. - ChannelTypeAli
  1007. - ChannelTypeXunfei
  1008. - ChannelTypeAI360
  1009. - ChannelTypeOpenRouter
  1010. - ChannelTypeTencent
  1011. - ChannelTypeGoogleGemini
  1012. - ChannelTypeMoonshot
  1013. - ChannelTypeBaichuan
  1014. - ChannelTypeMinimax
  1015. - ChannelTypeMistral
  1016. - ChannelTypeGroq
  1017. - ChannelTypeOllama
  1018. - ChannelTypeLingyiwanwu
  1019. - ChannelTypeStepfun
  1020. - ChannelTypeAWS
  1021. - ChannelTypeCoze
  1022. - ChannelTypeCohere
  1023. - ChannelTypeDeepseek
  1024. - ChannelTypeCloudflare
  1025. - ChannelTypeDoubao
  1026. - ChannelTypeNovita
  1027. - ChannelTypeVertexAI
  1028. - ChannelTypeSiliconflow
  1029. - ChannelTypeDoubaoAudio
  1030. - ChannelTypeXAI
  1031. - ChannelTypeDoc2x
  1032. - ChannelTypeJina
  1033. - ChannelTypeTextEmbeddingsInference
  1034. - ChannelTypeQianfan
  1035. - ChannelTypeSangforAICP
  1036. model.ChartData:
  1037. properties:
  1038. audio_input_tokens:
  1039. type: integer
  1040. cache_creation_tokens:
  1041. type: integer
  1042. cached_tokens:
  1043. type: integer
  1044. exception_count:
  1045. type: integer
  1046. image_input_tokens:
  1047. type: integer
  1048. input_tokens:
  1049. type: integer
  1050. output_tokens:
  1051. type: integer
  1052. reasoning_tokens:
  1053. type: integer
  1054. request_count:
  1055. type: integer
  1056. retry_count:
  1057. type: integer
  1058. status_400_count:
  1059. type: integer
  1060. status_429_count:
  1061. type: integer
  1062. status_4xx_count:
  1063. type: integer
  1064. status_500_count:
  1065. type: integer
  1066. status_5xx_count:
  1067. type: integer
  1068. timestamp:
  1069. type: integer
  1070. total_time_milliseconds:
  1071. type: integer
  1072. total_tokens:
  1073. type: integer
  1074. total_ttfb_milliseconds:
  1075. type: integer
  1076. used_amount:
  1077. type: number
  1078. web_search_count:
  1079. type: integer
  1080. type: object
  1081. model.ChatUsage:
  1082. properties:
  1083. completion_tokens:
  1084. type: integer
  1085. completion_tokens_details:
  1086. $ref: '#/definitions/model.CompletionTokensDetails'
  1087. prompt_tokens:
  1088. type: integer
  1089. prompt_tokens_details:
  1090. $ref: '#/definitions/model.PromptTokensDetails'
  1091. total_tokens:
  1092. type: integer
  1093. web_search_count:
  1094. type: integer
  1095. type: object
  1096. model.ClaudeThinkingType:
  1097. enum:
  1098. - enabled
  1099. - disabled
  1100. type: string
  1101. x-enum-varnames:
  1102. - ClaudeThinkingTypeEnabled
  1103. - ClaudeThinkingTypeDisabled
  1104. model.CompletionTokensDetails:
  1105. properties:
  1106. accepted_prediction_tokens:
  1107. type: integer
  1108. audio_tokens:
  1109. type: integer
  1110. reasoning_tokens:
  1111. type: integer
  1112. rejected_prediction_tokens:
  1113. type: integer
  1114. type: object
  1115. model.ConditionalPrice:
  1116. properties:
  1117. condition:
  1118. $ref: '#/definitions/model.PriceCondition'
  1119. price:
  1120. $ref: '#/definitions/model.Price'
  1121. type: object
  1122. model.CreateResponseRequest:
  1123. properties:
  1124. instructions:
  1125. type: string
  1126. max_output_tokens:
  1127. type: integer
  1128. messages:
  1129. items:
  1130. $ref: '#/definitions/model.Message'
  1131. type: array
  1132. metadata:
  1133. additionalProperties: {}
  1134. type: object
  1135. model:
  1136. type: string
  1137. parallel_tool_calls:
  1138. type: boolean
  1139. previous_response_id:
  1140. type: string
  1141. store:
  1142. type: boolean
  1143. stream:
  1144. type: boolean
  1145. temperature:
  1146. type: number
  1147. tool_choice: {}
  1148. tools:
  1149. items:
  1150. $ref: '#/definitions/model.Tool'
  1151. type: array
  1152. top_p:
  1153. type: number
  1154. truncation:
  1155. type: string
  1156. user:
  1157. type: string
  1158. type: object
  1159. model.DashboardResponse:
  1160. properties:
  1161. audio_input_tokens:
  1162. type: integer
  1163. cache_creation_tokens:
  1164. type: integer
  1165. cached_tokens:
  1166. type: integer
  1167. channels:
  1168. items:
  1169. type: integer
  1170. type: array
  1171. chart_data:
  1172. items:
  1173. $ref: '#/definitions/model.ChartData'
  1174. type: array
  1175. exception_count:
  1176. type: integer
  1177. image_input_tokens:
  1178. type: integer
  1179. input_tokens:
  1180. type: integer
  1181. max_rpm:
  1182. type: integer
  1183. max_tpm:
  1184. type: integer
  1185. models:
  1186. items:
  1187. type: string
  1188. type: array
  1189. output_tokens:
  1190. type: integer
  1191. reasoning_tokens:
  1192. type: integer
  1193. request_count:
  1194. type: integer
  1195. retry_count:
  1196. type: integer
  1197. rpm:
  1198. type: integer
  1199. status_400_count:
  1200. type: integer
  1201. status_429_count:
  1202. type: integer
  1203. status_4xx_count:
  1204. type: integer
  1205. status_500_count:
  1206. type: integer
  1207. status_5xx_count:
  1208. type: integer
  1209. total_count:
  1210. description: use Count.RequestCount instead
  1211. type: integer
  1212. total_time_milliseconds:
  1213. type: integer
  1214. total_tokens:
  1215. type: integer
  1216. total_ttfb_milliseconds:
  1217. type: integer
  1218. tpm:
  1219. type: integer
  1220. used_amount:
  1221. type: number
  1222. web_search_count:
  1223. type: integer
  1224. type: object
  1225. model.Document:
  1226. properties:
  1227. text:
  1228. type: string
  1229. type: object
  1230. model.EmbeddingPromptTokensDetails:
  1231. properties:
  1232. image_tokens:
  1233. type: integer
  1234. text_tokens:
  1235. type: integer
  1236. type: object
  1237. model.EmbeddingRequest:
  1238. properties:
  1239. dimensions:
  1240. type: integer
  1241. encoding_format:
  1242. type: string
  1243. input:
  1244. type: string
  1245. model:
  1246. type: string
  1247. type: object
  1248. model.EmbeddingResponse:
  1249. properties:
  1250. data:
  1251. items:
  1252. $ref: '#/definitions/model.EmbeddingResponseItem'
  1253. type: array
  1254. model:
  1255. type: string
  1256. object:
  1257. type: string
  1258. usage:
  1259. $ref: '#/definitions/model.EmbeddingUsage'
  1260. type: object
  1261. model.EmbeddingResponseItem:
  1262. properties:
  1263. embedding:
  1264. items:
  1265. type: number
  1266. type: array
  1267. index:
  1268. type: integer
  1269. object:
  1270. type: string
  1271. type: object
  1272. model.EmbeddingUsage:
  1273. properties:
  1274. prompt_tokens:
  1275. type: integer
  1276. prompt_tokens_details:
  1277. $ref: '#/definitions/model.EmbeddingPromptTokensDetails'
  1278. total_tokens:
  1279. type: integer
  1280. type: object
  1281. model.FinishReason:
  1282. enum:
  1283. - stop
  1284. - length
  1285. - content_filter
  1286. - tool_calls
  1287. - function_call
  1288. type: string
  1289. x-enum-varnames:
  1290. - FinishReasonStop
  1291. - FinishReasonLength
  1292. - FinishReasonContentFilter
  1293. - FinishReasonToolCalls
  1294. - FinishReasonFunctionCall
  1295. model.Function:
  1296. properties:
  1297. arguments:
  1298. type: string
  1299. description:
  1300. type: string
  1301. name:
  1302. type: string
  1303. parameters: {}
  1304. type: object
  1305. model.GeneralOpenAIRequest:
  1306. properties:
  1307. frequency_penalty:
  1308. type: number
  1309. function_call: {}
  1310. functions: {}
  1311. input: {}
  1312. logit_bias: {}
  1313. logprobs:
  1314. type: boolean
  1315. max_completion_tokens:
  1316. type: integer
  1317. max_tokens:
  1318. type: integer
  1319. messages:
  1320. items:
  1321. $ref: '#/definitions/model.Message'
  1322. type: array
  1323. metadata: {}
  1324. model:
  1325. type: string
  1326. num_ctx:
  1327. type: integer
  1328. presence_penalty:
  1329. type: number
  1330. prompt: {}
  1331. response_format:
  1332. $ref: '#/definitions/model.ResponseFormat'
  1333. seed:
  1334. type: number
  1335. size:
  1336. type: string
  1337. stop: {}
  1338. stream:
  1339. type: boolean
  1340. stream_options:
  1341. $ref: '#/definitions/model.StreamOptions'
  1342. temperature:
  1343. type: number
  1344. thinking:
  1345. allOf:
  1346. - $ref: '#/definitions/model.GeneralThinking'
  1347. description: aiproxy control field
  1348. tool_choice: {}
  1349. tools:
  1350. items:
  1351. $ref: '#/definitions/model.Tool'
  1352. type: array
  1353. top_k:
  1354. type: integer
  1355. top_logprobs:
  1356. type: integer
  1357. top_p:
  1358. type: number
  1359. user:
  1360. type: string
  1361. type: object
  1362. model.GeneralThinking:
  1363. properties:
  1364. budget_tokens:
  1365. description: when type is "disabled", this field must be 0
  1366. type: integer
  1367. type:
  1368. $ref: '#/definitions/model.ClaudeThinkingType'
  1369. type: object
  1370. model.GetGroupLogsResult:
  1371. properties:
  1372. channels:
  1373. items:
  1374. type: integer
  1375. type: array
  1376. logs:
  1377. items:
  1378. $ref: '#/definitions/model.Log'
  1379. type: array
  1380. models:
  1381. items:
  1382. type: string
  1383. type: array
  1384. token_names:
  1385. items:
  1386. type: string
  1387. type: array
  1388. total:
  1389. type: integer
  1390. type: object
  1391. model.GetLogsResult:
  1392. properties:
  1393. channels:
  1394. items:
  1395. type: integer
  1396. type: array
  1397. logs:
  1398. items:
  1399. $ref: '#/definitions/model.Log'
  1400. type: array
  1401. total:
  1402. type: integer
  1403. type: object
  1404. model.Group:
  1405. properties:
  1406. available_sets:
  1407. items:
  1408. type: string
  1409. type: array
  1410. balance_alert_enabled:
  1411. type: boolean
  1412. balance_alert_threshold:
  1413. type: number
  1414. created_at:
  1415. type: string
  1416. id:
  1417. type: string
  1418. request_count:
  1419. type: integer
  1420. rpm_ratio:
  1421. type: number
  1422. status:
  1423. type: integer
  1424. tpm_ratio:
  1425. type: number
  1426. used_amount:
  1427. type: number
  1428. type: object
  1429. model.GroupDashboardResponse:
  1430. properties:
  1431. audio_input_tokens:
  1432. type: integer
  1433. cache_creation_tokens:
  1434. type: integer
  1435. cached_tokens:
  1436. type: integer
  1437. channels:
  1438. items:
  1439. type: integer
  1440. type: array
  1441. chart_data:
  1442. items:
  1443. $ref: '#/definitions/model.ChartData'
  1444. type: array
  1445. exception_count:
  1446. type: integer
  1447. image_input_tokens:
  1448. type: integer
  1449. input_tokens:
  1450. type: integer
  1451. max_rpm:
  1452. type: integer
  1453. max_tpm:
  1454. type: integer
  1455. models:
  1456. items:
  1457. type: string
  1458. type: array
  1459. output_tokens:
  1460. type: integer
  1461. reasoning_tokens:
  1462. type: integer
  1463. request_count:
  1464. type: integer
  1465. retry_count:
  1466. type: integer
  1467. rpm:
  1468. type: integer
  1469. status_400_count:
  1470. type: integer
  1471. status_429_count:
  1472. type: integer
  1473. status_4xx_count:
  1474. type: integer
  1475. status_500_count:
  1476. type: integer
  1477. status_5xx_count:
  1478. type: integer
  1479. token_names:
  1480. items:
  1481. type: string
  1482. type: array
  1483. total_count:
  1484. description: use Count.RequestCount instead
  1485. type: integer
  1486. total_time_milliseconds:
  1487. type: integer
  1488. total_tokens:
  1489. type: integer
  1490. total_ttfb_milliseconds:
  1491. type: integer
  1492. tpm:
  1493. type: integer
  1494. used_amount:
  1495. type: number
  1496. web_search_count:
  1497. type: integer
  1498. type: object
  1499. model.GroupMCP:
  1500. properties:
  1501. created_at:
  1502. type: string
  1503. description:
  1504. type: string
  1505. group_id:
  1506. type: string
  1507. id:
  1508. type: string
  1509. name:
  1510. type: string
  1511. openapi_config:
  1512. $ref: '#/definitions/model.MCPOpenAPIConfig'
  1513. proxy_config:
  1514. $ref: '#/definitions/model.GroupMCPProxyConfig'
  1515. status:
  1516. $ref: '#/definitions/model.GroupMCPStatus'
  1517. type:
  1518. $ref: '#/definitions/model.GroupMCPType'
  1519. update_at:
  1520. type: string
  1521. type: object
  1522. model.GroupMCPProxyConfig:
  1523. properties:
  1524. headers:
  1525. additionalProperties:
  1526. type: string
  1527. type: object
  1528. querys:
  1529. additionalProperties:
  1530. type: string
  1531. type: object
  1532. url:
  1533. type: string
  1534. type: object
  1535. model.GroupMCPStatus:
  1536. enum:
  1537. - 1
  1538. - 2
  1539. type: integer
  1540. x-enum-varnames:
  1541. - GroupMCPStatusEnabled
  1542. - GroupMCPStatusDisabled
  1543. model.GroupMCPType:
  1544. enum:
  1545. - mcp_proxy_sse
  1546. - mcp_proxy_streamable
  1547. - mcp_openapi
  1548. type: string
  1549. x-enum-varnames:
  1550. - GroupMCPTypeProxySSE
  1551. - GroupMCPTypeProxyStreamable
  1552. - GroupMCPTypeOpenAPI
  1553. model.GroupModelConfig:
  1554. properties:
  1555. force_save_detail:
  1556. type: boolean
  1557. group_id:
  1558. type: string
  1559. image_prices:
  1560. additionalProperties:
  1561. format: float64
  1562. type: number
  1563. type: object
  1564. model:
  1565. type: string
  1566. override_force_save_detail:
  1567. type: boolean
  1568. override_limit:
  1569. type: boolean
  1570. override_price:
  1571. type: boolean
  1572. override_retry_times:
  1573. type: boolean
  1574. price:
  1575. $ref: '#/definitions/model.Price'
  1576. retry_times:
  1577. type: integer
  1578. rpm:
  1579. type: integer
  1580. tpm:
  1581. type: integer
  1582. type: object
  1583. model.ImageData:
  1584. properties:
  1585. b64_json:
  1586. type: string
  1587. revised_prompt:
  1588. type: string
  1589. url:
  1590. type: string
  1591. type: object
  1592. model.ImageInputTokensDetails:
  1593. properties:
  1594. image_tokens:
  1595. description: The number of image tokens in the input prompt.
  1596. type: integer
  1597. text_tokens:
  1598. description: The number of text tokens in the input prompt.
  1599. type: integer
  1600. type: object
  1601. model.ImageRequest:
  1602. properties:
  1603. background:
  1604. type: string
  1605. model:
  1606. type: string
  1607. moderation:
  1608. type: string
  1609. "n":
  1610. type: integer
  1611. output_compression:
  1612. type: integer
  1613. output_format:
  1614. description: png, jpeg, webp
  1615. type: string
  1616. prompt:
  1617. type: string
  1618. quality:
  1619. description: auto, high, medium, low, hd, standard
  1620. type: string
  1621. response_format:
  1622. description: url, b64_json
  1623. type: string
  1624. size:
  1625. description: 1024x1024, 1536x1024, 1024x1536, auto, 256x256, 512x512, 1792x1024,
  1626. 1024x1792
  1627. type: string
  1628. style:
  1629. description: vivid, natural
  1630. type: string
  1631. user:
  1632. type: string
  1633. type: object
  1634. model.ImageResponse:
  1635. properties:
  1636. created:
  1637. type: integer
  1638. data:
  1639. items:
  1640. $ref: '#/definitions/model.ImageData'
  1641. type: array
  1642. usage:
  1643. allOf:
  1644. - $ref: '#/definitions/model.ImageUsage'
  1645. description: For gpt-image-1 only, the token usage information for the image
  1646. generation.
  1647. type: object
  1648. model.ImageUsage:
  1649. properties:
  1650. input_tokens:
  1651. description: The number of tokens (images and text) in the input prompt.
  1652. type: integer
  1653. input_tokens_details:
  1654. allOf:
  1655. - $ref: '#/definitions/model.ImageInputTokensDetails'
  1656. description: The input tokens detailed information for the image generation.
  1657. output_tokens:
  1658. description: The number of image tokens in the output image.
  1659. type: integer
  1660. total_tokens:
  1661. description: The total number of tokens (images and text) used for the image
  1662. generation.
  1663. type: integer
  1664. type: object
  1665. model.IncompleteDetails:
  1666. properties:
  1667. reason:
  1668. type: string
  1669. type: object
  1670. model.InputContent:
  1671. properties:
  1672. text:
  1673. type: string
  1674. type:
  1675. type: string
  1676. type: object
  1677. model.InputItem:
  1678. properties:
  1679. content:
  1680. items:
  1681. $ref: '#/definitions/model.InputContent'
  1682. type: array
  1683. id:
  1684. type: string
  1685. role:
  1686. type: string
  1687. type:
  1688. type: string
  1689. type: object
  1690. model.InputItemList:
  1691. properties:
  1692. data:
  1693. items:
  1694. $ref: '#/definitions/model.InputItem'
  1695. type: array
  1696. first_id:
  1697. type: string
  1698. has_more:
  1699. type: boolean
  1700. last_id:
  1701. type: string
  1702. object:
  1703. type: string
  1704. type: object
  1705. model.JSONSchema:
  1706. properties:
  1707. description:
  1708. type: string
  1709. name:
  1710. type: string
  1711. schema:
  1712. additionalProperties: {}
  1713. type: object
  1714. strict:
  1715. type: boolean
  1716. type: object
  1717. model.Log:
  1718. properties:
  1719. channel:
  1720. type: integer
  1721. code:
  1722. type: integer
  1723. content:
  1724. type: string
  1725. created_at:
  1726. type: string
  1727. endpoint:
  1728. type: string
  1729. group:
  1730. type: string
  1731. id:
  1732. type: integer
  1733. ip:
  1734. type: string
  1735. metadata:
  1736. additionalProperties:
  1737. type: string
  1738. type: object
  1739. mode:
  1740. type: integer
  1741. model:
  1742. type: string
  1743. price:
  1744. $ref: '#/definitions/model.Price'
  1745. request_at:
  1746. type: string
  1747. request_detail:
  1748. $ref: '#/definitions/model.RequestDetail'
  1749. request_id:
  1750. type: string
  1751. retry_at:
  1752. type: string
  1753. retry_times:
  1754. type: integer
  1755. token_id:
  1756. type: integer
  1757. token_name:
  1758. type: string
  1759. ttfb_milliseconds:
  1760. type: integer
  1761. usage:
  1762. $ref: '#/definitions/model.Usage'
  1763. used_amount:
  1764. type: number
  1765. user:
  1766. description: https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids
  1767. type: string
  1768. type: object
  1769. model.MCPEmbeddingConfig:
  1770. properties:
  1771. init:
  1772. additionalProperties:
  1773. type: string
  1774. type: object
  1775. reusing:
  1776. additionalProperties:
  1777. $ref: '#/definitions/model.ReusingParam'
  1778. type: object
  1779. type: object
  1780. model.MCPOpenAPIConfig:
  1781. properties:
  1782. authorization:
  1783. type: string
  1784. openapi_content:
  1785. type: string
  1786. openapi_spec:
  1787. type: string
  1788. server_addr:
  1789. type: string
  1790. v2:
  1791. type: boolean
  1792. type: object
  1793. model.MCPPrice:
  1794. properties:
  1795. default_tools_call_price:
  1796. type: number
  1797. tools_call_prices:
  1798. additionalProperties:
  1799. format: float64
  1800. type: number
  1801. type: object
  1802. type: object
  1803. model.Message:
  1804. properties:
  1805. content: {}
  1806. name:
  1807. type: string
  1808. reasoning_content:
  1809. type: string
  1810. role:
  1811. type: string
  1812. tool_call_id:
  1813. type: string
  1814. tool_calls:
  1815. items:
  1816. $ref: '#/definitions/model.ToolCall'
  1817. type: array
  1818. type: object
  1819. model.ModelConfig:
  1820. properties:
  1821. config:
  1822. additionalProperties: {}
  1823. type: object
  1824. created_at:
  1825. type: string
  1826. exclude_from_tests:
  1827. type: boolean
  1828. force_save_detail:
  1829. type: boolean
  1830. image_prices:
  1831. additionalProperties:
  1832. format: float64
  1833. type: number
  1834. description: map[size]price_per_image
  1835. type: object
  1836. image_quality_prices:
  1837. additionalProperties:
  1838. additionalProperties:
  1839. format: float64
  1840. type: number
  1841. type: object
  1842. description: map[size]map[quality]price_per_image
  1843. type: object
  1844. max_error_rate:
  1845. type: number
  1846. model:
  1847. type: string
  1848. owner:
  1849. $ref: '#/definitions/model.ModelOwner'
  1850. plugin:
  1851. additionalProperties:
  1852. items:
  1853. type: integer
  1854. type: array
  1855. type: object
  1856. price:
  1857. $ref: '#/definitions/model.Price'
  1858. retry_times:
  1859. type: integer
  1860. rpm:
  1861. type: integer
  1862. timeout_config:
  1863. $ref: '#/definitions/model.TimeoutConfig'
  1864. tpm:
  1865. type: integer
  1866. type:
  1867. $ref: '#/definitions/mode.Mode'
  1868. updated_at:
  1869. type: string
  1870. warn_error_rate:
  1871. type: number
  1872. type: object
  1873. model.ModelOwner:
  1874. enum:
  1875. - openai
  1876. - alibaba
  1877. - tencent
  1878. - xunfei
  1879. - deepseek
  1880. - moonshot
  1881. - minimax
  1882. - baidu
  1883. - google
  1884. - baai
  1885. - funaudiollm
  1886. - doubao
  1887. - fishaudio
  1888. - chatglm
  1889. - stabilityai
  1890. - netease
  1891. - ai360
  1892. - anthropic
  1893. - meta
  1894. - baichuan
  1895. - mistral
  1896. - openchat
  1897. - microsoft
  1898. - defog
  1899. - nexusflow
  1900. - cohere
  1901. - huggingface
  1902. - lingyiwanwu
  1903. - stepfun
  1904. - xai
  1905. - doc2x
  1906. - jina
  1907. type: string
  1908. x-enum-varnames:
  1909. - ModelOwnerOpenAI
  1910. - ModelOwnerAlibaba
  1911. - ModelOwnerTencent
  1912. - ModelOwnerXunfei
  1913. - ModelOwnerDeepSeek
  1914. - ModelOwnerMoonshot
  1915. - ModelOwnerMiniMax
  1916. - ModelOwnerBaidu
  1917. - ModelOwnerGoogle
  1918. - ModelOwnerBAAI
  1919. - ModelOwnerFunAudioLLM
  1920. - ModelOwnerDoubao
  1921. - ModelOwnerFishAudio
  1922. - ModelOwnerChatGLM
  1923. - ModelOwnerStabilityAI
  1924. - ModelOwnerNetease
  1925. - ModelOwnerAI360
  1926. - ModelOwnerAnthropic
  1927. - ModelOwnerMeta
  1928. - ModelOwnerBaichuan
  1929. - ModelOwnerMistral
  1930. - ModelOwnerOpenChat
  1931. - ModelOwnerMicrosoft
  1932. - ModelOwnerDefog
  1933. - ModelOwnerNexusFlow
  1934. - ModelOwnerCohere
  1935. - ModelOwnerHuggingFace
  1936. - ModelOwnerLingyiWanwu
  1937. - ModelOwnerStepFun
  1938. - ModelOwnerXAI
  1939. - ModelOwnerDoc2x
  1940. - ModelOwnerJina
  1941. model.Option:
  1942. properties:
  1943. key:
  1944. type: string
  1945. value:
  1946. type: string
  1947. type: object
  1948. model.OutputContent:
  1949. properties:
  1950. annotations:
  1951. items: {}
  1952. type: array
  1953. text:
  1954. type: string
  1955. type:
  1956. type: string
  1957. type: object
  1958. model.OutputItem:
  1959. properties:
  1960. content:
  1961. items:
  1962. $ref: '#/definitions/model.OutputContent'
  1963. type: array
  1964. id:
  1965. type: string
  1966. role:
  1967. type: string
  1968. status:
  1969. $ref: '#/definitions/model.ResponseStatus'
  1970. type:
  1971. type: string
  1972. type: object
  1973. model.Params:
  1974. additionalProperties:
  1975. type: string
  1976. type: object
  1977. model.ParsePdfResponse:
  1978. properties:
  1979. markdown:
  1980. type: string
  1981. pages:
  1982. type: integer
  1983. type: object
  1984. model.Price:
  1985. properties:
  1986. audio_input_price:
  1987. type: number
  1988. audio_input_price_unit:
  1989. type: integer
  1990. cache_creation_price:
  1991. type: number
  1992. cache_creation_price_unit:
  1993. type: integer
  1994. cached_price:
  1995. type: number
  1996. cached_price_unit:
  1997. type: integer
  1998. conditional_prices:
  1999. items:
  2000. $ref: '#/definitions/model.ConditionalPrice'
  2001. type: array
  2002. image_input_price:
  2003. type: number
  2004. image_input_price_unit:
  2005. type: integer
  2006. input_price:
  2007. type: number
  2008. input_price_unit:
  2009. type: integer
  2010. output_price:
  2011. type: number
  2012. output_price_unit:
  2013. type: integer
  2014. per_request_price:
  2015. type: number
  2016. thinking_mode_output_price:
  2017. description: |-
  2018. when ThinkingModeOutputPrice and ReasoningTokens are not 0, OutputPrice and OutputPriceUnit
  2019. will be overwritten
  2020. type: number
  2021. thinking_mode_output_price_unit:
  2022. type: integer
  2023. web_search_price:
  2024. type: number
  2025. web_search_price_unit:
  2026. type: integer
  2027. type: object
  2028. model.PriceCondition:
  2029. properties:
  2030. input_token_max:
  2031. type: integer
  2032. input_token_min:
  2033. type: integer
  2034. output_token_max:
  2035. type: integer
  2036. output_token_min:
  2037. type: integer
  2038. type: object
  2039. model.PromptTokensDetails:
  2040. properties:
  2041. audio_tokens:
  2042. type: integer
  2043. cache_creation_tokens:
  2044. type: integer
  2045. cached_tokens:
  2046. type: integer
  2047. type: object
  2048. model.ProxyParamType:
  2049. enum:
  2050. - url
  2051. - header
  2052. - query
  2053. type: string
  2054. x-enum-varnames:
  2055. - ParamTypeURL
  2056. - ParamTypeHeader
  2057. - ParamTypeQuery
  2058. model.PublicMCP:
  2059. properties:
  2060. created_at:
  2061. type: string
  2062. description:
  2063. type: string
  2064. description_cn:
  2065. type: string
  2066. embed_config:
  2067. $ref: '#/definitions/model.MCPEmbeddingConfig'
  2068. github_url:
  2069. type: string
  2070. id:
  2071. type: string
  2072. logo_url:
  2073. type: string
  2074. name:
  2075. type: string
  2076. name_cn:
  2077. type: string
  2078. openapi_config:
  2079. $ref: '#/definitions/model.MCPOpenAPIConfig'
  2080. price:
  2081. $ref: '#/definitions/model.MCPPrice'
  2082. proxy_config:
  2083. $ref: '#/definitions/model.PublicMCPProxyConfig'
  2084. readme:
  2085. type: string
  2086. readme_cn:
  2087. type: string
  2088. readme_cn_url:
  2089. type: string
  2090. readme_url:
  2091. type: string
  2092. status:
  2093. $ref: '#/definitions/model.PublicMCPStatus'
  2094. tags:
  2095. items:
  2096. type: string
  2097. type: array
  2098. test_config:
  2099. allOf:
  2100. - $ref: '#/definitions/model.TestConfig'
  2101. description: only used by list tools
  2102. type:
  2103. $ref: '#/definitions/model.PublicMCPType'
  2104. update_at:
  2105. type: string
  2106. type: object
  2107. model.PublicMCPProxyConfig:
  2108. properties:
  2109. headers:
  2110. additionalProperties:
  2111. type: string
  2112. type: object
  2113. querys:
  2114. additionalProperties:
  2115. type: string
  2116. type: object
  2117. reusing:
  2118. additionalProperties:
  2119. $ref: '#/definitions/model.PublicMCPProxyReusingParam'
  2120. type: object
  2121. url:
  2122. type: string
  2123. type: object
  2124. model.PublicMCPProxyReusingParam:
  2125. properties:
  2126. description:
  2127. type: string
  2128. name:
  2129. type: string
  2130. required:
  2131. type: boolean
  2132. type:
  2133. $ref: '#/definitions/model.ProxyParamType'
  2134. type: object
  2135. model.PublicMCPReusingParam:
  2136. properties:
  2137. created_at:
  2138. type: string
  2139. group_id:
  2140. type: string
  2141. mcp_id:
  2142. type: string
  2143. params:
  2144. $ref: '#/definitions/model.Params'
  2145. update_at:
  2146. type: string
  2147. type: object
  2148. model.PublicMCPStatus:
  2149. enum:
  2150. - 1
  2151. - 2
  2152. type: integer
  2153. x-enum-varnames:
  2154. - PublicMCPStatusEnabled
  2155. - PublicMCPStatusDisabled
  2156. model.PublicMCPType:
  2157. enum:
  2158. - mcp_proxy_sse
  2159. - mcp_proxy_streamable
  2160. - mcp_docs
  2161. - mcp_openapi
  2162. - mcp_embed
  2163. type: string
  2164. x-enum-comments:
  2165. PublicMCPTypeDocs: read only
  2166. x-enum-descriptions:
  2167. - ""
  2168. - ""
  2169. - read only
  2170. - ""
  2171. - ""
  2172. x-enum-varnames:
  2173. - PublicMCPTypeProxySSE
  2174. - PublicMCPTypeProxyStreamable
  2175. - PublicMCPTypeDocs
  2176. - PublicMCPTypeOpenAPI
  2177. - PublicMCPTypeEmbed
  2178. model.RequestDetail:
  2179. properties:
  2180. id:
  2181. type: integer
  2182. log_id:
  2183. type: integer
  2184. request_body:
  2185. type: string
  2186. request_body_truncated:
  2187. type: boolean
  2188. response_body:
  2189. type: string
  2190. response_body_truncated:
  2191. type: boolean
  2192. type: object
  2193. model.RerankMeta:
  2194. properties:
  2195. model:
  2196. type: string
  2197. tokens:
  2198. $ref: '#/definitions/model.RerankMetaTokens'
  2199. type: object
  2200. model.RerankMetaTokens:
  2201. properties:
  2202. input_tokens:
  2203. type: integer
  2204. output_tokens:
  2205. type: integer
  2206. type: object
  2207. model.RerankRequest:
  2208. properties:
  2209. documents:
  2210. items:
  2211. type: string
  2212. type: array
  2213. max_chunks_per_doc:
  2214. type: integer
  2215. model:
  2216. type: string
  2217. overlap_tokens:
  2218. type: integer
  2219. query:
  2220. type: string
  2221. return_documents:
  2222. type: boolean
  2223. top_n:
  2224. type: integer
  2225. type: object
  2226. model.RerankResponse:
  2227. properties:
  2228. id:
  2229. type: string
  2230. meta:
  2231. $ref: '#/definitions/model.RerankMeta'
  2232. results:
  2233. items:
  2234. $ref: '#/definitions/model.RerankResult'
  2235. type: array
  2236. type: object
  2237. model.RerankResult:
  2238. properties:
  2239. document:
  2240. $ref: '#/definitions/model.Document'
  2241. index:
  2242. type: integer
  2243. relevance_score:
  2244. type: number
  2245. type: object
  2246. model.Response:
  2247. properties:
  2248. created_at:
  2249. type: integer
  2250. error:
  2251. $ref: '#/definitions/model.ResponseError'
  2252. id:
  2253. type: string
  2254. incomplete_details:
  2255. $ref: '#/definitions/model.IncompleteDetails'
  2256. instructions:
  2257. type: string
  2258. max_output_tokens:
  2259. type: integer
  2260. metadata:
  2261. additionalProperties: {}
  2262. type: object
  2263. model:
  2264. type: string
  2265. object:
  2266. type: string
  2267. output:
  2268. items:
  2269. $ref: '#/definitions/model.OutputItem'
  2270. type: array
  2271. parallel_tool_calls:
  2272. type: boolean
  2273. previous_response_id:
  2274. type: string
  2275. reasoning:
  2276. $ref: '#/definitions/model.ResponseReasoning'
  2277. status:
  2278. $ref: '#/definitions/model.ResponseStatus'
  2279. store:
  2280. type: boolean
  2281. temperature:
  2282. type: number
  2283. text:
  2284. $ref: '#/definitions/model.ResponseText'
  2285. tool_choice: {}
  2286. tools:
  2287. items:
  2288. $ref: '#/definitions/model.Tool'
  2289. type: array
  2290. top_p:
  2291. type: number
  2292. truncation:
  2293. type: string
  2294. usage:
  2295. $ref: '#/definitions/model.ResponseUsage'
  2296. user:
  2297. type: string
  2298. type: object
  2299. model.ResponseError:
  2300. properties:
  2301. code:
  2302. type: string
  2303. message:
  2304. type: string
  2305. type: object
  2306. model.ResponseFormat:
  2307. properties:
  2308. json_schema:
  2309. $ref: '#/definitions/model.JSONSchema'
  2310. type:
  2311. type: string
  2312. type: object
  2313. model.ResponseReasoning:
  2314. properties:
  2315. effort:
  2316. type: string
  2317. summary:
  2318. type: string
  2319. type: object
  2320. model.ResponseStatus:
  2321. enum:
  2322. - in_progress
  2323. - completed
  2324. - failed
  2325. - incomplete
  2326. - cancelled
  2327. type: string
  2328. x-enum-varnames:
  2329. - ResponseStatusInProgress
  2330. - ResponseStatusCompleted
  2331. - ResponseStatusFailed
  2332. - ResponseStatusIncomplete
  2333. - ResponseStatusCancelled
  2334. model.ResponseText:
  2335. properties:
  2336. format:
  2337. $ref: '#/definitions/model.ResponseTextFormat'
  2338. type: object
  2339. model.ResponseTextFormat:
  2340. properties:
  2341. type:
  2342. type: string
  2343. type: object
  2344. model.ResponseUsage:
  2345. properties:
  2346. input_tokens:
  2347. type: integer
  2348. input_tokens_details:
  2349. $ref: '#/definitions/model.ResponseUsageDetails'
  2350. output_tokens:
  2351. type: integer
  2352. output_tokens_details:
  2353. $ref: '#/definitions/model.ResponseUsageDetails'
  2354. total_tokens:
  2355. type: integer
  2356. type: object
  2357. model.ResponseUsageDetails:
  2358. properties:
  2359. cached_tokens:
  2360. type: integer
  2361. reasoning_tokens:
  2362. type: integer
  2363. type: object
  2364. model.ReusingParam:
  2365. properties:
  2366. description:
  2367. type: string
  2368. name:
  2369. type: string
  2370. required:
  2371. type: boolean
  2372. type: object
  2373. model.StreamOptions:
  2374. properties:
  2375. include_usage:
  2376. type: boolean
  2377. type: object
  2378. model.SttJSONResponse:
  2379. properties:
  2380. text:
  2381. type: string
  2382. type: object
  2383. model.SummaryDataV2:
  2384. properties:
  2385. audio_input_tokens:
  2386. type: integer
  2387. cache_creation_tokens:
  2388. type: integer
  2389. cached_tokens:
  2390. type: integer
  2391. channel_id:
  2392. type: integer
  2393. exception_count:
  2394. type: integer
  2395. group_id:
  2396. type: string
  2397. image_input_tokens:
  2398. type: integer
  2399. input_tokens:
  2400. type: integer
  2401. max_rpm:
  2402. type: integer
  2403. max_tpm:
  2404. type: integer
  2405. model:
  2406. type: string
  2407. output_tokens:
  2408. type: integer
  2409. reasoning_tokens:
  2410. type: integer
  2411. request_count:
  2412. type: integer
  2413. retry_count:
  2414. type: integer
  2415. status_4xx_count:
  2416. type: integer
  2417. status_500_count:
  2418. type: integer
  2419. status_5xx_count:
  2420. type: integer
  2421. status_400_count:
  2422. type: integer
  2423. status_429_count:
  2424. type: integer
  2425. timestamp:
  2426. type: integer
  2427. token_name:
  2428. type: string
  2429. total_time_milliseconds:
  2430. type: integer
  2431. total_tokens:
  2432. type: integer
  2433. total_ttfb_milliseconds:
  2434. type: integer
  2435. used_amount:
  2436. type: number
  2437. web_search_count:
  2438. type: integer
  2439. type: object
  2440. model.TestConfig:
  2441. properties:
  2442. enabled:
  2443. type: boolean
  2444. params:
  2445. $ref: '#/definitions/model.Params'
  2446. type: object
  2447. model.TextResponse:
  2448. properties:
  2449. choices:
  2450. items:
  2451. $ref: '#/definitions/model.TextResponseChoice'
  2452. type: array
  2453. created:
  2454. type: integer
  2455. id:
  2456. type: string
  2457. model:
  2458. type: string
  2459. object:
  2460. type: string
  2461. usage:
  2462. $ref: '#/definitions/model.ChatUsage'
  2463. type: object
  2464. model.TextResponseChoice:
  2465. properties:
  2466. finish_reason:
  2467. $ref: '#/definitions/model.FinishReason'
  2468. index:
  2469. type: integer
  2470. message:
  2471. $ref: '#/definitions/model.Message'
  2472. text:
  2473. type: string
  2474. type: object
  2475. model.TextToSpeechRequest:
  2476. properties:
  2477. input:
  2478. type: string
  2479. model:
  2480. type: string
  2481. response_format:
  2482. type: string
  2483. speed:
  2484. type: number
  2485. stream_format:
  2486. type: string
  2487. voice:
  2488. type: string
  2489. required:
  2490. - input
  2491. - model
  2492. - voice
  2493. type: object
  2494. model.TimeSummaryDataV2:
  2495. properties:
  2496. summary:
  2497. items:
  2498. $ref: '#/definitions/model.SummaryDataV2'
  2499. type: array
  2500. timestamp:
  2501. type: integer
  2502. type: object
  2503. model.TimeoutConfig:
  2504. properties:
  2505. request_timeout:
  2506. type: integer
  2507. stream_request_timeout:
  2508. type: integer
  2509. type: object
  2510. model.Tool:
  2511. properties:
  2512. function:
  2513. $ref: '#/definitions/model.Function'
  2514. type:
  2515. type: string
  2516. type: object
  2517. model.ToolCall:
  2518. properties:
  2519. function:
  2520. $ref: '#/definitions/model.Function'
  2521. id:
  2522. type: string
  2523. index:
  2524. type: integer
  2525. type:
  2526. type: string
  2527. type: object
  2528. model.UpdateGroupRequest:
  2529. properties:
  2530. available_sets:
  2531. items:
  2532. type: string
  2533. type: array
  2534. balance_alert_enabled:
  2535. type: boolean
  2536. balance_alert_threshold:
  2537. type: number
  2538. rpm_ratio:
  2539. type: number
  2540. status:
  2541. type: integer
  2542. tpm_ratio:
  2543. type: number
  2544. type: object
  2545. model.UpdateTokenRequest:
  2546. properties:
  2547. models:
  2548. items:
  2549. type: string
  2550. type: array
  2551. name:
  2552. type: string
  2553. period_last_update_time:
  2554. type: integer
  2555. period_quota:
  2556. type: number
  2557. period_type:
  2558. type: string
  2559. quota:
  2560. description: Quota system
  2561. type: number
  2562. status:
  2563. type: integer
  2564. subnets:
  2565. items:
  2566. type: string
  2567. type: array
  2568. type: object
  2569. model.Usage:
  2570. properties:
  2571. audio_input_tokens:
  2572. type: integer
  2573. cache_creation_tokens:
  2574. type: integer
  2575. cached_tokens:
  2576. type: integer
  2577. image_input_tokens:
  2578. type: integer
  2579. input_tokens:
  2580. type: integer
  2581. output_tokens:
  2582. type: integer
  2583. reasoning_tokens:
  2584. type: integer
  2585. total_tokens:
  2586. type: integer
  2587. web_search_count:
  2588. type: integer
  2589. type: object
  2590. model.VideoGenerationJob:
  2591. properties:
  2592. created_at:
  2593. type: integer
  2594. expires_at:
  2595. type: integer
  2596. finish_reason:
  2597. type: string
  2598. finished_at:
  2599. type: integer
  2600. generations:
  2601. items:
  2602. $ref: '#/definitions/model.VideoGenerations'
  2603. type: array
  2604. height:
  2605. type: integer
  2606. id:
  2607. type: string
  2608. model:
  2609. type: string
  2610. n_seconds:
  2611. type: integer
  2612. n_variants:
  2613. type: integer
  2614. object:
  2615. type: string
  2616. prompt:
  2617. type: string
  2618. status:
  2619. $ref: '#/definitions/model.VideoGenerationJobStatus'
  2620. width:
  2621. type: integer
  2622. type: object
  2623. model.VideoGenerationJobRequest:
  2624. properties:
  2625. height:
  2626. type: integer
  2627. model:
  2628. type: string
  2629. n_seconds:
  2630. type: integer
  2631. n_variants:
  2632. type: integer
  2633. prompt:
  2634. type: string
  2635. width:
  2636. type: integer
  2637. type: object
  2638. model.VideoGenerationJobStatus:
  2639. enum:
  2640. - queued
  2641. - processing
  2642. - running
  2643. - succeeded
  2644. type: string
  2645. x-enum-varnames:
  2646. - VideoGenerationJobStatusQueued
  2647. - VideoGenerationJobStatusProcessing
  2648. - VideoGenerationJobStatusRunning
  2649. - VideoGenerationJobStatusSucceeded
  2650. model.VideoGenerations:
  2651. properties:
  2652. created_at:
  2653. type: integer
  2654. height:
  2655. type: integer
  2656. id:
  2657. type: string
  2658. job_id:
  2659. type: string
  2660. n_seconds:
  2661. type: integer
  2662. object:
  2663. type: string
  2664. prompt:
  2665. type: string
  2666. width:
  2667. type: integer
  2668. type: object
  2669. openai.SubscriptionResponse:
  2670. properties:
  2671. access_until:
  2672. type: integer
  2673. hard_limit_usd:
  2674. type: number
  2675. has_payment_method:
  2676. type: boolean
  2677. object:
  2678. type: string
  2679. soft_limit_usd:
  2680. type: number
  2681. system_hard_limit_usd:
  2682. type: number
  2683. type: object
  2684. openai.UsageResponse:
  2685. properties:
  2686. object:
  2687. type: string
  2688. total_usage:
  2689. description: DailyCosts []OpenAIUsageDailyCost `json:"daily_costs"`
  2690. type: number
  2691. type: object
  2692. info:
  2693. contact: {}
  2694. title: AI Proxy Swagger API
  2695. version: "1.0"
  2696. paths:
  2697. /api/channel/:
  2698. post:
  2699. consumes:
  2700. - application/json
  2701. description: Adds a new channel to the system
  2702. parameters:
  2703. - description: Channel information
  2704. in: body
  2705. name: channel
  2706. required: true
  2707. schema:
  2708. $ref: '#/definitions/controller.AddChannelRequest'
  2709. produces:
  2710. - application/json
  2711. responses:
  2712. "200":
  2713. description: OK
  2714. schema:
  2715. $ref: '#/definitions/middleware.APIResponse'
  2716. security:
  2717. - ApiKeyAuth: []
  2718. summary: Add a single channel
  2719. tags:
  2720. - channel
  2721. /api/channel/{id}:
  2722. delete:
  2723. description: Deletes a channel by its ID
  2724. parameters:
  2725. - description: Channel ID
  2726. in: path
  2727. name: id
  2728. required: true
  2729. type: integer
  2730. produces:
  2731. - application/json
  2732. responses:
  2733. "200":
  2734. description: OK
  2735. schema:
  2736. $ref: '#/definitions/middleware.APIResponse'
  2737. security:
  2738. - ApiKeyAuth: []
  2739. summary: Delete a channel
  2740. tags:
  2741. - channel
  2742. get:
  2743. description: Returns detailed information about a specific channel
  2744. parameters:
  2745. - description: Channel ID
  2746. in: path
  2747. name: id
  2748. required: true
  2749. type: integer
  2750. produces:
  2751. - application/json
  2752. responses:
  2753. "200":
  2754. description: OK
  2755. schema:
  2756. allOf:
  2757. - $ref: '#/definitions/middleware.APIResponse'
  2758. - properties:
  2759. data:
  2760. $ref: '#/definitions/model.Channel'
  2761. type: object
  2762. security:
  2763. - ApiKeyAuth: []
  2764. summary: Get a channel by ID
  2765. tags:
  2766. - channel
  2767. put:
  2768. consumes:
  2769. - application/json
  2770. description: Updates an existing channel by its ID
  2771. parameters:
  2772. - description: Channel ID
  2773. in: path
  2774. name: id
  2775. required: true
  2776. type: integer
  2777. - description: Updated channel information
  2778. in: body
  2779. name: channel
  2780. required: true
  2781. schema:
  2782. $ref: '#/definitions/controller.AddChannelRequest'
  2783. produces:
  2784. - application/json
  2785. responses:
  2786. "200":
  2787. description: OK
  2788. schema:
  2789. allOf:
  2790. - $ref: '#/definitions/middleware.APIResponse'
  2791. - properties:
  2792. data:
  2793. $ref: '#/definitions/model.Channel'
  2794. type: object
  2795. security:
  2796. - ApiKeyAuth: []
  2797. summary: Update a channel
  2798. tags:
  2799. - channel
  2800. /api/channel/{id}/{model}:
  2801. get:
  2802. description: Tests a single model in the channel
  2803. parameters:
  2804. - description: Channel ID
  2805. in: path
  2806. name: id
  2807. required: true
  2808. type: integer
  2809. - description: Model name
  2810. in: path
  2811. name: model
  2812. required: true
  2813. type: string
  2814. produces:
  2815. - application/json
  2816. responses:
  2817. "200":
  2818. description: OK
  2819. schema:
  2820. allOf:
  2821. - $ref: '#/definitions/middleware.APIResponse'
  2822. - properties:
  2823. data:
  2824. $ref: '#/definitions/model.ChannelTest'
  2825. type: object
  2826. security:
  2827. - ApiKeyAuth: []
  2828. summary: Test channel model
  2829. tags:
  2830. - channel
  2831. /api/channel/{id}/balance:
  2832. get:
  2833. description: Updates the balance for a single channel
  2834. parameters:
  2835. - description: Channel ID
  2836. in: path
  2837. name: id
  2838. required: true
  2839. type: integer
  2840. produces:
  2841. - application/json
  2842. responses:
  2843. "200":
  2844. description: OK
  2845. schema:
  2846. allOf:
  2847. - $ref: '#/definitions/middleware.APIResponse'
  2848. - properties:
  2849. data:
  2850. format: float64
  2851. type: number
  2852. type: object
  2853. security:
  2854. - ApiKeyAuth: []
  2855. summary: Update channel balance
  2856. tags:
  2857. - channel
  2858. /api/channel/{id}/status:
  2859. post:
  2860. consumes:
  2861. - application/json
  2862. description: Updates the status of a channel by its ID
  2863. parameters:
  2864. - description: Channel ID
  2865. in: path
  2866. name: id
  2867. required: true
  2868. type: integer
  2869. - description: Status information
  2870. in: body
  2871. name: status
  2872. required: true
  2873. schema:
  2874. $ref: '#/definitions/controller.UpdateChannelStatusRequest'
  2875. produces:
  2876. - application/json
  2877. responses:
  2878. "200":
  2879. description: OK
  2880. schema:
  2881. $ref: '#/definitions/middleware.APIResponse'
  2882. security:
  2883. - ApiKeyAuth: []
  2884. summary: Update channel status
  2885. tags:
  2886. - channel
  2887. /api/channel/{id}/test:
  2888. get:
  2889. description: Tests all models in the channel
  2890. parameters:
  2891. - description: Channel ID
  2892. in: path
  2893. name: id
  2894. required: true
  2895. type: integer
  2896. - description: Return success
  2897. in: query
  2898. name: return_success
  2899. type: boolean
  2900. - description: Success body
  2901. in: query
  2902. name: success_body
  2903. type: boolean
  2904. - description: Stream
  2905. in: query
  2906. name: stream
  2907. type: boolean
  2908. produces:
  2909. - application/json
  2910. responses:
  2911. "200":
  2912. description: OK
  2913. schema:
  2914. allOf:
  2915. - $ref: '#/definitions/middleware.APIResponse'
  2916. - properties:
  2917. data:
  2918. items:
  2919. $ref: '#/definitions/controller.TestResult'
  2920. type: array
  2921. type: object
  2922. security:
  2923. - ApiKeyAuth: []
  2924. summary: Test channel models
  2925. tags:
  2926. - channel
  2927. /api/channels/:
  2928. get:
  2929. description: Returns a paginated list of channels with optional filters
  2930. parameters:
  2931. - description: Page number
  2932. in: query
  2933. name: page
  2934. type: integer
  2935. - description: Items per page
  2936. in: query
  2937. name: per_page
  2938. type: integer
  2939. - description: Filter by id
  2940. in: query
  2941. name: id
  2942. type: integer
  2943. - description: Filter by name
  2944. in: query
  2945. name: name
  2946. type: string
  2947. - description: Filter by key
  2948. in: query
  2949. name: key
  2950. type: string
  2951. - description: Filter by channel type
  2952. in: query
  2953. name: channel_type
  2954. type: integer
  2955. - description: Filter by base URL
  2956. in: query
  2957. name: base_url
  2958. type: string
  2959. - description: Order by field
  2960. in: query
  2961. name: order
  2962. type: string
  2963. produces:
  2964. - application/json
  2965. responses:
  2966. "200":
  2967. description: OK
  2968. schema:
  2969. allOf:
  2970. - $ref: '#/definitions/middleware.APIResponse'
  2971. - properties:
  2972. data:
  2973. additionalProperties:
  2974. allOf:
  2975. - {}
  2976. - properties:
  2977. channels:
  2978. items:
  2979. $ref: '#/definitions/model.Channel'
  2980. type: array
  2981. total:
  2982. type: integer
  2983. type: object
  2984. type: object
  2985. type: object
  2986. security:
  2987. - ApiKeyAuth: []
  2988. summary: Get channels with pagination
  2989. tags:
  2990. - channels
  2991. post:
  2992. consumes:
  2993. - application/json
  2994. description: Adds multiple channels in a batch operation
  2995. parameters:
  2996. - description: Channel information
  2997. in: body
  2998. name: channels
  2999. required: true
  3000. schema:
  3001. items:
  3002. $ref: '#/definitions/controller.AddChannelRequest'
  3003. type: array
  3004. produces:
  3005. - application/json
  3006. responses:
  3007. "200":
  3008. description: OK
  3009. schema:
  3010. $ref: '#/definitions/middleware.APIResponse'
  3011. security:
  3012. - ApiKeyAuth: []
  3013. summary: Add multiple channels
  3014. tags:
  3015. - channels
  3016. /api/channels/all:
  3017. get:
  3018. description: Returns a list of all channels without pagination
  3019. produces:
  3020. - application/json
  3021. responses:
  3022. "200":
  3023. description: OK
  3024. schema:
  3025. allOf:
  3026. - $ref: '#/definitions/middleware.APIResponse'
  3027. - properties:
  3028. data:
  3029. items:
  3030. $ref: '#/definitions/model.Channel'
  3031. type: array
  3032. type: object
  3033. security:
  3034. - ApiKeyAuth: []
  3035. summary: Get all channels
  3036. tags:
  3037. - channels
  3038. /api/channels/balance:
  3039. get:
  3040. description: Updates the balance for all channels
  3041. produces:
  3042. - application/json
  3043. responses:
  3044. "200":
  3045. description: OK
  3046. schema:
  3047. $ref: '#/definitions/middleware.APIResponse'
  3048. security:
  3049. - ApiKeyAuth: []
  3050. summary: Update all channels balance
  3051. tags:
  3052. - channel
  3053. /api/channels/batch_delete:
  3054. post:
  3055. consumes:
  3056. - application/json
  3057. description: Deletes multiple channels by their IDs
  3058. parameters:
  3059. - description: Channel IDs
  3060. in: body
  3061. name: ids
  3062. required: true
  3063. schema:
  3064. items:
  3065. type: integer
  3066. type: array
  3067. produces:
  3068. - application/json
  3069. responses:
  3070. "200":
  3071. description: OK
  3072. schema:
  3073. $ref: '#/definitions/middleware.APIResponse'
  3074. security:
  3075. - ApiKeyAuth: []
  3076. summary: Delete multiple channels
  3077. tags:
  3078. - channels
  3079. /api/channels/import/oneapi:
  3080. post:
  3081. description: Imports channels from OneAPI
  3082. parameters:
  3083. - description: Import channel from OneAPI request
  3084. in: body
  3085. name: request
  3086. required: true
  3087. schema:
  3088. $ref: '#/definitions/controller.ImportChannelFromOneAPIRequest'
  3089. produces:
  3090. - application/json
  3091. responses:
  3092. "200":
  3093. description: OK
  3094. schema:
  3095. allOf:
  3096. - $ref: '#/definitions/middleware.APIResponse'
  3097. - properties:
  3098. data:
  3099. items: {}
  3100. type: array
  3101. type: object
  3102. security:
  3103. - ApiKeyAuth: []
  3104. summary: Import channel from OneAPI
  3105. tags:
  3106. - channels
  3107. /api/channels/search:
  3108. get:
  3109. description: Search channels with keyword and optional filters
  3110. parameters:
  3111. - description: Search keyword
  3112. in: query
  3113. name: keyword
  3114. required: true
  3115. type: string
  3116. - description: Page number
  3117. in: query
  3118. name: page
  3119. type: integer
  3120. - description: Items per page
  3121. in: query
  3122. name: per_page
  3123. type: integer
  3124. - description: Filter by id
  3125. in: query
  3126. name: id
  3127. type: integer
  3128. - description: Filter by name
  3129. in: query
  3130. name: name
  3131. type: string
  3132. - description: Filter by key
  3133. in: query
  3134. name: key
  3135. type: string
  3136. - description: Filter by channel type
  3137. in: query
  3138. name: channel_type
  3139. type: integer
  3140. - description: Filter by base URL
  3141. in: query
  3142. name: base_url
  3143. type: string
  3144. - description: Order by field
  3145. in: query
  3146. name: order
  3147. type: string
  3148. produces:
  3149. - application/json
  3150. responses:
  3151. "200":
  3152. description: OK
  3153. schema:
  3154. allOf:
  3155. - $ref: '#/definitions/middleware.APIResponse'
  3156. - properties:
  3157. data:
  3158. additionalProperties:
  3159. allOf:
  3160. - {}
  3161. - properties:
  3162. channels:
  3163. items:
  3164. $ref: '#/definitions/model.Channel'
  3165. type: array
  3166. total:
  3167. type: integer
  3168. type: object
  3169. type: object
  3170. type: object
  3171. security:
  3172. - ApiKeyAuth: []
  3173. summary: Search channels
  3174. tags:
  3175. - channels
  3176. /api/channels/test:
  3177. get:
  3178. description: Tests all channels
  3179. parameters:
  3180. - description: Test disabled
  3181. in: query
  3182. name: test_disabled
  3183. type: boolean
  3184. - description: Return success
  3185. in: query
  3186. name: return_success
  3187. type: boolean
  3188. - description: Success body
  3189. in: query
  3190. name: success_body
  3191. type: boolean
  3192. - description: Stream
  3193. in: query
  3194. name: stream
  3195. type: boolean
  3196. produces:
  3197. - application/json
  3198. responses:
  3199. "200":
  3200. description: OK
  3201. schema:
  3202. allOf:
  3203. - $ref: '#/definitions/middleware.APIResponse'
  3204. - properties:
  3205. data:
  3206. items:
  3207. $ref: '#/definitions/controller.TestResult'
  3208. type: array
  3209. type: object
  3210. security:
  3211. - ApiKeyAuth: []
  3212. summary: Test all channels
  3213. tags:
  3214. - channel
  3215. /api/channels/type_metas:
  3216. get:
  3217. description: Returns metadata for all channel types
  3218. produces:
  3219. - application/json
  3220. responses:
  3221. "200":
  3222. description: OK
  3223. schema:
  3224. allOf:
  3225. - $ref: '#/definitions/middleware.APIResponse'
  3226. - properties:
  3227. data:
  3228. additionalProperties:
  3229. $ref: '#/definitions/adaptors.AdaptorMeta'
  3230. type: object
  3231. type: object
  3232. security:
  3233. - ApiKeyAuth: []
  3234. summary: Get channel type metadata
  3235. tags:
  3236. - channels
  3237. /api/dashboard/:
  3238. get:
  3239. description: Returns the general dashboard data including usage statistics and
  3240. metrics
  3241. parameters:
  3242. - description: Channel ID
  3243. in: query
  3244. name: channel
  3245. type: integer
  3246. - description: Model name
  3247. in: query
  3248. name: model
  3249. type: string
  3250. - description: Start second timestamp
  3251. format: int64
  3252. in: query
  3253. name: start_timestamp
  3254. type: integer
  3255. - description: End second timestamp
  3256. format: int64
  3257. in: query
  3258. name: end_timestamp
  3259. type: integer
  3260. - description: Timezone, default is Local
  3261. in: query
  3262. name: timezone
  3263. type: string
  3264. - description: Time span type (minute, hour, day, month)
  3265. in: query
  3266. name: timespan
  3267. type: string
  3268. produces:
  3269. - application/json
  3270. responses:
  3271. "200":
  3272. description: OK
  3273. schema:
  3274. allOf:
  3275. - $ref: '#/definitions/middleware.APIResponse'
  3276. - properties:
  3277. data:
  3278. $ref: '#/definitions/model.DashboardResponse'
  3279. type: object
  3280. security:
  3281. - ApiKeyAuth: []
  3282. summary: Get dashboard data
  3283. tags:
  3284. - dashboard
  3285. /api/dashboard/{group}:
  3286. get:
  3287. description: Returns dashboard data and metrics specific to the given group
  3288. parameters:
  3289. - description: Group
  3290. in: path
  3291. name: group
  3292. required: true
  3293. type: string
  3294. - description: Token name
  3295. in: query
  3296. name: token_name
  3297. type: string
  3298. - description: Model or *
  3299. in: query
  3300. name: model
  3301. type: string
  3302. - description: Start second timestamp
  3303. format: int64
  3304. in: query
  3305. name: start_timestamp
  3306. type: integer
  3307. - description: End second timestamp
  3308. format: int64
  3309. in: query
  3310. name: end_timestamp
  3311. type: integer
  3312. - description: Timezone, default is Local
  3313. in: query
  3314. name: timezone
  3315. type: string
  3316. - description: Time span type (minute, hour, day, month)
  3317. in: query
  3318. name: timespan
  3319. type: string
  3320. produces:
  3321. - application/json
  3322. responses:
  3323. "200":
  3324. description: OK
  3325. schema:
  3326. allOf:
  3327. - $ref: '#/definitions/middleware.APIResponse'
  3328. - properties:
  3329. data:
  3330. $ref: '#/definitions/model.GroupDashboardResponse'
  3331. type: object
  3332. security:
  3333. - ApiKeyAuth: []
  3334. summary: Get dashboard data for a specific group
  3335. tags:
  3336. - dashboard
  3337. /api/dashboard/{group}/models:
  3338. get:
  3339. description: Returns model-specific metrics and usage data for the given group
  3340. parameters:
  3341. - description: Group
  3342. in: path
  3343. name: group
  3344. required: true
  3345. type: string
  3346. produces:
  3347. - application/json
  3348. responses:
  3349. "200":
  3350. description: OK
  3351. schema:
  3352. allOf:
  3353. - $ref: '#/definitions/middleware.APIResponse'
  3354. - properties:
  3355. data:
  3356. items:
  3357. $ref: '#/definitions/controller.GroupModel'
  3358. type: array
  3359. type: object
  3360. security:
  3361. - ApiKeyAuth: []
  3362. summary: Get model usage data for a specific group
  3363. tags:
  3364. - dashboard
  3365. /api/dashboardv2/:
  3366. get:
  3367. description: Returns model-specific metrics and usage data for the given channel
  3368. parameters:
  3369. - description: Channel ID
  3370. in: query
  3371. name: channel
  3372. type: integer
  3373. - description: Model name
  3374. in: query
  3375. name: model
  3376. type: string
  3377. - description: Start timestamp
  3378. format: int64
  3379. in: query
  3380. name: start_timestamp
  3381. type: integer
  3382. - description: End timestamp
  3383. format: int64
  3384. in: query
  3385. name: end_timestamp
  3386. type: integer
  3387. - description: Timezone, default is Local
  3388. in: query
  3389. name: timezone
  3390. type: string
  3391. - description: Time span type (minute, hour, day, month)
  3392. in: query
  3393. name: timespan
  3394. type: string
  3395. produces:
  3396. - application/json
  3397. responses:
  3398. "200":
  3399. description: OK
  3400. schema:
  3401. allOf:
  3402. - $ref: '#/definitions/middleware.APIResponse'
  3403. - properties:
  3404. data:
  3405. items:
  3406. $ref: '#/definitions/model.TimeSummaryDataV2'
  3407. type: array
  3408. type: object
  3409. security:
  3410. - ApiKeyAuth: []
  3411. summary: Get model usage data for a specific channel
  3412. tags:
  3413. - dashboard
  3414. /api/dashboardv2/{group}:
  3415. get:
  3416. description: Returns model-specific metrics and usage data for the given group
  3417. parameters:
  3418. - description: Group
  3419. in: path
  3420. name: group
  3421. required: true
  3422. type: string
  3423. - description: Token name
  3424. in: query
  3425. name: token_name
  3426. type: string
  3427. - description: Model name
  3428. in: query
  3429. name: model
  3430. type: string
  3431. - description: Start timestamp
  3432. format: int64
  3433. in: query
  3434. name: start_timestamp
  3435. type: integer
  3436. - description: End timestamp
  3437. format: int64
  3438. in: query
  3439. name: end_timestamp
  3440. type: integer
  3441. - description: Timezone, default is Local
  3442. in: query
  3443. name: timezone
  3444. type: string
  3445. - description: Time span type (minute, hour, day, month)
  3446. in: query
  3447. name: timespan
  3448. type: string
  3449. produces:
  3450. - application/json
  3451. responses:
  3452. "200":
  3453. description: OK
  3454. schema:
  3455. allOf:
  3456. - $ref: '#/definitions/middleware.APIResponse'
  3457. - properties:
  3458. data:
  3459. items:
  3460. $ref: '#/definitions/model.TimeSummaryDataV2'
  3461. type: array
  3462. type: object
  3463. security:
  3464. - ApiKeyAuth: []
  3465. summary: Get model usage data for a specific group
  3466. tags:
  3467. - dashboard
  3468. /api/embedmcp/:
  3469. get:
  3470. consumes:
  3471. - application/json
  3472. description: Get embed mcp
  3473. produces:
  3474. - application/json
  3475. responses:
  3476. "200":
  3477. description: OK
  3478. schema:
  3479. items:
  3480. $ref: '#/definitions/controller.EmbedMCP'
  3481. type: array
  3482. security:
  3483. - ApiKeyAuth: []
  3484. summary: Get embed mcp
  3485. tags:
  3486. - embedmcp
  3487. post:
  3488. consumes:
  3489. - application/json
  3490. description: Save embed mcp
  3491. parameters:
  3492. - description: Save embed mcp request
  3493. in: body
  3494. name: body
  3495. required: true
  3496. schema:
  3497. $ref: '#/definitions/controller.SaveEmbedMCPRequest'
  3498. produces:
  3499. - application/json
  3500. responses:
  3501. "200":
  3502. description: OK
  3503. security:
  3504. - ApiKeyAuth: []
  3505. summary: Save embed mcp
  3506. tags:
  3507. - embedmcp
  3508. /api/group/{group}:
  3509. delete:
  3510. description: Deletes a group by its name
  3511. parameters:
  3512. - description: Group name
  3513. in: path
  3514. name: group
  3515. required: true
  3516. type: string
  3517. produces:
  3518. - application/json
  3519. responses:
  3520. "200":
  3521. description: OK
  3522. schema:
  3523. $ref: '#/definitions/middleware.APIResponse'
  3524. security:
  3525. - ApiKeyAuth: []
  3526. summary: Delete a group
  3527. tags:
  3528. - group
  3529. get:
  3530. description: Returns detailed information about a specific group
  3531. parameters:
  3532. - description: Group name
  3533. in: path
  3534. name: group
  3535. required: true
  3536. type: string
  3537. produces:
  3538. - application/json
  3539. responses:
  3540. "200":
  3541. description: OK
  3542. schema:
  3543. allOf:
  3544. - $ref: '#/definitions/middleware.APIResponse'
  3545. - properties:
  3546. data:
  3547. $ref: '#/definitions/controller.GroupResponse'
  3548. type: object
  3549. security:
  3550. - ApiKeyAuth: []
  3551. summary: Get a group
  3552. tags:
  3553. - group
  3554. post:
  3555. consumes:
  3556. - application/json
  3557. description: Creates a new group with the given information
  3558. parameters:
  3559. - description: Group name
  3560. in: path
  3561. name: group
  3562. required: true
  3563. type: string
  3564. - description: Group information
  3565. in: body
  3566. name: data
  3567. required: true
  3568. schema:
  3569. $ref: '#/definitions/controller.CreateGroupRequest'
  3570. produces:
  3571. - application/json
  3572. responses:
  3573. "200":
  3574. description: OK
  3575. schema:
  3576. allOf:
  3577. - $ref: '#/definitions/middleware.APIResponse'
  3578. - properties:
  3579. data:
  3580. $ref: '#/definitions/model.Group'
  3581. type: object
  3582. security:
  3583. - ApiKeyAuth: []
  3584. summary: Create a new group
  3585. tags:
  3586. - group
  3587. put:
  3588. consumes:
  3589. - application/json
  3590. description: Updates an existing group with the given information
  3591. parameters:
  3592. - description: Group name
  3593. in: path
  3594. name: group
  3595. required: true
  3596. type: string
  3597. - description: Updated group information
  3598. in: body
  3599. name: data
  3600. required: true
  3601. schema:
  3602. $ref: '#/definitions/model.UpdateGroupRequest'
  3603. produces:
  3604. - application/json
  3605. responses:
  3606. "200":
  3607. description: OK
  3608. schema:
  3609. allOf:
  3610. - $ref: '#/definitions/middleware.APIResponse'
  3611. - properties:
  3612. data:
  3613. $ref: '#/definitions/model.Group'
  3614. type: object
  3615. security:
  3616. - ApiKeyAuth: []
  3617. summary: Update a group
  3618. tags:
  3619. - group
  3620. /api/group/{group}/mcp:
  3621. get:
  3622. description: Get MCPs by group
  3623. parameters:
  3624. - description: Group ID
  3625. in: path
  3626. name: group
  3627. required: true
  3628. type: string
  3629. - description: Page
  3630. in: query
  3631. name: page
  3632. type: integer
  3633. - description: Per Page
  3634. in: query
  3635. name: per_page
  3636. type: integer
  3637. - description: MCP ID
  3638. in: query
  3639. name: id
  3640. type: string
  3641. - description: hosted or local
  3642. in: query
  3643. name: type
  3644. type: string
  3645. - description: Keyword
  3646. in: query
  3647. name: keyword
  3648. type: string
  3649. produces:
  3650. - application/json
  3651. responses:
  3652. "200":
  3653. description: OK
  3654. schema:
  3655. allOf:
  3656. - $ref: '#/definitions/middleware.APIResponse'
  3657. - properties:
  3658. data:
  3659. items:
  3660. $ref: '#/definitions/controller.GroupPublicMCPResponse'
  3661. type: array
  3662. type: object
  3663. security:
  3664. - ApiKeyAuth: []
  3665. summary: Get MCPs by group
  3666. tags:
  3667. - mcp
  3668. - group
  3669. /api/group/{group}/mcp/{id}:
  3670. get:
  3671. description: Get a specific MCP by its ID
  3672. parameters:
  3673. - description: Group ID
  3674. in: path
  3675. name: group
  3676. required: true
  3677. type: string
  3678. - description: MCP ID
  3679. in: path
  3680. name: id
  3681. required: true
  3682. type: string
  3683. produces:
  3684. - application/json
  3685. responses:
  3686. "200":
  3687. description: OK
  3688. schema:
  3689. allOf:
  3690. - $ref: '#/definitions/middleware.APIResponse'
  3691. - properties:
  3692. data:
  3693. $ref: '#/definitions/controller.GroupPublicMCPDetailResponse'
  3694. type: object
  3695. security:
  3696. - ApiKeyAuth: []
  3697. summary: Get MCP by ID
  3698. tags:
  3699. - mcp
  3700. - group
  3701. /api/group/{group}/model_config/{model}:
  3702. delete:
  3703. description: Delete group model config
  3704. parameters:
  3705. - description: Group name
  3706. in: path
  3707. name: group
  3708. required: true
  3709. type: string
  3710. - description: Model name
  3711. in: path
  3712. name: model
  3713. required: true
  3714. type: string
  3715. produces:
  3716. - application/json
  3717. responses:
  3718. "200":
  3719. description: OK
  3720. schema:
  3721. $ref: '#/definitions/middleware.APIResponse'
  3722. security:
  3723. - ApiKeyAuth: []
  3724. summary: Delete group model config
  3725. tags:
  3726. - group
  3727. get:
  3728. description: Get group model config
  3729. parameters:
  3730. - description: Group name
  3731. in: path
  3732. name: group
  3733. required: true
  3734. type: string
  3735. - description: Model name
  3736. in: path
  3737. name: model
  3738. required: true
  3739. type: string
  3740. produces:
  3741. - application/json
  3742. responses:
  3743. "200":
  3744. description: OK
  3745. schema:
  3746. allOf:
  3747. - $ref: '#/definitions/middleware.APIResponse'
  3748. - properties:
  3749. data:
  3750. $ref: '#/definitions/model.GroupModelConfig'
  3751. type: object
  3752. security:
  3753. - ApiKeyAuth: []
  3754. summary: Get group model config
  3755. tags:
  3756. - group
  3757. post:
  3758. consumes:
  3759. - application/json
  3760. description: Save group model config
  3761. parameters:
  3762. - description: Group name
  3763. in: path
  3764. name: group
  3765. required: true
  3766. type: string
  3767. - description: Group model config information
  3768. in: body
  3769. name: data
  3770. required: true
  3771. schema:
  3772. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3773. produces:
  3774. - application/json
  3775. responses:
  3776. "200":
  3777. description: OK
  3778. schema:
  3779. $ref: '#/definitions/middleware.APIResponse'
  3780. security:
  3781. - ApiKeyAuth: []
  3782. summary: Save group model config
  3783. tags:
  3784. - group
  3785. put:
  3786. consumes:
  3787. - application/json
  3788. description: Update group model config
  3789. parameters:
  3790. - description: Group name
  3791. in: path
  3792. name: group
  3793. required: true
  3794. type: string
  3795. - description: Model name
  3796. in: path
  3797. name: model
  3798. required: true
  3799. type: string
  3800. - description: Group model config information
  3801. in: body
  3802. name: data
  3803. required: true
  3804. schema:
  3805. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3806. produces:
  3807. - application/json
  3808. responses:
  3809. "200":
  3810. description: OK
  3811. schema:
  3812. $ref: '#/definitions/middleware.APIResponse'
  3813. security:
  3814. - ApiKeyAuth: []
  3815. summary: Update group model config
  3816. tags:
  3817. - group
  3818. /api/group/{group}/model_configs/:
  3819. delete:
  3820. description: Delete group model configs
  3821. parameters:
  3822. - description: Group name
  3823. in: path
  3824. name: group
  3825. required: true
  3826. type: string
  3827. - description: Model names
  3828. in: body
  3829. name: models
  3830. required: true
  3831. schema:
  3832. items:
  3833. type: string
  3834. type: array
  3835. produces:
  3836. - application/json
  3837. responses:
  3838. "200":
  3839. description: OK
  3840. schema:
  3841. $ref: '#/definitions/middleware.APIResponse'
  3842. security:
  3843. - ApiKeyAuth: []
  3844. summary: Delete group model configs
  3845. tags:
  3846. - group
  3847. get:
  3848. description: Get group model configs
  3849. parameters:
  3850. - description: Group name
  3851. in: path
  3852. name: group
  3853. required: true
  3854. type: string
  3855. produces:
  3856. - application/json
  3857. responses:
  3858. "200":
  3859. description: OK
  3860. schema:
  3861. allOf:
  3862. - $ref: '#/definitions/middleware.APIResponse'
  3863. - properties:
  3864. data:
  3865. items:
  3866. $ref: '#/definitions/model.GroupModelConfig'
  3867. type: array
  3868. type: object
  3869. security:
  3870. - ApiKeyAuth: []
  3871. summary: Get group model configs
  3872. tags:
  3873. - group
  3874. post:
  3875. consumes:
  3876. - application/json
  3877. description: Save group model configs
  3878. parameters:
  3879. - description: Group name
  3880. in: path
  3881. name: group
  3882. required: true
  3883. type: string
  3884. - description: Group model config information
  3885. in: body
  3886. name: data
  3887. required: true
  3888. schema:
  3889. items:
  3890. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3891. type: array
  3892. produces:
  3893. - application/json
  3894. responses:
  3895. "200":
  3896. description: OK
  3897. schema:
  3898. $ref: '#/definitions/middleware.APIResponse'
  3899. security:
  3900. - ApiKeyAuth: []
  3901. summary: Save group model configs
  3902. tags:
  3903. - group
  3904. put:
  3905. consumes:
  3906. - application/json
  3907. description: Update group model configs
  3908. parameters:
  3909. - description: Group name
  3910. in: path
  3911. name: group
  3912. required: true
  3913. type: string
  3914. - description: Group model config information
  3915. in: body
  3916. name: data
  3917. required: true
  3918. schema:
  3919. items:
  3920. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3921. type: array
  3922. produces:
  3923. - application/json
  3924. responses:
  3925. "200":
  3926. description: OK
  3927. schema:
  3928. $ref: '#/definitions/middleware.APIResponse'
  3929. security:
  3930. - ApiKeyAuth: []
  3931. summary: Update group model configs
  3932. tags:
  3933. - group
  3934. /api/group/{group}/rpm_ratio:
  3935. post:
  3936. consumes:
  3937. - application/json
  3938. description: Updates the RPM (Requests Per Minute) ratio for a group
  3939. parameters:
  3940. - description: Group name
  3941. in: path
  3942. name: group
  3943. required: true
  3944. type: string
  3945. - description: RPM ratio information
  3946. in: body
  3947. name: data
  3948. required: true
  3949. schema:
  3950. $ref: '#/definitions/controller.UpdateGroupRPMRatioRequest'
  3951. produces:
  3952. - application/json
  3953. responses:
  3954. "200":
  3955. description: OK
  3956. schema:
  3957. $ref: '#/definitions/middleware.APIResponse'
  3958. security:
  3959. - ApiKeyAuth: []
  3960. summary: Update group RPM ratio
  3961. tags:
  3962. - group
  3963. /api/group/{group}/status:
  3964. post:
  3965. consumes:
  3966. - application/json
  3967. description: Updates the status of a group
  3968. parameters:
  3969. - description: Group name
  3970. in: path
  3971. name: group
  3972. required: true
  3973. type: string
  3974. - description: Status information
  3975. in: body
  3976. name: status
  3977. required: true
  3978. schema:
  3979. $ref: '#/definitions/controller.UpdateGroupStatusRequest'
  3980. produces:
  3981. - application/json
  3982. responses:
  3983. "200":
  3984. description: OK
  3985. schema:
  3986. $ref: '#/definitions/middleware.APIResponse'
  3987. security:
  3988. - ApiKeyAuth: []
  3989. summary: Update group status
  3990. tags:
  3991. - group
  3992. /api/group/{group}/tpm_ratio:
  3993. post:
  3994. consumes:
  3995. - application/json
  3996. description: Updates the TPM (Tokens Per Minute) ratio for a group
  3997. parameters:
  3998. - description: Group name
  3999. in: path
  4000. name: group
  4001. required: true
  4002. type: string
  4003. - description: TPM ratio information
  4004. in: body
  4005. name: data
  4006. required: true
  4007. schema:
  4008. $ref: '#/definitions/controller.UpdateGroupTPMRatioRequest'
  4009. produces:
  4010. - application/json
  4011. responses:
  4012. "200":
  4013. description: OK
  4014. schema:
  4015. $ref: '#/definitions/middleware.APIResponse'
  4016. security:
  4017. - ApiKeyAuth: []
  4018. summary: Update group TPM ratio
  4019. tags:
  4020. - group
  4021. /api/groups/:
  4022. get:
  4023. description: Returns a list of all groups with pagination
  4024. parameters:
  4025. - description: Page number
  4026. in: query
  4027. name: page
  4028. type: integer
  4029. - description: Items per page
  4030. in: query
  4031. name: per_page
  4032. type: integer
  4033. produces:
  4034. - application/json
  4035. responses:
  4036. "200":
  4037. description: OK
  4038. schema:
  4039. allOf:
  4040. - $ref: '#/definitions/middleware.APIResponse'
  4041. - properties:
  4042. data:
  4043. additionalProperties:
  4044. allOf:
  4045. - {}
  4046. - properties:
  4047. groups:
  4048. items:
  4049. $ref: '#/definitions/controller.GroupResponse'
  4050. type: array
  4051. total:
  4052. type: integer
  4053. type: object
  4054. type: object
  4055. type: object
  4056. security:
  4057. - ApiKeyAuth: []
  4058. summary: Get all groups
  4059. tags:
  4060. - groups
  4061. /api/groups/batch_delete:
  4062. post:
  4063. consumes:
  4064. - application/json
  4065. description: Deletes multiple groups by their IDs
  4066. parameters:
  4067. - description: Group IDs
  4068. in: body
  4069. name: ids
  4070. required: true
  4071. schema:
  4072. items:
  4073. type: string
  4074. type: array
  4075. produces:
  4076. - application/json
  4077. responses:
  4078. "200":
  4079. description: OK
  4080. schema:
  4081. $ref: '#/definitions/middleware.APIResponse'
  4082. security:
  4083. - ApiKeyAuth: []
  4084. summary: Delete multiple groups
  4085. tags:
  4086. - groups
  4087. /api/groups/batch_status:
  4088. post:
  4089. consumes:
  4090. - application/json
  4091. description: Updates the status of multiple groups
  4092. parameters:
  4093. - description: Group IDs and status
  4094. in: body
  4095. name: data
  4096. required: true
  4097. schema:
  4098. $ref: '#/definitions/controller.UpdateGroupsStatusRequest'
  4099. produces:
  4100. - application/json
  4101. responses:
  4102. "200":
  4103. description: OK
  4104. schema:
  4105. $ref: '#/definitions/middleware.APIResponse'
  4106. security:
  4107. - ApiKeyAuth: []
  4108. summary: Update multiple groups status
  4109. tags:
  4110. - groups
  4111. /api/groups/ip_groups:
  4112. get:
  4113. description: Get IP group list
  4114. parameters:
  4115. - description: Threshold
  4116. in: query
  4117. name: threshold
  4118. type: integer
  4119. - description: Start timestamp
  4120. in: query
  4121. name: start_timestamp
  4122. type: integer
  4123. - description: End timestamp
  4124. in: query
  4125. name: end_timestamp
  4126. type: integer
  4127. produces:
  4128. - application/json
  4129. responses:
  4130. "200":
  4131. description: OK
  4132. schema:
  4133. allOf:
  4134. - $ref: '#/definitions/middleware.APIResponse'
  4135. - properties:
  4136. data:
  4137. additionalProperties:
  4138. items:
  4139. type: string
  4140. type: array
  4141. type: object
  4142. type: object
  4143. security:
  4144. - ApiKeyAuth: []
  4145. summary: Get IP group list
  4146. tags:
  4147. - groups
  4148. /api/groups/search:
  4149. get:
  4150. description: Search groups with keyword and pagination
  4151. parameters:
  4152. - description: Search keyword
  4153. in: query
  4154. name: keyword
  4155. required: true
  4156. type: string
  4157. - description: Page number
  4158. in: query
  4159. name: page
  4160. type: integer
  4161. - description: Items per page
  4162. in: query
  4163. name: per_page
  4164. type: integer
  4165. - description: Status
  4166. in: query
  4167. name: status
  4168. type: integer
  4169. - description: Order
  4170. in: query
  4171. name: order
  4172. type: string
  4173. produces:
  4174. - application/json
  4175. responses:
  4176. "200":
  4177. description: OK
  4178. schema:
  4179. allOf:
  4180. - $ref: '#/definitions/middleware.APIResponse'
  4181. - properties:
  4182. data:
  4183. additionalProperties:
  4184. allOf:
  4185. - {}
  4186. - properties:
  4187. groups:
  4188. items:
  4189. $ref: '#/definitions/controller.GroupResponse'
  4190. type: array
  4191. total:
  4192. type: integer
  4193. type: object
  4194. type: object
  4195. type: object
  4196. security:
  4197. - ApiKeyAuth: []
  4198. summary: Search groups
  4199. tags:
  4200. - groups
  4201. /api/log/{group}:
  4202. get:
  4203. description: Get logs for a specific group
  4204. parameters:
  4205. - description: Group name
  4206. in: path
  4207. name: group
  4208. required: true
  4209. type: string
  4210. - description: Page number
  4211. in: query
  4212. name: page
  4213. type: integer
  4214. - description: Items per page
  4215. in: query
  4216. name: per_page
  4217. type: integer
  4218. - description: Start timestamp (milliseconds)
  4219. in: query
  4220. name: start_timestamp
  4221. type: integer
  4222. - description: End timestamp (milliseconds)
  4223. in: query
  4224. name: end_timestamp
  4225. type: integer
  4226. - description: Token name
  4227. in: query
  4228. name: token_name
  4229. type: string
  4230. - description: Model name
  4231. in: query
  4232. name: model_name
  4233. type: string
  4234. - description: Channel ID
  4235. in: query
  4236. name: channel
  4237. type: integer
  4238. - description: Token ID
  4239. in: query
  4240. name: token_id
  4241. type: integer
  4242. - description: Order
  4243. in: query
  4244. name: order
  4245. type: string
  4246. - description: Request ID
  4247. in: query
  4248. name: request_id
  4249. type: string
  4250. - description: Status code type
  4251. in: query
  4252. name: code_type
  4253. type: string
  4254. - description: Status code
  4255. in: query
  4256. name: code
  4257. type: integer
  4258. - description: With body
  4259. in: query
  4260. name: with_body
  4261. type: boolean
  4262. - description: IP
  4263. in: query
  4264. name: ip
  4265. type: string
  4266. - description: User
  4267. in: query
  4268. name: user
  4269. type: string
  4270. produces:
  4271. - application/json
  4272. responses:
  4273. "200":
  4274. description: OK
  4275. schema:
  4276. allOf:
  4277. - $ref: '#/definitions/middleware.APIResponse'
  4278. - properties:
  4279. data:
  4280. $ref: '#/definitions/model.GetGroupLogsResult'
  4281. type: object
  4282. security:
  4283. - ApiKeyAuth: []
  4284. summary: Get group logs
  4285. tags:
  4286. - log
  4287. /api/log/{group}/detail/{log_id}:
  4288. get:
  4289. description: Get detailed information about a specific log entry in a group
  4290. parameters:
  4291. - description: Group name
  4292. in: path
  4293. name: group
  4294. required: true
  4295. type: string
  4296. - description: Log ID
  4297. in: path
  4298. name: log_id
  4299. required: true
  4300. type: string
  4301. produces:
  4302. - application/json
  4303. responses:
  4304. "200":
  4305. description: OK
  4306. schema:
  4307. allOf:
  4308. - $ref: '#/definitions/middleware.APIResponse'
  4309. - properties:
  4310. data:
  4311. $ref: '#/definitions/model.RequestDetail'
  4312. type: object
  4313. security:
  4314. - ApiKeyAuth: []
  4315. summary: Get group log detail
  4316. tags:
  4317. - log
  4318. /api/log/{group}/search:
  4319. get:
  4320. description: Search logs for a specific group with filters
  4321. parameters:
  4322. - description: Group name
  4323. in: path
  4324. name: group
  4325. required: true
  4326. type: string
  4327. - description: Keyword
  4328. in: query
  4329. name: keyword
  4330. type: string
  4331. - description: Page number
  4332. in: query
  4333. name: page
  4334. type: integer
  4335. - description: Items per page
  4336. in: query
  4337. name: per_page
  4338. type: integer
  4339. - description: Start timestamp (milliseconds)
  4340. in: query
  4341. name: start_timestamp
  4342. type: integer
  4343. - description: End timestamp (milliseconds)
  4344. in: query
  4345. name: end_timestamp
  4346. type: integer
  4347. - description: Filter by token name
  4348. in: query
  4349. name: token_name
  4350. type: string
  4351. - description: Filter by model name
  4352. in: query
  4353. name: model_name
  4354. type: string
  4355. - description: Filter by token id
  4356. in: query
  4357. name: token_id
  4358. type: integer
  4359. - description: Order
  4360. in: query
  4361. name: order
  4362. type: string
  4363. - description: Request ID
  4364. in: query
  4365. name: request_id
  4366. type: string
  4367. - description: Status code type
  4368. in: query
  4369. name: code_type
  4370. type: string
  4371. - description: Status code
  4372. in: query
  4373. name: code
  4374. type: integer
  4375. - description: With body
  4376. in: query
  4377. name: with_body
  4378. type: boolean
  4379. - description: IP
  4380. in: query
  4381. name: ip
  4382. type: string
  4383. - description: User
  4384. in: query
  4385. name: user
  4386. type: string
  4387. produces:
  4388. - application/json
  4389. responses:
  4390. "200":
  4391. description: OK
  4392. schema:
  4393. allOf:
  4394. - $ref: '#/definitions/middleware.APIResponse'
  4395. - properties:
  4396. data:
  4397. $ref: '#/definitions/model.GetGroupLogsResult'
  4398. type: object
  4399. security:
  4400. - ApiKeyAuth: []
  4401. summary: Search group logs
  4402. tags:
  4403. - log
  4404. /api/logs/:
  4405. delete:
  4406. description: Deletes logs older than the specified retention period
  4407. parameters:
  4408. - description: Timestamp (milliseconds)
  4409. in: query
  4410. name: timestamp
  4411. required: true
  4412. type: integer
  4413. produces:
  4414. - application/json
  4415. responses:
  4416. "200":
  4417. description: OK
  4418. schema:
  4419. allOf:
  4420. - $ref: '#/definitions/middleware.APIResponse'
  4421. - properties:
  4422. data:
  4423. type: integer
  4424. type: object
  4425. security:
  4426. - ApiKeyAuth: []
  4427. summary: Delete historical logs
  4428. tags:
  4429. - logs
  4430. get:
  4431. description: Returns a paginated list of all logs with optional filters
  4432. parameters:
  4433. - description: Page number
  4434. in: query
  4435. name: page
  4436. type: integer
  4437. - description: Items per page
  4438. in: query
  4439. name: per_page
  4440. type: integer
  4441. - description: Start timestamp (milliseconds)
  4442. in: query
  4443. name: start_timestamp
  4444. type: integer
  4445. - description: End timestamp (milliseconds)
  4446. in: query
  4447. name: end_timestamp
  4448. type: integer
  4449. - description: Model name
  4450. in: query
  4451. name: model_name
  4452. type: string
  4453. - description: Channel ID
  4454. in: query
  4455. name: channel
  4456. type: integer
  4457. - description: Order
  4458. in: query
  4459. name: order
  4460. type: string
  4461. - description: Request ID
  4462. in: query
  4463. name: request_id
  4464. type: string
  4465. - description: Status code type
  4466. in: query
  4467. name: code_type
  4468. type: string
  4469. - description: Status code
  4470. in: query
  4471. name: code
  4472. type: integer
  4473. - description: With body
  4474. in: query
  4475. name: with_body
  4476. type: boolean
  4477. - description: IP
  4478. in: query
  4479. name: ip
  4480. type: string
  4481. - description: User
  4482. in: query
  4483. name: user
  4484. type: string
  4485. produces:
  4486. - application/json
  4487. responses:
  4488. "200":
  4489. description: OK
  4490. schema:
  4491. allOf:
  4492. - $ref: '#/definitions/middleware.APIResponse'
  4493. - properties:
  4494. data:
  4495. $ref: '#/definitions/model.GetLogsResult'
  4496. type: object
  4497. security:
  4498. - ApiKeyAuth: []
  4499. summary: Get all logs
  4500. tags:
  4501. - logs
  4502. /api/logs/consume_error:
  4503. get:
  4504. description: Search for logs with consumption errors
  4505. parameters:
  4506. - description: Page number
  4507. in: query
  4508. name: page
  4509. type: integer
  4510. - description: Items per page
  4511. in: query
  4512. name: per_page
  4513. type: integer
  4514. - description: Start timestamp (milliseconds)
  4515. in: query
  4516. name: start_timestamp
  4517. type: integer
  4518. - description: End timestamp (milliseconds)
  4519. in: query
  4520. name: end_timestamp
  4521. type: integer
  4522. - description: Keyword
  4523. in: query
  4524. name: keyword
  4525. type: string
  4526. - description: Group
  4527. in: query
  4528. name: group
  4529. type: string
  4530. - description: Token name
  4531. in: query
  4532. name: token_name
  4533. type: string
  4534. - description: Model name
  4535. in: query
  4536. name: model_name
  4537. type: string
  4538. - description: Content
  4539. in: query
  4540. name: content
  4541. type: string
  4542. - description: Token ID
  4543. in: query
  4544. name: token_id
  4545. type: integer
  4546. - description: Order
  4547. in: query
  4548. name: order
  4549. type: string
  4550. - description: Request ID
  4551. in: query
  4552. name: request_id
  4553. type: string
  4554. produces:
  4555. - application/json
  4556. responses:
  4557. "200":
  4558. description: OK
  4559. schema:
  4560. allOf:
  4561. - $ref: '#/definitions/middleware.APIResponse'
  4562. - properties:
  4563. data:
  4564. additionalProperties:
  4565. allOf:
  4566. - {}
  4567. - properties:
  4568. logs:
  4569. items:
  4570. $ref: '#/definitions/model.RequestDetail'
  4571. type: array
  4572. total:
  4573. type: integer
  4574. type: object
  4575. type: object
  4576. type: object
  4577. security:
  4578. - ApiKeyAuth: []
  4579. summary: Search consumption errors
  4580. tags:
  4581. - logs
  4582. /api/logs/detail/{log_id}:
  4583. get:
  4584. description: Get detailed information about a specific log entry
  4585. parameters:
  4586. - description: Log ID
  4587. in: path
  4588. name: log_id
  4589. required: true
  4590. type: string
  4591. produces:
  4592. - application/json
  4593. responses:
  4594. "200":
  4595. description: OK
  4596. schema:
  4597. allOf:
  4598. - $ref: '#/definitions/middleware.APIResponse'
  4599. - properties:
  4600. data:
  4601. $ref: '#/definitions/model.RequestDetail'
  4602. type: object
  4603. security:
  4604. - ApiKeyAuth: []
  4605. summary: Get log detail
  4606. tags:
  4607. - logs
  4608. /api/logs/search:
  4609. get:
  4610. description: Search logs with various filters
  4611. parameters:
  4612. - description: Keyword
  4613. in: query
  4614. name: keyword
  4615. type: string
  4616. - description: Page number
  4617. in: query
  4618. name: page
  4619. type: integer
  4620. - description: Items per page
  4621. in: query
  4622. name: per_page
  4623. type: integer
  4624. - description: Start timestamp (milliseconds)
  4625. in: query
  4626. name: start_timestamp
  4627. type: integer
  4628. - description: End timestamp (milliseconds)
  4629. in: query
  4630. name: end_timestamp
  4631. type: integer
  4632. - description: Filter by model name
  4633. in: query
  4634. name: model_name
  4635. type: string
  4636. - description: Filter by channel
  4637. in: query
  4638. name: channel
  4639. type: integer
  4640. - description: Group name
  4641. in: query
  4642. name: group
  4643. required: true
  4644. type: string
  4645. - description: Filter by token id
  4646. in: query
  4647. name: token_id
  4648. type: integer
  4649. - description: Filter by token name
  4650. in: query
  4651. name: token_name
  4652. type: string
  4653. - description: Order
  4654. in: query
  4655. name: order
  4656. type: string
  4657. - description: Request ID
  4658. in: query
  4659. name: request_id
  4660. type: string
  4661. - description: Status code type
  4662. in: query
  4663. name: code_type
  4664. type: string
  4665. - description: Status code
  4666. in: query
  4667. name: code
  4668. type: integer
  4669. - description: With body
  4670. in: query
  4671. name: with_body
  4672. type: boolean
  4673. - description: IP
  4674. in: query
  4675. name: ip
  4676. type: string
  4677. - description: User
  4678. in: query
  4679. name: user
  4680. type: string
  4681. produces:
  4682. - application/json
  4683. responses:
  4684. "200":
  4685. description: OK
  4686. schema:
  4687. allOf:
  4688. - $ref: '#/definitions/middleware.APIResponse'
  4689. - properties:
  4690. data:
  4691. $ref: '#/definitions/model.GetLogsResult'
  4692. type: object
  4693. security:
  4694. - ApiKeyAuth: []
  4695. summary: Search logs
  4696. tags:
  4697. - logs
  4698. /api/mcp/group/{group}:
  4699. get:
  4700. description: Get a list of Group MCPs with pagination and filtering
  4701. parameters:
  4702. - description: Group ID
  4703. in: path
  4704. name: group
  4705. required: true
  4706. type: string
  4707. - description: Page number
  4708. in: query
  4709. name: page
  4710. type: integer
  4711. - description: Items per page
  4712. in: query
  4713. name: per_page
  4714. type: integer
  4715. - description: MCP id
  4716. in: query
  4717. name: id
  4718. type: string
  4719. - description: MCP type, mcp_proxy_sse, mcp_proxy_streamable, mcp_openapi
  4720. in: query
  4721. name: type
  4722. type: string
  4723. - description: Search keyword
  4724. in: query
  4725. name: keyword
  4726. type: string
  4727. - description: MCP status
  4728. in: query
  4729. name: status
  4730. type: integer
  4731. produces:
  4732. - application/json
  4733. responses:
  4734. "200":
  4735. description: OK
  4736. schema:
  4737. allOf:
  4738. - $ref: '#/definitions/middleware.APIResponse'
  4739. - properties:
  4740. data:
  4741. items:
  4742. $ref: '#/definitions/controller.GroupMCPResponse'
  4743. type: array
  4744. type: object
  4745. security:
  4746. - ApiKeyAuth: []
  4747. summary: Get Group MCPs
  4748. tags:
  4749. - mcp
  4750. post:
  4751. consumes:
  4752. - application/json
  4753. description: Create a new Group MCP
  4754. parameters:
  4755. - description: Group ID
  4756. in: path
  4757. name: group
  4758. required: true
  4759. type: string
  4760. - description: Group MCP object
  4761. in: body
  4762. name: mcp
  4763. required: true
  4764. schema:
  4765. $ref: '#/definitions/model.GroupMCP'
  4766. produces:
  4767. - application/json
  4768. responses:
  4769. "200":
  4770. description: OK
  4771. schema:
  4772. allOf:
  4773. - $ref: '#/definitions/middleware.APIResponse'
  4774. - properties:
  4775. data:
  4776. $ref: '#/definitions/controller.GroupMCPResponse'
  4777. type: object
  4778. security:
  4779. - ApiKeyAuth: []
  4780. summary: Create Group MCP
  4781. tags:
  4782. - mcp
  4783. /api/mcp/group/{group}/{id}:
  4784. delete:
  4785. description: Delete a Group MCP by ID and Group ID
  4786. parameters:
  4787. - description: MCP ID
  4788. in: path
  4789. name: id
  4790. required: true
  4791. type: string
  4792. - description: Group ID
  4793. in: path
  4794. name: group
  4795. required: true
  4796. type: string
  4797. produces:
  4798. - application/json
  4799. responses:
  4800. "200":
  4801. description: OK
  4802. schema:
  4803. $ref: '#/definitions/middleware.APIResponse'
  4804. security:
  4805. - ApiKeyAuth: []
  4806. summary: Delete Group MCP
  4807. tags:
  4808. - mcp
  4809. get:
  4810. description: Get a specific Group MCP by its ID and Group ID
  4811. parameters:
  4812. - description: MCP ID
  4813. in: path
  4814. name: id
  4815. required: true
  4816. type: string
  4817. - description: Group ID
  4818. in: path
  4819. name: group
  4820. required: true
  4821. type: string
  4822. produces:
  4823. - application/json
  4824. responses:
  4825. "200":
  4826. description: OK
  4827. schema:
  4828. allOf:
  4829. - $ref: '#/definitions/middleware.APIResponse'
  4830. - properties:
  4831. data:
  4832. $ref: '#/definitions/controller.GroupMCPResponse'
  4833. type: object
  4834. security:
  4835. - ApiKeyAuth: []
  4836. summary: Get Group MCP by ID
  4837. tags:
  4838. - mcp
  4839. put:
  4840. consumes:
  4841. - application/json
  4842. description: Update an existing Group MCP
  4843. parameters:
  4844. - description: MCP ID
  4845. in: path
  4846. name: id
  4847. required: true
  4848. type: string
  4849. - description: Group ID
  4850. in: path
  4851. name: group
  4852. required: true
  4853. type: string
  4854. - description: Group MCP object
  4855. in: body
  4856. name: mcp
  4857. required: true
  4858. schema:
  4859. $ref: '#/definitions/model.GroupMCP'
  4860. produces:
  4861. - application/json
  4862. responses:
  4863. "200":
  4864. description: OK
  4865. schema:
  4866. allOf:
  4867. - $ref: '#/definitions/middleware.APIResponse'
  4868. - properties:
  4869. data:
  4870. $ref: '#/definitions/controller.GroupMCPResponse'
  4871. type: object
  4872. security:
  4873. - ApiKeyAuth: []
  4874. summary: Update Group MCP
  4875. tags:
  4876. - mcp
  4877. /api/mcp/group/{group}/{id}/status:
  4878. post:
  4879. consumes:
  4880. - application/json
  4881. description: Update the status of a Group MCP
  4882. parameters:
  4883. - description: MCP ID
  4884. in: path
  4885. name: id
  4886. required: true
  4887. type: string
  4888. - description: Group ID
  4889. in: path
  4890. name: group
  4891. required: true
  4892. type: string
  4893. - description: MCP status
  4894. in: body
  4895. name: status
  4896. required: true
  4897. schema:
  4898. $ref: '#/definitions/controller.UpdateGroupMCPStatusRequest'
  4899. produces:
  4900. - application/json
  4901. responses:
  4902. "200":
  4903. description: OK
  4904. schema:
  4905. $ref: '#/definitions/middleware.APIResponse'
  4906. security:
  4907. - ApiKeyAuth: []
  4908. summary: Update Group MCP status
  4909. tags:
  4910. - mcp
  4911. /api/mcp/group/all:
  4912. get:
  4913. description: Get all Group MCPs with filtering
  4914. parameters:
  4915. - description: MCP status
  4916. in: query
  4917. name: status
  4918. type: integer
  4919. produces:
  4920. - application/json
  4921. responses:
  4922. "200":
  4923. description: OK
  4924. schema:
  4925. allOf:
  4926. - $ref: '#/definitions/middleware.APIResponse'
  4927. - properties:
  4928. data:
  4929. items:
  4930. $ref: '#/definitions/controller.GroupMCPResponse'
  4931. type: array
  4932. type: object
  4933. security:
  4934. - ApiKeyAuth: []
  4935. summary: Get all Group MCPs
  4936. tags:
  4937. - mcp
  4938. /api/mcp/public/:
  4939. post:
  4940. consumes:
  4941. - application/json
  4942. description: Create a new MCP
  4943. parameters:
  4944. - description: MCP object
  4945. in: body
  4946. name: mcp
  4947. required: true
  4948. schema:
  4949. $ref: '#/definitions/model.PublicMCP'
  4950. produces:
  4951. - application/json
  4952. responses:
  4953. "200":
  4954. description: OK
  4955. schema:
  4956. allOf:
  4957. - $ref: '#/definitions/middleware.APIResponse'
  4958. - properties:
  4959. data:
  4960. $ref: '#/definitions/controller.PublicMCPResponse'
  4961. type: object
  4962. security:
  4963. - ApiKeyAuth: []
  4964. summary: Create MCP
  4965. tags:
  4966. - mcp
  4967. /api/mcp/public/{id}:
  4968. delete:
  4969. description: Delete an MCP by ID
  4970. parameters:
  4971. - description: MCP ID
  4972. in: path
  4973. name: id
  4974. required: true
  4975. type: string
  4976. produces:
  4977. - application/json
  4978. responses:
  4979. "200":
  4980. description: OK
  4981. schema:
  4982. $ref: '#/definitions/middleware.APIResponse'
  4983. security:
  4984. - ApiKeyAuth: []
  4985. summary: Delete MCP
  4986. tags:
  4987. - mcp
  4988. get:
  4989. description: Get a specific MCP by its ID
  4990. parameters:
  4991. - description: MCP ID
  4992. in: path
  4993. name: id
  4994. required: true
  4995. type: string
  4996. produces:
  4997. - application/json
  4998. responses:
  4999. "200":
  5000. description: OK
  5001. schema:
  5002. allOf:
  5003. - $ref: '#/definitions/middleware.APIResponse'
  5004. - properties:
  5005. data:
  5006. $ref: '#/definitions/controller.PublicMCPResponse'
  5007. type: object
  5008. security:
  5009. - ApiKeyAuth: []
  5010. summary: Get MCP by ID
  5011. tags:
  5012. - mcp
  5013. post:
  5014. consumes:
  5015. - application/json
  5016. description: Update an existing MCP
  5017. parameters:
  5018. - description: MCP ID
  5019. in: path
  5020. name: id
  5021. required: true
  5022. type: string
  5023. - description: MCP object
  5024. in: body
  5025. name: mcp
  5026. required: true
  5027. schema:
  5028. $ref: '#/definitions/model.PublicMCP'
  5029. produces:
  5030. - application/json
  5031. responses:
  5032. "200":
  5033. description: OK
  5034. schema:
  5035. allOf:
  5036. - $ref: '#/definitions/middleware.APIResponse'
  5037. - properties:
  5038. data:
  5039. $ref: '#/definitions/controller.PublicMCPResponse'
  5040. type: object
  5041. security:
  5042. - ApiKeyAuth: []
  5043. summary: Update MCP
  5044. tags:
  5045. - mcp
  5046. put:
  5047. consumes:
  5048. - application/json
  5049. description: Save a MCP
  5050. parameters:
  5051. - description: MCP ID
  5052. in: path
  5053. name: id
  5054. required: true
  5055. type: string
  5056. - description: MCP object
  5057. in: body
  5058. name: mcp
  5059. required: true
  5060. schema:
  5061. $ref: '#/definitions/model.PublicMCP'
  5062. produces:
  5063. - application/json
  5064. responses:
  5065. "200":
  5066. description: OK
  5067. schema:
  5068. allOf:
  5069. - $ref: '#/definitions/middleware.APIResponse'
  5070. - properties:
  5071. data:
  5072. $ref: '#/definitions/controller.PublicMCPResponse'
  5073. type: object
  5074. security:
  5075. - ApiKeyAuth: []
  5076. summary: Save MCP
  5077. tags:
  5078. - mcp
  5079. /api/mcp/public/{id}/group/{group}/params:
  5080. get:
  5081. description: Get reusing parameters for a specific group and MCP
  5082. parameters:
  5083. - description: MCP ID
  5084. in: path
  5085. name: id
  5086. required: true
  5087. type: string
  5088. - description: Group ID
  5089. in: path
  5090. name: group
  5091. required: true
  5092. type: string
  5093. produces:
  5094. - application/json
  5095. responses:
  5096. "200":
  5097. description: OK
  5098. schema:
  5099. allOf:
  5100. - $ref: '#/definitions/middleware.APIResponse'
  5101. - properties:
  5102. data:
  5103. $ref: '#/definitions/model.PublicMCPReusingParam'
  5104. type: object
  5105. security:
  5106. - ApiKeyAuth: []
  5107. summary: Get group MCP reusing parameters
  5108. tags:
  5109. - mcp
  5110. post:
  5111. consumes:
  5112. - application/json
  5113. description: Create or update reusing parameters for a specific group and MCP
  5114. parameters:
  5115. - description: MCP ID
  5116. in: path
  5117. name: id
  5118. required: true
  5119. type: string
  5120. - description: Group ID
  5121. in: path
  5122. name: group
  5123. required: true
  5124. type: string
  5125. - description: Reusing parameters
  5126. in: body
  5127. name: params
  5128. required: true
  5129. schema:
  5130. $ref: '#/definitions/model.PublicMCPReusingParam'
  5131. produces:
  5132. - application/json
  5133. responses:
  5134. "200":
  5135. description: OK
  5136. schema:
  5137. $ref: '#/definitions/middleware.APIResponse'
  5138. security:
  5139. - ApiKeyAuth: []
  5140. summary: Create or update group MCP reusing parameters
  5141. tags:
  5142. - mcp
  5143. /api/mcp/public/{id}/status:
  5144. post:
  5145. consumes:
  5146. - application/json
  5147. description: Update the status of an MCP
  5148. parameters:
  5149. - description: MCP ID
  5150. in: path
  5151. name: id
  5152. required: true
  5153. type: string
  5154. - description: MCP status
  5155. in: body
  5156. name: status
  5157. required: true
  5158. schema:
  5159. $ref: '#/definitions/controller.UpdatePublicMCPStatusRequest'
  5160. produces:
  5161. - application/json
  5162. responses:
  5163. "200":
  5164. description: OK
  5165. schema:
  5166. $ref: '#/definitions/middleware.APIResponse'
  5167. security:
  5168. - ApiKeyAuth: []
  5169. summary: Update MCP status
  5170. tags:
  5171. - mcp
  5172. /api/mcp/publics/:
  5173. get:
  5174. description: Get a list of MCPs with pagination and filtering
  5175. parameters:
  5176. - description: Page number
  5177. in: query
  5178. name: page
  5179. type: integer
  5180. - description: Items per page
  5181. in: query
  5182. name: per_page
  5183. type: integer
  5184. - description: hosted or local
  5185. in: query
  5186. name: type
  5187. type: string
  5188. - description: MCP id
  5189. in: query
  5190. name: id
  5191. type: string
  5192. - description: Search keyword
  5193. in: query
  5194. name: keyword
  5195. type: string
  5196. - description: MCP status
  5197. in: query
  5198. name: status
  5199. type: integer
  5200. produces:
  5201. - application/json
  5202. responses:
  5203. "200":
  5204. description: OK
  5205. schema:
  5206. allOf:
  5207. - $ref: '#/definitions/middleware.APIResponse'
  5208. - properties:
  5209. data:
  5210. items:
  5211. $ref: '#/definitions/controller.PublicMCPResponse'
  5212. type: array
  5213. type: object
  5214. security:
  5215. - ApiKeyAuth: []
  5216. summary: Get MCPs
  5217. tags:
  5218. - mcp
  5219. post:
  5220. consumes:
  5221. - application/json
  5222. description: Save a list of MCPs
  5223. parameters:
  5224. - description: MCP object
  5225. in: body
  5226. name: mcp
  5227. required: true
  5228. schema:
  5229. items:
  5230. $ref: '#/definitions/model.PublicMCP'
  5231. type: array
  5232. produces:
  5233. - application/json
  5234. responses:
  5235. "200":
  5236. description: OK
  5237. schema:
  5238. $ref: '#/definitions/middleware.APIResponse'
  5239. security:
  5240. - ApiKeyAuth: []
  5241. summary: Save MCPs
  5242. tags:
  5243. - mcp
  5244. /api/mcp/publics/all:
  5245. get:
  5246. description: Get all MCPs with filtering
  5247. parameters:
  5248. - description: MCP status
  5249. in: query
  5250. name: status
  5251. type: integer
  5252. produces:
  5253. - application/json
  5254. responses:
  5255. "200":
  5256. description: OK
  5257. schema:
  5258. allOf:
  5259. - $ref: '#/definitions/middleware.APIResponse'
  5260. - properties:
  5261. data:
  5262. items:
  5263. $ref: '#/definitions/controller.PublicMCPResponse'
  5264. type: array
  5265. type: object
  5266. security:
  5267. - ApiKeyAuth: []
  5268. summary: Get all MCPs
  5269. tags:
  5270. - mcp
  5271. /api/model_config/{model}:
  5272. delete:
  5273. description: Deletes a model config
  5274. parameters:
  5275. - description: Model name
  5276. in: path
  5277. name: model
  5278. required: true
  5279. type: string
  5280. produces:
  5281. - application/json
  5282. responses:
  5283. "200":
  5284. description: OK
  5285. schema:
  5286. $ref: '#/definitions/middleware.APIResponse'
  5287. security:
  5288. - ApiKeyAuth: []
  5289. summary: Delete model config
  5290. tags:
  5291. - modelconfig
  5292. get:
  5293. description: Returns a model config
  5294. parameters:
  5295. - description: Model name
  5296. in: path
  5297. name: model
  5298. required: true
  5299. type: string
  5300. produces:
  5301. - application/json
  5302. responses:
  5303. "200":
  5304. description: OK
  5305. schema:
  5306. allOf:
  5307. - $ref: '#/definitions/middleware.APIResponse'
  5308. - properties:
  5309. data:
  5310. $ref: '#/definitions/model.ModelConfig'
  5311. type: object
  5312. security:
  5313. - ApiKeyAuth: []
  5314. summary: Get model config
  5315. tags:
  5316. - modelconfig
  5317. post:
  5318. description: Saves a model config
  5319. parameters:
  5320. - description: Model config
  5321. in: body
  5322. name: config
  5323. required: true
  5324. schema:
  5325. $ref: '#/definitions/controller.SaveModelConfigsRequest'
  5326. produces:
  5327. - application/json
  5328. responses:
  5329. "200":
  5330. description: OK
  5331. schema:
  5332. $ref: '#/definitions/middleware.APIResponse'
  5333. security:
  5334. - ApiKeyAuth: []
  5335. summary: Save model config
  5336. tags:
  5337. - modelconfig
  5338. /api/model_configs/:
  5339. get:
  5340. description: Returns a list of model configs with pagination
  5341. parameters:
  5342. - description: Model name
  5343. in: query
  5344. name: model
  5345. type: string
  5346. produces:
  5347. - application/json
  5348. responses:
  5349. "200":
  5350. description: OK
  5351. schema:
  5352. allOf:
  5353. - $ref: '#/definitions/middleware.APIResponse'
  5354. - properties:
  5355. data:
  5356. additionalProperties:
  5357. allOf:
  5358. - {}
  5359. - properties:
  5360. configs:
  5361. items:
  5362. $ref: '#/definitions/model.ModelConfig'
  5363. type: array
  5364. total:
  5365. type: integer
  5366. type: object
  5367. type: object
  5368. type: object
  5369. security:
  5370. - ApiKeyAuth: []
  5371. summary: Get model configs
  5372. tags:
  5373. - modelconfig
  5374. post:
  5375. description: Saves a list of model configs
  5376. parameters:
  5377. - description: Model configs
  5378. in: body
  5379. name: configs
  5380. required: true
  5381. schema:
  5382. items:
  5383. $ref: '#/definitions/controller.SaveModelConfigsRequest'
  5384. type: array
  5385. produces:
  5386. - application/json
  5387. responses:
  5388. "200":
  5389. description: OK
  5390. schema:
  5391. $ref: '#/definitions/middleware.APIResponse'
  5392. security:
  5393. - ApiKeyAuth: []
  5394. summary: Save model configs
  5395. tags:
  5396. - modelconfig
  5397. /api/model_configs/all:
  5398. get:
  5399. description: Returns a list of all model configs
  5400. produces:
  5401. - application/json
  5402. responses:
  5403. "200":
  5404. description: OK
  5405. schema:
  5406. allOf:
  5407. - $ref: '#/definitions/middleware.APIResponse'
  5408. - properties:
  5409. data:
  5410. items:
  5411. $ref: '#/definitions/model.ModelConfig'
  5412. type: array
  5413. type: object
  5414. security:
  5415. - ApiKeyAuth: []
  5416. summary: Get all model configs
  5417. tags:
  5418. - modelconfig
  5419. /api/model_configs/batch_delete:
  5420. post:
  5421. description: Deletes a list of model configs
  5422. parameters:
  5423. - description: Model names
  5424. in: body
  5425. name: models
  5426. required: true
  5427. schema:
  5428. items:
  5429. type: string
  5430. type: array
  5431. produces:
  5432. - application/json
  5433. responses:
  5434. "200":
  5435. description: OK
  5436. schema:
  5437. $ref: '#/definitions/middleware.APIResponse'
  5438. security:
  5439. - ApiKeyAuth: []
  5440. summary: Delete model configs
  5441. tags:
  5442. - modelconfig
  5443. /api/model_configs/contains:
  5444. post:
  5445. description: Returns a list of model configs by models contains
  5446. parameters:
  5447. - description: Models
  5448. in: body
  5449. name: models
  5450. required: true
  5451. schema:
  5452. $ref: '#/definitions/controller.GetModelConfigsByModelsContainsRequest'
  5453. produces:
  5454. - application/json
  5455. responses:
  5456. "200":
  5457. description: OK
  5458. schema:
  5459. allOf:
  5460. - $ref: '#/definitions/middleware.APIResponse'
  5461. - properties:
  5462. data:
  5463. items:
  5464. $ref: '#/definitions/model.ModelConfig'
  5465. type: array
  5466. type: object
  5467. security:
  5468. - ApiKeyAuth: []
  5469. summary: Get model configs by models contains
  5470. tags:
  5471. - modelconfig
  5472. /api/model_configs/search:
  5473. get:
  5474. description: Returns a list of model configs by keyword
  5475. parameters:
  5476. - description: Keyword
  5477. in: query
  5478. name: keyword
  5479. type: string
  5480. - description: Model name
  5481. in: query
  5482. name: model
  5483. type: string
  5484. - description: Owner
  5485. in: query
  5486. name: owner
  5487. type: string
  5488. - description: Page
  5489. in: query
  5490. name: page
  5491. type: integer
  5492. - description: Per page
  5493. in: query
  5494. name: per_page
  5495. type: integer
  5496. produces:
  5497. - application/json
  5498. responses:
  5499. "200":
  5500. description: OK
  5501. schema:
  5502. allOf:
  5503. - $ref: '#/definitions/middleware.APIResponse'
  5504. - properties:
  5505. data:
  5506. additionalProperties:
  5507. allOf:
  5508. - {}
  5509. - properties:
  5510. configs:
  5511. items:
  5512. $ref: '#/definitions/model.ModelConfig'
  5513. type: array
  5514. total:
  5515. type: integer
  5516. type: object
  5517. type: object
  5518. type: object
  5519. security:
  5520. - ApiKeyAuth: []
  5521. summary: Search model configs
  5522. tags:
  5523. - modelconfig
  5524. /api/models/builtin:
  5525. get:
  5526. description: Returns a list of builtin models
  5527. produces:
  5528. - application/json
  5529. responses:
  5530. "200":
  5531. description: OK
  5532. schema:
  5533. allOf:
  5534. - $ref: '#/definitions/middleware.APIResponse'
  5535. - properties:
  5536. data:
  5537. items:
  5538. $ref: '#/definitions/controller.BuiltinModelConfig'
  5539. type: array
  5540. type: object
  5541. security:
  5542. - ApiKeyAuth: []
  5543. summary: Get builtin models
  5544. tags:
  5545. - model
  5546. /api/models/builtin/channel:
  5547. get:
  5548. description: Returns a list of channel builtin models
  5549. produces:
  5550. - application/json
  5551. responses:
  5552. "200":
  5553. description: OK
  5554. schema:
  5555. allOf:
  5556. - $ref: '#/definitions/middleware.APIResponse'
  5557. - properties:
  5558. data:
  5559. additionalProperties:
  5560. items:
  5561. $ref: '#/definitions/controller.BuiltinModelConfig'
  5562. type: array
  5563. type: object
  5564. type: object
  5565. security:
  5566. - ApiKeyAuth: []
  5567. summary: Get channel builtin models
  5568. tags:
  5569. - model
  5570. /api/models/builtin/channel/{type}:
  5571. get:
  5572. description: Returns a list of channel builtin models by type
  5573. parameters:
  5574. - description: Channel type
  5575. enum:
  5576. - 1
  5577. - 3
  5578. - 4
  5579. - 12
  5580. - 13
  5581. - 14
  5582. - 15
  5583. - 16
  5584. - 17
  5585. - 18
  5586. - 19
  5587. - 20
  5588. - 23
  5589. - 24
  5590. - 25
  5591. - 26
  5592. - 27
  5593. - 28
  5594. - 29
  5595. - 30
  5596. - 31
  5597. - 32
  5598. - 33
  5599. - 34
  5600. - 35
  5601. - 36
  5602. - 37
  5603. - 40
  5604. - 41
  5605. - 42
  5606. - 43
  5607. - 44
  5608. - 45
  5609. - 46
  5610. - 47
  5611. - 48
  5612. - 49
  5613. - 50
  5614. in: path
  5615. name: type
  5616. required: true
  5617. type: integer
  5618. produces:
  5619. - application/json
  5620. responses:
  5621. "200":
  5622. description: OK
  5623. schema:
  5624. allOf:
  5625. - $ref: '#/definitions/middleware.APIResponse'
  5626. - properties:
  5627. data:
  5628. items:
  5629. $ref: '#/definitions/controller.BuiltinModelConfig'
  5630. type: array
  5631. type: object
  5632. security:
  5633. - ApiKeyAuth: []
  5634. summary: Get channel builtin models by type
  5635. tags:
  5636. - model
  5637. /api/models/default:
  5638. get:
  5639. description: Returns a list of channel default models and mapping
  5640. produces:
  5641. - application/json
  5642. responses:
  5643. "200":
  5644. description: OK
  5645. schema:
  5646. allOf:
  5647. - $ref: '#/definitions/middleware.APIResponse'
  5648. - properties:
  5649. data:
  5650. additionalProperties:
  5651. allOf:
  5652. - {}
  5653. - properties:
  5654. mapping:
  5655. additionalProperties:
  5656. type: string
  5657. type: object
  5658. models:
  5659. items:
  5660. type: string
  5661. type: array
  5662. type: object
  5663. type: object
  5664. type: object
  5665. security:
  5666. - ApiKeyAuth: []
  5667. summary: Get channel default models and mapping
  5668. tags:
  5669. - model
  5670. /api/models/default/{type}:
  5671. get:
  5672. description: Returns a list of channel default models and mapping by type
  5673. parameters:
  5674. - description: Channel type
  5675. in: path
  5676. name: type
  5677. required: true
  5678. type: string
  5679. produces:
  5680. - application/json
  5681. responses:
  5682. "200":
  5683. description: OK
  5684. schema:
  5685. allOf:
  5686. - $ref: '#/definitions/middleware.APIResponse'
  5687. - properties:
  5688. data:
  5689. additionalProperties:
  5690. allOf:
  5691. - {}
  5692. - properties:
  5693. mapping:
  5694. additionalProperties:
  5695. type: string
  5696. type: object
  5697. models:
  5698. items:
  5699. type: string
  5700. type: array
  5701. type: object
  5702. type: object
  5703. type: object
  5704. security:
  5705. - ApiKeyAuth: []
  5706. summary: Get channel default models and mapping by type
  5707. tags:
  5708. - model
  5709. /api/models/enabled:
  5710. get:
  5711. description: Returns a list of enabled models
  5712. produces:
  5713. - application/json
  5714. responses:
  5715. "200":
  5716. description: OK
  5717. schema:
  5718. allOf:
  5719. - $ref: '#/definitions/middleware.APIResponse'
  5720. - properties:
  5721. data:
  5722. additionalProperties:
  5723. items:
  5724. $ref: '#/definitions/model.ModelConfig'
  5725. type: array
  5726. type: object
  5727. type: object
  5728. security:
  5729. - ApiKeyAuth: []
  5730. summary: Get enabled models
  5731. tags:
  5732. - model
  5733. /api/models/enabled/{set}:
  5734. get:
  5735. description: Returns a list of enabled models by set
  5736. parameters:
  5737. - description: Models set
  5738. in: path
  5739. name: set
  5740. required: true
  5741. type: string
  5742. produces:
  5743. - application/json
  5744. responses:
  5745. "200":
  5746. description: OK
  5747. schema:
  5748. allOf:
  5749. - $ref: '#/definitions/middleware.APIResponse'
  5750. - properties:
  5751. data:
  5752. items:
  5753. $ref: '#/definitions/model.ModelConfig'
  5754. type: array
  5755. type: object
  5756. security:
  5757. - ApiKeyAuth: []
  5758. summary: Get enabled models by set
  5759. tags:
  5760. - model
  5761. /api/models/sets:
  5762. get:
  5763. description: Returns a list of enabled models and channels sets
  5764. produces:
  5765. - application/json
  5766. responses:
  5767. "200":
  5768. description: OK
  5769. schema:
  5770. allOf:
  5771. - $ref: '#/definitions/middleware.APIResponse'
  5772. - properties:
  5773. data:
  5774. additionalProperties:
  5775. additionalProperties:
  5776. items:
  5777. $ref: '#/definitions/controller.EnabledModelChannel'
  5778. type: array
  5779. type: object
  5780. type: object
  5781. type: object
  5782. security:
  5783. - ApiKeyAuth: []
  5784. summary: Get enabled models and channels sets
  5785. tags:
  5786. - model
  5787. /api/monitor/:
  5788. delete:
  5789. description: Clears all model errors
  5790. produces:
  5791. - application/json
  5792. responses:
  5793. "200":
  5794. description: OK
  5795. schema:
  5796. $ref: '#/definitions/middleware.APIResponse'
  5797. security:
  5798. - ApiKeyAuth: []
  5799. summary: Clear all model errors
  5800. tags:
  5801. - monitor
  5802. get:
  5803. description: Returns a list of all channel model error rates
  5804. produces:
  5805. - application/json
  5806. responses:
  5807. "200":
  5808. description: OK
  5809. schema:
  5810. allOf:
  5811. - $ref: '#/definitions/middleware.APIResponse'
  5812. - properties:
  5813. data:
  5814. additionalProperties:
  5815. additionalProperties:
  5816. format: float64
  5817. type: number
  5818. type: object
  5819. type: object
  5820. type: object
  5821. security:
  5822. - ApiKeyAuth: []
  5823. summary: Get all channel model error rates
  5824. tags:
  5825. - monitor
  5826. /api/monitor/{id}:
  5827. delete:
  5828. description: Clears all model errors for a specific channel
  5829. parameters:
  5830. - description: Channel ID
  5831. in: path
  5832. name: id
  5833. required: true
  5834. type: integer
  5835. produces:
  5836. - application/json
  5837. responses:
  5838. "200":
  5839. description: OK
  5840. schema:
  5841. $ref: '#/definitions/middleware.APIResponse'
  5842. security:
  5843. - ApiKeyAuth: []
  5844. summary: Clear channel all model errors
  5845. tags:
  5846. - monitor
  5847. get:
  5848. description: Returns a list of channel model error rates
  5849. parameters:
  5850. - description: Channel ID
  5851. in: path
  5852. name: id
  5853. required: true
  5854. type: integer
  5855. produces:
  5856. - application/json
  5857. responses:
  5858. "200":
  5859. description: OK
  5860. schema:
  5861. allOf:
  5862. - $ref: '#/definitions/middleware.APIResponse'
  5863. - properties:
  5864. data:
  5865. items:
  5866. additionalProperties:
  5867. format: float64
  5868. type: number
  5869. type: object
  5870. type: array
  5871. type: object
  5872. security:
  5873. - ApiKeyAuth: []
  5874. summary: Get channel model error rates
  5875. tags:
  5876. - monitor
  5877. /api/monitor/{id}/{model}:
  5878. delete:
  5879. description: Clears model errors for a specific channel and model
  5880. parameters:
  5881. - description: Channel ID
  5882. in: path
  5883. name: id
  5884. required: true
  5885. type: integer
  5886. - description: Model name
  5887. in: path
  5888. name: model
  5889. required: true
  5890. type: string
  5891. produces:
  5892. - application/json
  5893. responses:
  5894. "200":
  5895. description: OK
  5896. schema:
  5897. $ref: '#/definitions/middleware.APIResponse'
  5898. security:
  5899. - ApiKeyAuth: []
  5900. summary: Clear channel model errors
  5901. tags:
  5902. - monitor
  5903. /api/monitor/banned_channels:
  5904. get:
  5905. description: Returns a list of all banned model channels
  5906. produces:
  5907. - application/json
  5908. responses:
  5909. "200":
  5910. description: OK
  5911. schema:
  5912. allOf:
  5913. - $ref: '#/definitions/middleware.APIResponse'
  5914. - properties:
  5915. data:
  5916. additionalProperties:
  5917. items:
  5918. format: int64
  5919. type: integer
  5920. type: array
  5921. type: object
  5922. type: object
  5923. security:
  5924. - ApiKeyAuth: []
  5925. summary: Get all banned model channels
  5926. tags:
  5927. - monitor
  5928. /api/monitor/models:
  5929. get:
  5930. description: Returns a list of models error rate
  5931. produces:
  5932. - application/json
  5933. responses:
  5934. "200":
  5935. description: OK
  5936. schema:
  5937. allOf:
  5938. - $ref: '#/definitions/middleware.APIResponse'
  5939. - properties:
  5940. data:
  5941. additionalProperties:
  5942. format: float64
  5943. type: number
  5944. type: object
  5945. type: object
  5946. security:
  5947. - ApiKeyAuth: []
  5948. summary: Get models error rate
  5949. tags:
  5950. - monitor
  5951. /api/option/:
  5952. get:
  5953. description: Returns a list of options
  5954. produces:
  5955. - application/json
  5956. responses:
  5957. "200":
  5958. description: OK
  5959. schema:
  5960. allOf:
  5961. - $ref: '#/definitions/middleware.APIResponse'
  5962. - properties:
  5963. data:
  5964. additionalProperties:
  5965. type: string
  5966. type: object
  5967. type: object
  5968. security:
  5969. - ApiKeyAuth: []
  5970. summary: Get options
  5971. tags:
  5972. - option
  5973. post:
  5974. description: Updates a single option
  5975. parameters:
  5976. - description: Option value
  5977. in: body
  5978. name: value
  5979. required: true
  5980. schema:
  5981. $ref: '#/definitions/model.Option'
  5982. produces:
  5983. - application/json
  5984. responses:
  5985. "200":
  5986. description: OK
  5987. schema:
  5988. $ref: '#/definitions/middleware.APIResponse'
  5989. security:
  5990. - ApiKeyAuth: []
  5991. summary: Update option
  5992. tags:
  5993. - option
  5994. put:
  5995. description: Updates a single option
  5996. parameters:
  5997. - description: Option value
  5998. in: body
  5999. name: value
  6000. required: true
  6001. schema:
  6002. $ref: '#/definitions/model.Option'
  6003. produces:
  6004. - application/json
  6005. responses:
  6006. "200":
  6007. description: OK
  6008. schema:
  6009. $ref: '#/definitions/middleware.APIResponse'
  6010. security:
  6011. - ApiKeyAuth: []
  6012. summary: Update option
  6013. tags:
  6014. - option
  6015. /api/option/{key}:
  6016. get:
  6017. description: Returns a single option
  6018. parameters:
  6019. - description: Option key
  6020. in: path
  6021. name: key
  6022. required: true
  6023. type: string
  6024. produces:
  6025. - application/json
  6026. responses:
  6027. "200":
  6028. description: OK
  6029. schema:
  6030. allOf:
  6031. - $ref: '#/definitions/middleware.APIResponse'
  6032. - properties:
  6033. data:
  6034. $ref: '#/definitions/model.Option'
  6035. type: object
  6036. security:
  6037. - ApiKeyAuth: []
  6038. summary: Get option
  6039. tags:
  6040. - option
  6041. put:
  6042. description: Updates a single option by key
  6043. parameters:
  6044. - description: Option key
  6045. in: path
  6046. name: key
  6047. required: true
  6048. type: string
  6049. - description: Option value
  6050. in: body
  6051. name: value
  6052. required: true
  6053. schema:
  6054. type: string
  6055. produces:
  6056. - application/json
  6057. responses:
  6058. "200":
  6059. description: OK
  6060. schema:
  6061. $ref: '#/definitions/middleware.APIResponse'
  6062. security:
  6063. - ApiKeyAuth: []
  6064. summary: Update option by key
  6065. tags:
  6066. - option
  6067. /api/option/batch:
  6068. post:
  6069. description: Updates multiple options
  6070. parameters:
  6071. - description: Options
  6072. in: body
  6073. name: options
  6074. required: true
  6075. schema:
  6076. additionalProperties:
  6077. type: string
  6078. type: object
  6079. produces:
  6080. - application/json
  6081. responses:
  6082. "200":
  6083. description: OK
  6084. schema:
  6085. $ref: '#/definitions/middleware.APIResponse'
  6086. security:
  6087. - ApiKeyAuth: []
  6088. summary: Update options
  6089. tags:
  6090. - option
  6091. /api/status:
  6092. get:
  6093. description: Returns the status of the server
  6094. produces:
  6095. - application/json
  6096. responses:
  6097. "200":
  6098. description: OK
  6099. schema:
  6100. allOf:
  6101. - $ref: '#/definitions/middleware.APIResponse'
  6102. - properties:
  6103. data:
  6104. $ref: '#/definitions/controller.StatusData'
  6105. type: object
  6106. summary: Get status
  6107. tags:
  6108. - misc
  6109. /api/test-embedmcp/{id}:
  6110. delete:
  6111. consumes:
  6112. - application/json
  6113. description: Test Embed MCP Streamable Server with various HTTP methods
  6114. parameters:
  6115. - description: MCP ID
  6116. in: path
  6117. name: id
  6118. required: true
  6119. type: string
  6120. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6121. in: query
  6122. name: config[key]
  6123. type: string
  6124. - description: Reusing configuration parameters (e.g., reusing[authorization]=apikey)
  6125. in: query
  6126. name: reusing[key]
  6127. type: string
  6128. produces:
  6129. - application/json
  6130. responses:
  6131. "200":
  6132. description: OK
  6133. "400":
  6134. description: Bad Request
  6135. security:
  6136. - ApiKeyAuth: []
  6137. summary: Test Embed MCP Streamable Server
  6138. tags:
  6139. - embedmcp
  6140. get:
  6141. consumes:
  6142. - application/json
  6143. description: Test Embed MCP Streamable Server with various HTTP methods
  6144. parameters:
  6145. - description: MCP ID
  6146. in: path
  6147. name: id
  6148. required: true
  6149. type: string
  6150. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6151. in: query
  6152. name: config[key]
  6153. type: string
  6154. - description: Reusing configuration parameters (e.g., reusing[authorization]=apikey)
  6155. in: query
  6156. name: reusing[key]
  6157. type: string
  6158. produces:
  6159. - application/json
  6160. responses:
  6161. "200":
  6162. description: OK
  6163. "400":
  6164. description: Bad Request
  6165. security:
  6166. - ApiKeyAuth: []
  6167. summary: Test Embed MCP Streamable Server
  6168. tags:
  6169. - embedmcp
  6170. post:
  6171. consumes:
  6172. - application/json
  6173. description: Test Embed MCP Streamable Server with various HTTP methods
  6174. parameters:
  6175. - description: MCP ID
  6176. in: path
  6177. name: id
  6178. required: true
  6179. type: string
  6180. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6181. in: query
  6182. name: config[key]
  6183. type: string
  6184. - description: Reusing configuration parameters (e.g., reusing[authorization]=apikey)
  6185. in: query
  6186. name: reusing[key]
  6187. type: string
  6188. produces:
  6189. - application/json
  6190. responses:
  6191. "200":
  6192. description: OK
  6193. "400":
  6194. description: Bad Request
  6195. security:
  6196. - ApiKeyAuth: []
  6197. summary: Test Embed MCP Streamable Server
  6198. tags:
  6199. - embedmcp
  6200. /api/test-embedmcp/{id}/sse:
  6201. get:
  6202. description: Test Embed MCP SSE Server
  6203. parameters:
  6204. - description: MCP ID
  6205. in: path
  6206. name: id
  6207. required: true
  6208. type: string
  6209. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6210. in: query
  6211. name: config[key]
  6212. type: string
  6213. - description: Reusing configuration parameters (e.g. reusing[authorization]=apikey)
  6214. in: query
  6215. name: reusing[key]
  6216. type: string
  6217. responses:
  6218. "200":
  6219. description: OK
  6220. "400":
  6221. description: Bad Request
  6222. security:
  6223. - ApiKeyAuth: []
  6224. summary: Test Embed MCP SSE Server
  6225. tags:
  6226. - embedmcp
  6227. /api/test-publicmcp/{group}/{id}/sse:
  6228. get:
  6229. parameters:
  6230. - description: Group ID
  6231. in: path
  6232. name: group
  6233. required: true
  6234. type: string
  6235. - description: MCP ID
  6236. in: path
  6237. name: id
  6238. required: true
  6239. type: string
  6240. responses: {}
  6241. security:
  6242. - ApiKeyAuth: []
  6243. summary: Test Public MCP SSE Server
  6244. /api/token/{group}:
  6245. post:
  6246. consumes:
  6247. - application/json
  6248. description: Adds a new token to a specific group
  6249. parameters:
  6250. - description: Group name
  6251. in: path
  6252. name: group
  6253. required: true
  6254. type: string
  6255. - description: Auto create group
  6256. in: query
  6257. name: auto_create_group
  6258. type: boolean
  6259. - description: Ignore exist
  6260. in: query
  6261. name: ignore_exist
  6262. type: boolean
  6263. - description: Token information
  6264. in: body
  6265. name: token
  6266. required: true
  6267. schema:
  6268. $ref: '#/definitions/controller.AddTokenRequest'
  6269. produces:
  6270. - application/json
  6271. responses:
  6272. "200":
  6273. description: OK
  6274. schema:
  6275. allOf:
  6276. - $ref: '#/definitions/middleware.APIResponse'
  6277. - properties:
  6278. data:
  6279. $ref: '#/definitions/controller.TokenResponse'
  6280. type: object
  6281. security:
  6282. - ApiKeyAuth: []
  6283. summary: Add group token
  6284. tags:
  6285. - token
  6286. /api/token/{group}/{id}:
  6287. delete:
  6288. description: Deletes a specific token from a group
  6289. parameters:
  6290. - description: Group name
  6291. in: path
  6292. name: group
  6293. required: true
  6294. type: string
  6295. - description: Token ID
  6296. in: path
  6297. name: id
  6298. required: true
  6299. type: integer
  6300. produces:
  6301. - application/json
  6302. responses:
  6303. "200":
  6304. description: OK
  6305. schema:
  6306. $ref: '#/definitions/middleware.APIResponse'
  6307. security:
  6308. - ApiKeyAuth: []
  6309. summary: Delete group token
  6310. tags:
  6311. - token
  6312. get:
  6313. description: Returns detailed information about a specific token for a specific
  6314. group
  6315. parameters:
  6316. - description: Group name
  6317. in: path
  6318. name: group
  6319. required: true
  6320. type: string
  6321. - description: Token ID
  6322. in: path
  6323. name: id
  6324. required: true
  6325. type: integer
  6326. produces:
  6327. - application/json
  6328. responses:
  6329. "200":
  6330. description: OK
  6331. schema:
  6332. allOf:
  6333. - $ref: '#/definitions/middleware.APIResponse'
  6334. - properties:
  6335. data:
  6336. $ref: '#/definitions/controller.TokenResponse'
  6337. type: object
  6338. security:
  6339. - ApiKeyAuth: []
  6340. summary: Get token by ID for a specific group
  6341. tags:
  6342. - token
  6343. put:
  6344. consumes:
  6345. - application/json
  6346. description: Updates an existing token in a specific group
  6347. parameters:
  6348. - description: Group name
  6349. in: path
  6350. name: group
  6351. required: true
  6352. type: string
  6353. - description: Token ID
  6354. in: path
  6355. name: id
  6356. required: true
  6357. type: integer
  6358. - description: Updated token information
  6359. in: body
  6360. name: token
  6361. required: true
  6362. schema:
  6363. $ref: '#/definitions/model.UpdateTokenRequest'
  6364. produces:
  6365. - application/json
  6366. responses:
  6367. "200":
  6368. description: OK
  6369. schema:
  6370. allOf:
  6371. - $ref: '#/definitions/middleware.APIResponse'
  6372. - properties:
  6373. data:
  6374. $ref: '#/definitions/controller.TokenResponse'
  6375. type: object
  6376. security:
  6377. - ApiKeyAuth: []
  6378. summary: Update group token
  6379. tags:
  6380. - token
  6381. /api/token/{group}/{id}/name:
  6382. post:
  6383. consumes:
  6384. - application/json
  6385. description: Updates the name of a token in a specific group
  6386. parameters:
  6387. - description: Group name
  6388. in: path
  6389. name: group
  6390. required: true
  6391. type: string
  6392. - description: Token ID
  6393. in: path
  6394. name: id
  6395. required: true
  6396. type: integer
  6397. - description: Name information
  6398. in: body
  6399. name: name
  6400. required: true
  6401. schema:
  6402. $ref: '#/definitions/controller.UpdateTokenNameRequest'
  6403. produces:
  6404. - application/json
  6405. responses:
  6406. "200":
  6407. description: OK
  6408. schema:
  6409. $ref: '#/definitions/middleware.APIResponse'
  6410. security:
  6411. - ApiKeyAuth: []
  6412. summary: Update group token name
  6413. tags:
  6414. - token
  6415. /api/token/{group}/{id}/status:
  6416. post:
  6417. consumes:
  6418. - application/json
  6419. description: Updates the status of a token in a specific group
  6420. parameters:
  6421. - description: Group name
  6422. in: path
  6423. name: group
  6424. required: true
  6425. type: string
  6426. - description: Token ID
  6427. in: path
  6428. name: id
  6429. required: true
  6430. type: integer
  6431. - description: Status information
  6432. in: body
  6433. name: status
  6434. required: true
  6435. schema:
  6436. $ref: '#/definitions/controller.UpdateTokenStatusRequest'
  6437. produces:
  6438. - application/json
  6439. responses:
  6440. "200":
  6441. description: OK
  6442. schema:
  6443. $ref: '#/definitions/middleware.APIResponse'
  6444. security:
  6445. - ApiKeyAuth: []
  6446. summary: Update group token status
  6447. tags:
  6448. - token
  6449. /api/token/{group}/batch_delete:
  6450. post:
  6451. description: Deletes multiple tokens from a specific group
  6452. parameters:
  6453. - description: Group name
  6454. in: path
  6455. name: group
  6456. required: true
  6457. type: string
  6458. - description: Token IDs
  6459. in: body
  6460. name: ids
  6461. required: true
  6462. schema:
  6463. items:
  6464. type: integer
  6465. type: array
  6466. produces:
  6467. - application/json
  6468. responses:
  6469. "200":
  6470. description: OK
  6471. schema:
  6472. $ref: '#/definitions/middleware.APIResponse'
  6473. security:
  6474. - ApiKeyAuth: []
  6475. summary: Delete group tokens
  6476. tags:
  6477. - token
  6478. /api/token/{group}/search:
  6479. get:
  6480. description: Returns a paginated list of tokens for a specific group based on
  6481. search criteria
  6482. parameters:
  6483. - description: Group name
  6484. in: path
  6485. name: group
  6486. required: true
  6487. type: string
  6488. - description: Keyword
  6489. in: query
  6490. name: keyword
  6491. type: string
  6492. - description: Page number
  6493. in: query
  6494. name: page
  6495. type: integer
  6496. - description: Items per page
  6497. in: query
  6498. name: per_page
  6499. type: integer
  6500. - description: Order
  6501. in: query
  6502. name: order
  6503. type: string
  6504. - description: Name
  6505. in: query
  6506. name: name
  6507. type: string
  6508. - description: Key
  6509. in: query
  6510. name: key
  6511. type: string
  6512. - description: Status
  6513. in: query
  6514. name: status
  6515. type: integer
  6516. produces:
  6517. - application/json
  6518. responses:
  6519. "200":
  6520. description: OK
  6521. schema:
  6522. allOf:
  6523. - $ref: '#/definitions/middleware.APIResponse'
  6524. - properties:
  6525. data:
  6526. additionalProperties:
  6527. allOf:
  6528. - {}
  6529. - properties:
  6530. tokens:
  6531. items:
  6532. $ref: '#/definitions/controller.TokenResponse'
  6533. type: array
  6534. total:
  6535. type: integer
  6536. type: object
  6537. type: object
  6538. type: object
  6539. security:
  6540. - ApiKeyAuth: []
  6541. summary: Search tokens for a specific group
  6542. tags:
  6543. - token
  6544. /api/tokens/:
  6545. get:
  6546. description: Returns a paginated list of all tokens
  6547. parameters:
  6548. - description: Page number
  6549. in: query
  6550. name: page
  6551. type: integer
  6552. - description: Items per page
  6553. in: query
  6554. name: per_page
  6555. type: integer
  6556. - description: Group name
  6557. in: query
  6558. name: group
  6559. type: string
  6560. - description: Order
  6561. in: query
  6562. name: order
  6563. type: string
  6564. - description: Status
  6565. in: query
  6566. name: status
  6567. type: integer
  6568. produces:
  6569. - application/json
  6570. responses:
  6571. "200":
  6572. description: OK
  6573. schema:
  6574. allOf:
  6575. - $ref: '#/definitions/middleware.APIResponse'
  6576. - properties:
  6577. data:
  6578. additionalProperties:
  6579. allOf:
  6580. - {}
  6581. - properties:
  6582. tokens:
  6583. items:
  6584. $ref: '#/definitions/controller.TokenResponse'
  6585. type: array
  6586. total:
  6587. type: integer
  6588. type: object
  6589. type: object
  6590. type: object
  6591. security:
  6592. - ApiKeyAuth: []
  6593. summary: Get all tokens
  6594. tags:
  6595. - tokens
  6596. /api/tokens/{group}:
  6597. get:
  6598. description: Returns a paginated list of all tokens for a specific group
  6599. parameters:
  6600. - description: Group name
  6601. in: path
  6602. name: group
  6603. required: true
  6604. type: string
  6605. - description: Page number
  6606. in: query
  6607. name: page
  6608. type: integer
  6609. - description: Items per page
  6610. in: query
  6611. name: per_page
  6612. type: integer
  6613. - description: Order
  6614. in: query
  6615. name: order
  6616. type: string
  6617. - description: Status
  6618. in: query
  6619. name: status
  6620. type: integer
  6621. produces:
  6622. - application/json
  6623. responses:
  6624. "200":
  6625. description: OK
  6626. schema:
  6627. allOf:
  6628. - $ref: '#/definitions/middleware.APIResponse'
  6629. - properties:
  6630. data:
  6631. additionalProperties:
  6632. allOf:
  6633. - {}
  6634. - properties:
  6635. tokens:
  6636. items:
  6637. $ref: '#/definitions/controller.TokenResponse'
  6638. type: array
  6639. total:
  6640. type: integer
  6641. type: object
  6642. type: object
  6643. type: object
  6644. security:
  6645. - ApiKeyAuth: []
  6646. summary: Get all tokens for a specific group
  6647. tags:
  6648. - tokens
  6649. /api/tokens/{id}:
  6650. delete:
  6651. description: Deletes a specific token by ID
  6652. parameters:
  6653. - description: Token ID
  6654. in: path
  6655. name: id
  6656. required: true
  6657. type: integer
  6658. produces:
  6659. - application/json
  6660. responses:
  6661. "200":
  6662. description: OK
  6663. schema:
  6664. $ref: '#/definitions/middleware.APIResponse'
  6665. security:
  6666. - ApiKeyAuth: []
  6667. summary: Delete token
  6668. tags:
  6669. - tokens
  6670. get:
  6671. description: Returns detailed information about a specific token
  6672. parameters:
  6673. - description: Token ID
  6674. in: path
  6675. name: id
  6676. required: true
  6677. type: integer
  6678. produces:
  6679. - application/json
  6680. responses:
  6681. "200":
  6682. description: OK
  6683. schema:
  6684. allOf:
  6685. - $ref: '#/definitions/middleware.APIResponse'
  6686. - properties:
  6687. data:
  6688. $ref: '#/definitions/controller.TokenResponse'
  6689. type: object
  6690. security:
  6691. - ApiKeyAuth: []
  6692. summary: Get token by ID
  6693. tags:
  6694. - tokens
  6695. put:
  6696. consumes:
  6697. - application/json
  6698. description: Updates an existing token's information
  6699. parameters:
  6700. - description: Token ID
  6701. in: path
  6702. name: id
  6703. required: true
  6704. type: integer
  6705. - description: Updated token information
  6706. in: body
  6707. name: token
  6708. required: true
  6709. schema:
  6710. $ref: '#/definitions/model.UpdateTokenRequest'
  6711. produces:
  6712. - application/json
  6713. responses:
  6714. "200":
  6715. description: OK
  6716. schema:
  6717. allOf:
  6718. - $ref: '#/definitions/middleware.APIResponse'
  6719. - properties:
  6720. data:
  6721. $ref: '#/definitions/controller.TokenResponse'
  6722. type: object
  6723. security:
  6724. - ApiKeyAuth: []
  6725. summary: Update token
  6726. tags:
  6727. - tokens
  6728. /api/tokens/{id}/name:
  6729. post:
  6730. consumes:
  6731. - application/json
  6732. description: Updates the name of a specific token
  6733. parameters:
  6734. - description: Token ID
  6735. in: path
  6736. name: id
  6737. required: true
  6738. type: integer
  6739. - description: Name information
  6740. in: body
  6741. name: name
  6742. required: true
  6743. schema:
  6744. $ref: '#/definitions/controller.UpdateTokenNameRequest'
  6745. produces:
  6746. - application/json
  6747. responses:
  6748. "200":
  6749. description: OK
  6750. schema:
  6751. $ref: '#/definitions/middleware.APIResponse'
  6752. security:
  6753. - ApiKeyAuth: []
  6754. summary: Update token name
  6755. tags:
  6756. - tokens
  6757. /api/tokens/{id}/status:
  6758. post:
  6759. consumes:
  6760. - application/json
  6761. description: Updates the status of a specific token
  6762. parameters:
  6763. - description: Token ID
  6764. in: path
  6765. name: id
  6766. required: true
  6767. type: integer
  6768. - description: Status information
  6769. in: body
  6770. name: status
  6771. required: true
  6772. schema:
  6773. $ref: '#/definitions/controller.UpdateTokenStatusRequest'
  6774. produces:
  6775. - application/json
  6776. responses:
  6777. "200":
  6778. description: OK
  6779. schema:
  6780. $ref: '#/definitions/middleware.APIResponse'
  6781. security:
  6782. - ApiKeyAuth: []
  6783. summary: Update token status
  6784. tags:
  6785. - tokens
  6786. /api/tokens/batch_delete:
  6787. post:
  6788. consumes:
  6789. - application/json
  6790. description: Deletes multiple tokens by their IDs
  6791. parameters:
  6792. - description: Token IDs
  6793. in: body
  6794. name: ids
  6795. required: true
  6796. schema:
  6797. items:
  6798. type: integer
  6799. type: array
  6800. produces:
  6801. - application/json
  6802. responses:
  6803. "200":
  6804. description: OK
  6805. schema:
  6806. $ref: '#/definitions/middleware.APIResponse'
  6807. security:
  6808. - ApiKeyAuth: []
  6809. summary: Delete multiple tokens
  6810. tags:
  6811. - tokens
  6812. /api/tokens/search:
  6813. get:
  6814. description: Returns a paginated list of tokens based on search criteria
  6815. parameters:
  6816. - description: Keyword
  6817. in: query
  6818. name: keyword
  6819. type: string
  6820. - description: Page number
  6821. in: query
  6822. name: page
  6823. type: integer
  6824. - description: Items per page
  6825. in: query
  6826. name: per_page
  6827. type: integer
  6828. - description: Order
  6829. in: query
  6830. name: order
  6831. type: string
  6832. - description: Name
  6833. in: query
  6834. name: name
  6835. type: string
  6836. - description: Key
  6837. in: query
  6838. name: key
  6839. type: string
  6840. - description: Status
  6841. in: query
  6842. name: status
  6843. type: integer
  6844. - description: Group
  6845. in: query
  6846. name: group
  6847. type: string
  6848. produces:
  6849. - application/json
  6850. responses:
  6851. "200":
  6852. description: OK
  6853. schema:
  6854. allOf:
  6855. - $ref: '#/definitions/middleware.APIResponse'
  6856. - properties:
  6857. data:
  6858. additionalProperties:
  6859. allOf:
  6860. - {}
  6861. - properties:
  6862. tokens:
  6863. items:
  6864. $ref: '#/definitions/controller.TokenResponse'
  6865. type: array
  6866. total:
  6867. type: integer
  6868. type: object
  6869. type: object
  6870. type: object
  6871. security:
  6872. - ApiKeyAuth: []
  6873. summary: Search tokens
  6874. tags:
  6875. - tokens
  6876. /mcp:
  6877. delete:
  6878. responses: {}
  6879. security:
  6880. - ApiKeyAuth: []
  6881. summary: Host MCP Streamable Server
  6882. get:
  6883. responses: {}
  6884. security:
  6885. - ApiKeyAuth: []
  6886. summary: Host MCP Streamable Server
  6887. post:
  6888. responses: {}
  6889. security:
  6890. - ApiKeyAuth: []
  6891. summary: Host MCP Streamable Server
  6892. /mcp/group/{id}:
  6893. delete:
  6894. responses: {}
  6895. security:
  6896. - ApiKeyAuth: []
  6897. summary: Group MCP Streamable Server
  6898. get:
  6899. responses: {}
  6900. security:
  6901. - ApiKeyAuth: []
  6902. summary: Group MCP Streamable Server
  6903. post:
  6904. responses: {}
  6905. security:
  6906. - ApiKeyAuth: []
  6907. summary: Group MCP Streamable Server
  6908. /mcp/group/{id}/sse:
  6909. get:
  6910. responses: {}
  6911. security:
  6912. - ApiKeyAuth: []
  6913. summary: Group MCP SSE Server
  6914. /mcp/public/{id}:
  6915. delete:
  6916. responses: {}
  6917. security:
  6918. - ApiKeyAuth: []
  6919. summary: Public MCP Streamable Server
  6920. get:
  6921. responses: {}
  6922. security:
  6923. - ApiKeyAuth: []
  6924. summary: Public MCP Streamable Server
  6925. post:
  6926. responses: {}
  6927. security:
  6928. - ApiKeyAuth: []
  6929. summary: Public MCP Streamable Server
  6930. /mcp/public/{id}/sse:
  6931. get:
  6932. responses: {}
  6933. security:
  6934. - ApiKeyAuth: []
  6935. summary: Public MCP SSE Server
  6936. /message:
  6937. post:
  6938. responses: {}
  6939. summary: MCP SSE Message
  6940. /sse:
  6941. get:
  6942. responses: {}
  6943. security:
  6944. - ApiKeyAuth: []
  6945. summary: Public MCP SSE Server
  6946. /v1/audio/speech:
  6947. post:
  6948. description: AudioSpeech
  6949. parameters:
  6950. - description: Request
  6951. in: body
  6952. name: request
  6953. required: true
  6954. schema:
  6955. $ref: '#/definitions/model.TextToSpeechRequest'
  6956. - description: Optional Aiproxy-Channel header
  6957. in: header
  6958. name: Aiproxy-Channel
  6959. type: string
  6960. produces:
  6961. - application/json
  6962. responses:
  6963. "200":
  6964. description: audio binary
  6965. headers:
  6966. X-RateLimit-Limit-Requests:
  6967. description: X-RateLimit-Limit-Requests
  6968. type: integer
  6969. X-RateLimit-Limit-Tokens:
  6970. description: X-RateLimit-Limit-Tokens
  6971. type: integer
  6972. X-RateLimit-Remaining-Requests:
  6973. description: X-RateLimit-Remaining-Requests
  6974. type: integer
  6975. X-RateLimit-Remaining-Tokens:
  6976. description: X-RateLimit-Remaining-Tokens
  6977. type: integer
  6978. X-RateLimit-Reset-Requests:
  6979. description: X-RateLimit-Reset-Requests
  6980. type: string
  6981. X-RateLimit-Reset-Tokens:
  6982. description: X-RateLimit-Reset-Tokens
  6983. type: string
  6984. schema:
  6985. type: file
  6986. security:
  6987. - ApiKeyAuth: []
  6988. summary: AudioSpeech
  6989. tags:
  6990. - relay
  6991. /v1/audio/transcriptions:
  6992. post:
  6993. description: AudioTranscription
  6994. parameters:
  6995. - description: Model
  6996. in: formData
  6997. name: model
  6998. required: true
  6999. type: string
  7000. - description: File
  7001. in: formData
  7002. name: file
  7003. required: true
  7004. type: file
  7005. - description: Optional Aiproxy-Channel header
  7006. in: header
  7007. name: Aiproxy-Channel
  7008. type: string
  7009. produces:
  7010. - application/json
  7011. responses:
  7012. "200":
  7013. description: OK
  7014. headers:
  7015. X-RateLimit-Limit-Requests:
  7016. description: X-RateLimit-Limit-Requests
  7017. type: integer
  7018. X-RateLimit-Limit-Tokens:
  7019. description: X-RateLimit-Limit-Tokens
  7020. type: integer
  7021. X-RateLimit-Remaining-Requests:
  7022. description: X-RateLimit-Remaining-Requests
  7023. type: integer
  7024. X-RateLimit-Remaining-Tokens:
  7025. description: X-RateLimit-Remaining-Tokens
  7026. type: integer
  7027. X-RateLimit-Reset-Requests:
  7028. description: X-RateLimit-Reset-Requests
  7029. type: string
  7030. X-RateLimit-Reset-Tokens:
  7031. description: X-RateLimit-Reset-Tokens
  7032. type: string
  7033. schema:
  7034. $ref: '#/definitions/model.SttJSONResponse'
  7035. security:
  7036. - ApiKeyAuth: []
  7037. summary: AudioTranscription
  7038. tags:
  7039. - relay
  7040. /v1/audio/translations:
  7041. post:
  7042. description: AudioTranslation
  7043. parameters:
  7044. - description: Model
  7045. in: formData
  7046. name: model
  7047. required: true
  7048. type: string
  7049. - description: File
  7050. in: formData
  7051. name: file
  7052. required: true
  7053. type: file
  7054. - description: Optional Aiproxy-Channel header
  7055. in: header
  7056. name: Aiproxy-Channel
  7057. type: string
  7058. produces:
  7059. - application/json
  7060. responses:
  7061. "200":
  7062. description: OK
  7063. headers:
  7064. X-RateLimit-Limit-Requests:
  7065. description: X-RateLimit-Limit-Requests
  7066. type: integer
  7067. X-RateLimit-Limit-Tokens:
  7068. description: X-RateLimit-Limit-Tokens
  7069. type: integer
  7070. X-RateLimit-Remaining-Requests:
  7071. description: X-RateLimit-Remaining-Requests
  7072. type: integer
  7073. X-RateLimit-Remaining-Tokens:
  7074. description: X-RateLimit-Remaining-Tokens
  7075. type: integer
  7076. X-RateLimit-Reset-Requests:
  7077. description: X-RateLimit-Reset-Requests
  7078. type: string
  7079. X-RateLimit-Reset-Tokens:
  7080. description: X-RateLimit-Reset-Tokens
  7081. type: string
  7082. schema:
  7083. $ref: '#/definitions/model.SttJSONResponse'
  7084. security:
  7085. - ApiKeyAuth: []
  7086. summary: AudioTranslation
  7087. tags:
  7088. - relay
  7089. /v1/chat/completions:
  7090. post:
  7091. description: ChatCompletions
  7092. parameters:
  7093. - description: Request
  7094. in: body
  7095. name: request
  7096. required: true
  7097. schema:
  7098. $ref: '#/definitions/model.GeneralOpenAIRequest'
  7099. - description: Optional Aiproxy-Channel header
  7100. in: header
  7101. name: Aiproxy-Channel
  7102. type: string
  7103. produces:
  7104. - application/json
  7105. responses:
  7106. "200":
  7107. description: OK
  7108. headers:
  7109. X-RateLimit-Limit-Requests:
  7110. description: X-RateLimit-Limit-Requests
  7111. type: integer
  7112. X-RateLimit-Limit-Tokens:
  7113. description: X-RateLimit-Limit-Tokens
  7114. type: integer
  7115. X-RateLimit-Remaining-Requests:
  7116. description: X-RateLimit-Remaining-Requests
  7117. type: integer
  7118. X-RateLimit-Remaining-Tokens:
  7119. description: X-RateLimit-Remaining-Tokens
  7120. type: integer
  7121. X-RateLimit-Reset-Requests:
  7122. description: X-RateLimit-Reset-Requests
  7123. type: string
  7124. X-RateLimit-Reset-Tokens:
  7125. description: X-RateLimit-Reset-Tokens
  7126. type: string
  7127. schema:
  7128. $ref: '#/definitions/model.TextResponse'
  7129. security:
  7130. - ApiKeyAuth: []
  7131. summary: ChatCompletions
  7132. tags:
  7133. - relay
  7134. /v1/completions:
  7135. post:
  7136. description: Completions
  7137. parameters:
  7138. - description: Request
  7139. in: body
  7140. name: request
  7141. required: true
  7142. schema:
  7143. $ref: '#/definitions/model.GeneralOpenAIRequest'
  7144. - description: Optional Aiproxy-Channel header
  7145. in: header
  7146. name: Aiproxy-Channel
  7147. type: string
  7148. produces:
  7149. - application/json
  7150. responses:
  7151. "200":
  7152. description: OK
  7153. headers:
  7154. X-RateLimit-Limit-Requests:
  7155. description: X-RateLimit-Limit-Requests
  7156. type: integer
  7157. X-RateLimit-Limit-Tokens:
  7158. description: X-RateLimit-Limit-Tokens
  7159. type: integer
  7160. X-RateLimit-Remaining-Requests:
  7161. description: X-RateLimit-Remaining-Requests
  7162. type: integer
  7163. X-RateLimit-Remaining-Tokens:
  7164. description: X-RateLimit-Remaining-Tokens
  7165. type: integer
  7166. X-RateLimit-Reset-Requests:
  7167. description: X-RateLimit-Reset-Requests
  7168. type: string
  7169. X-RateLimit-Reset-Tokens:
  7170. description: X-RateLimit-Reset-Tokens
  7171. type: string
  7172. schema:
  7173. $ref: '#/definitions/model.TextResponse'
  7174. security:
  7175. - ApiKeyAuth: []
  7176. summary: Completions
  7177. tags:
  7178. - relay
  7179. /v1/dashboard/billing/subscription:
  7180. get:
  7181. description: Get subscription
  7182. produces:
  7183. - application/json
  7184. responses:
  7185. "200":
  7186. description: OK
  7187. schema:
  7188. $ref: '#/definitions/openai.SubscriptionResponse'
  7189. security:
  7190. - ApiKeyAuth: []
  7191. summary: Get subscription
  7192. tags:
  7193. - relay
  7194. /v1/dashboard/billing/usage:
  7195. get:
  7196. description: Get usage
  7197. produces:
  7198. - application/json
  7199. responses:
  7200. "200":
  7201. description: OK
  7202. schema:
  7203. $ref: '#/definitions/openai.UsageResponse'
  7204. security:
  7205. - ApiKeyAuth: []
  7206. summary: Get usage
  7207. tags:
  7208. - relay
  7209. /v1/embeddings:
  7210. post:
  7211. description: Embeddings
  7212. parameters:
  7213. - description: Request
  7214. in: body
  7215. name: request
  7216. required: true
  7217. schema:
  7218. $ref: '#/definitions/model.EmbeddingRequest'
  7219. - description: Optional Aiproxy-Channel header
  7220. in: header
  7221. name: Aiproxy-Channel
  7222. type: string
  7223. produces:
  7224. - application/json
  7225. responses:
  7226. "200":
  7227. description: OK
  7228. headers:
  7229. X-RateLimit-Limit-Requests:
  7230. description: X-RateLimit-Limit-Requests
  7231. type: integer
  7232. X-RateLimit-Limit-Tokens:
  7233. description: X-RateLimit-Limit-Tokens
  7234. type: integer
  7235. X-RateLimit-Remaining-Requests:
  7236. description: X-RateLimit-Remaining-Requests
  7237. type: integer
  7238. X-RateLimit-Remaining-Tokens:
  7239. description: X-RateLimit-Remaining-Tokens
  7240. type: integer
  7241. X-RateLimit-Reset-Requests:
  7242. description: X-RateLimit-Reset-Requests
  7243. type: string
  7244. X-RateLimit-Reset-Tokens:
  7245. description: X-RateLimit-Reset-Tokens
  7246. type: string
  7247. schema:
  7248. $ref: '#/definitions/model.EmbeddingResponse'
  7249. security:
  7250. - ApiKeyAuth: []
  7251. summary: Embeddings
  7252. tags:
  7253. - relay
  7254. /v1/images/edits:
  7255. post:
  7256. description: ImagesEdits
  7257. parameters:
  7258. - description: Prompt
  7259. in: formData
  7260. name: prompt
  7261. required: true
  7262. type: string
  7263. - description: Model
  7264. in: formData
  7265. name: model
  7266. required: true
  7267. type: string
  7268. - description: Images
  7269. in: formData
  7270. name: image
  7271. required: true
  7272. type: file
  7273. - description: Optional Aiproxy-Channel header
  7274. in: header
  7275. name: Aiproxy-Channel
  7276. type: string
  7277. produces:
  7278. - application/json
  7279. responses:
  7280. "200":
  7281. description: OK
  7282. headers:
  7283. X-RateLimit-Limit-Requests:
  7284. description: X-RateLimit-Limit-Requests
  7285. type: integer
  7286. X-RateLimit-Limit-Tokens:
  7287. description: X-RateLimit-Limit-Tokens
  7288. type: integer
  7289. X-RateLimit-Remaining-Requests:
  7290. description: X-RateLimit-Remaining-Requests
  7291. type: integer
  7292. X-RateLimit-Remaining-Tokens:
  7293. description: X-RateLimit-Remaining-Tokens
  7294. type: integer
  7295. X-RateLimit-Reset-Requests:
  7296. description: X-RateLimit-Reset-Requests
  7297. type: string
  7298. X-RateLimit-Reset-Tokens:
  7299. description: X-RateLimit-Reset-Tokens
  7300. type: string
  7301. schema:
  7302. $ref: '#/definitions/model.SttJSONResponse'
  7303. security:
  7304. - ApiKeyAuth: []
  7305. summary: ImagesEdits
  7306. tags:
  7307. - relay
  7308. /v1/images/generations:
  7309. post:
  7310. description: ImagesGenerations
  7311. parameters:
  7312. - description: Request
  7313. in: body
  7314. name: request
  7315. required: true
  7316. schema:
  7317. $ref: '#/definitions/model.ImageRequest'
  7318. - description: Optional Aiproxy-Channel header
  7319. in: header
  7320. name: Aiproxy-Channel
  7321. type: string
  7322. produces:
  7323. - application/json
  7324. responses:
  7325. "200":
  7326. description: OK
  7327. headers:
  7328. X-RateLimit-Limit-Requests:
  7329. description: X-RateLimit-Limit-Requests
  7330. type: integer
  7331. X-RateLimit-Limit-Tokens:
  7332. description: X-RateLimit-Limit-Tokens
  7333. type: integer
  7334. X-RateLimit-Remaining-Requests:
  7335. description: X-RateLimit-Remaining-Requests
  7336. type: integer
  7337. X-RateLimit-Remaining-Tokens:
  7338. description: X-RateLimit-Remaining-Tokens
  7339. type: integer
  7340. X-RateLimit-Reset-Requests:
  7341. description: X-RateLimit-Reset-Requests
  7342. type: string
  7343. X-RateLimit-Reset-Tokens:
  7344. description: X-RateLimit-Reset-Tokens
  7345. type: string
  7346. schema:
  7347. $ref: '#/definitions/model.ImageResponse'
  7348. security:
  7349. - ApiKeyAuth: []
  7350. summary: ImagesGenerations
  7351. tags:
  7352. - relay
  7353. /v1/messages:
  7354. post:
  7355. description: Anthropic
  7356. parameters:
  7357. - description: Request
  7358. in: body
  7359. name: request
  7360. required: true
  7361. schema:
  7362. $ref: '#/definitions/model.AnthropicMessageRequest'
  7363. - description: Optional Aiproxy-Channel header
  7364. in: header
  7365. name: Aiproxy-Channel
  7366. type: string
  7367. produces:
  7368. - application/json
  7369. responses:
  7370. "200":
  7371. description: OK
  7372. headers:
  7373. X-RateLimit-Limit-Requests:
  7374. description: X-RateLimit-Limit-Requests
  7375. type: integer
  7376. X-RateLimit-Limit-Tokens:
  7377. description: X-RateLimit-Limit-Tokens
  7378. type: integer
  7379. X-RateLimit-Remaining-Requests:
  7380. description: X-RateLimit-Remaining-Requests
  7381. type: integer
  7382. X-RateLimit-Remaining-Tokens:
  7383. description: X-RateLimit-Remaining-Tokens
  7384. type: integer
  7385. X-RateLimit-Reset-Requests:
  7386. description: X-RateLimit-Reset-Requests
  7387. type: string
  7388. X-RateLimit-Reset-Tokens:
  7389. description: X-RateLimit-Reset-Tokens
  7390. type: string
  7391. schema:
  7392. $ref: '#/definitions/model.TextResponse'
  7393. security:
  7394. - ApiKeyAuth: []
  7395. summary: Anthropic
  7396. tags:
  7397. - relay
  7398. /v1/models:
  7399. get:
  7400. description: List all models
  7401. produces:
  7402. - application/json
  7403. responses:
  7404. "200":
  7405. description: OK
  7406. schema:
  7407. properties:
  7408. data:
  7409. items:
  7410. $ref: '#/definitions/controller.OpenAIModels'
  7411. type: array
  7412. object:
  7413. type: string
  7414. type: object
  7415. security:
  7416. - ApiKeyAuth: []
  7417. summary: List models
  7418. tags:
  7419. - relay
  7420. /v1/models/{model}:
  7421. get:
  7422. description: Retrieve a model
  7423. produces:
  7424. - application/json
  7425. responses:
  7426. "200":
  7427. description: OK
  7428. schema:
  7429. $ref: '#/definitions/controller.OpenAIModels'
  7430. security:
  7431. - ApiKeyAuth: []
  7432. summary: Retrieve model
  7433. tags:
  7434. - relay
  7435. /v1/parse/pdf:
  7436. post:
  7437. description: ParsePdf
  7438. parameters:
  7439. - description: Model
  7440. in: formData
  7441. name: model
  7442. required: true
  7443. type: string
  7444. - description: File
  7445. in: formData
  7446. name: file
  7447. required: true
  7448. type: file
  7449. - description: Optional Aiproxy-Channel header
  7450. in: header
  7451. name: Aiproxy-Channel
  7452. type: string
  7453. produces:
  7454. - application/json
  7455. responses:
  7456. "200":
  7457. description: OK
  7458. headers:
  7459. X-RateLimit-Limit-Requests:
  7460. description: X-RateLimit-Limit-Requests
  7461. type: integer
  7462. X-RateLimit-Limit-Tokens:
  7463. description: X-RateLimit-Limit-Tokens
  7464. type: integer
  7465. X-RateLimit-Remaining-Requests:
  7466. description: X-RateLimit-Remaining-Requests
  7467. type: integer
  7468. X-RateLimit-Remaining-Tokens:
  7469. description: X-RateLimit-Remaining-Tokens
  7470. type: integer
  7471. X-RateLimit-Reset-Requests:
  7472. description: X-RateLimit-Reset-Requests
  7473. type: string
  7474. X-RateLimit-Reset-Tokens:
  7475. description: X-RateLimit-Reset-Tokens
  7476. type: string
  7477. schema:
  7478. $ref: '#/definitions/model.ParsePdfResponse'
  7479. security:
  7480. - ApiKeyAuth: []
  7481. summary: ParsePdf
  7482. tags:
  7483. - relay
  7484. /v1/rerank:
  7485. post:
  7486. description: Rerank
  7487. parameters:
  7488. - description: Request
  7489. in: body
  7490. name: request
  7491. required: true
  7492. schema:
  7493. $ref: '#/definitions/model.RerankRequest'
  7494. - description: Optional Aiproxy-Channel header
  7495. in: header
  7496. name: Aiproxy-Channel
  7497. type: string
  7498. produces:
  7499. - application/json
  7500. responses:
  7501. "200":
  7502. description: OK
  7503. headers:
  7504. X-RateLimit-Limit-Requests:
  7505. description: X-RateLimit-Limit-Requests
  7506. type: integer
  7507. X-RateLimit-Limit-Tokens:
  7508. description: X-RateLimit-Limit-Tokens
  7509. type: integer
  7510. X-RateLimit-Remaining-Requests:
  7511. description: X-RateLimit-Remaining-Requests
  7512. type: integer
  7513. X-RateLimit-Remaining-Tokens:
  7514. description: X-RateLimit-Remaining-Tokens
  7515. type: integer
  7516. X-RateLimit-Reset-Requests:
  7517. description: X-RateLimit-Reset-Requests
  7518. type: string
  7519. X-RateLimit-Reset-Tokens:
  7520. description: X-RateLimit-Reset-Tokens
  7521. type: string
  7522. schema:
  7523. $ref: '#/definitions/model.RerankResponse'
  7524. security:
  7525. - ApiKeyAuth: []
  7526. summary: Rerank
  7527. tags:
  7528. - relay
  7529. /v1/responses:
  7530. post:
  7531. description: Create a new response
  7532. parameters:
  7533. - description: Request
  7534. in: body
  7535. name: request
  7536. required: true
  7537. schema:
  7538. $ref: '#/definitions/model.CreateResponseRequest'
  7539. - description: Optional Aiproxy-Channel header
  7540. in: header
  7541. name: Aiproxy-Channel
  7542. type: string
  7543. produces:
  7544. - application/json
  7545. responses:
  7546. "200":
  7547. description: OK
  7548. headers:
  7549. X-RateLimit-Limit-Requests:
  7550. description: X-RateLimit-Limit-Requests
  7551. type: integer
  7552. X-RateLimit-Limit-Tokens:
  7553. description: X-RateLimit-Limit-Tokens
  7554. type: integer
  7555. X-RateLimit-Remaining-Requests:
  7556. description: X-RateLimit-Remaining-Requests
  7557. type: integer
  7558. X-RateLimit-Remaining-Tokens:
  7559. description: X-RateLimit-Remaining-Tokens
  7560. type: integer
  7561. X-RateLimit-Reset-Requests:
  7562. description: X-RateLimit-Reset-Requests
  7563. type: string
  7564. X-RateLimit-Reset-Tokens:
  7565. description: X-RateLimit-Reset-Tokens
  7566. type: string
  7567. schema:
  7568. $ref: '#/definitions/model.Response'
  7569. security:
  7570. - ApiKeyAuth: []
  7571. summary: Create response
  7572. tags:
  7573. - relay
  7574. /v1/responses/{response_id}:
  7575. delete:
  7576. description: Delete a response by ID
  7577. parameters:
  7578. - description: Response ID
  7579. in: path
  7580. name: response_id
  7581. required: true
  7582. type: string
  7583. - description: Optional Aiproxy-Channel header
  7584. in: header
  7585. name: Aiproxy-Channel
  7586. type: string
  7587. produces:
  7588. - application/json
  7589. responses:
  7590. "204":
  7591. description: No Content
  7592. security:
  7593. - ApiKeyAuth: []
  7594. summary: Delete response
  7595. tags:
  7596. - relay
  7597. get:
  7598. description: Get a response by ID
  7599. parameters:
  7600. - description: Response ID
  7601. in: path
  7602. name: response_id
  7603. required: true
  7604. type: string
  7605. - description: Optional Aiproxy-Channel header
  7606. in: header
  7607. name: Aiproxy-Channel
  7608. type: string
  7609. produces:
  7610. - application/json
  7611. responses:
  7612. "200":
  7613. description: OK
  7614. schema:
  7615. $ref: '#/definitions/model.Response'
  7616. security:
  7617. - ApiKeyAuth: []
  7618. summary: Get response
  7619. tags:
  7620. - relay
  7621. /v1/responses/{response_id}/cancel:
  7622. post:
  7623. description: Cancel a response by ID
  7624. parameters:
  7625. - description: Response ID
  7626. in: path
  7627. name: response_id
  7628. required: true
  7629. type: string
  7630. - description: Optional Aiproxy-Channel header
  7631. in: header
  7632. name: Aiproxy-Channel
  7633. type: string
  7634. produces:
  7635. - application/json
  7636. responses:
  7637. "200":
  7638. description: OK
  7639. schema:
  7640. $ref: '#/definitions/model.Response'
  7641. security:
  7642. - ApiKeyAuth: []
  7643. summary: Cancel response
  7644. tags:
  7645. - relay
  7646. /v1/responses/{response_id}/input_items:
  7647. get:
  7648. description: Get input items for a response
  7649. parameters:
  7650. - description: Response ID
  7651. in: path
  7652. name: response_id
  7653. required: true
  7654. type: string
  7655. - description: Optional Aiproxy-Channel header
  7656. in: header
  7657. name: Aiproxy-Channel
  7658. type: string
  7659. produces:
  7660. - application/json
  7661. responses:
  7662. "200":
  7663. description: OK
  7664. schema:
  7665. $ref: '#/definitions/model.InputItemList'
  7666. security:
  7667. - ApiKeyAuth: []
  7668. summary: Get response input items
  7669. tags:
  7670. - relay
  7671. /v1/video/generations/{id}/content/video:
  7672. get:
  7673. description: VideoGenerationsContent
  7674. parameters:
  7675. - description: Request
  7676. in: body
  7677. name: request
  7678. required: true
  7679. schema:
  7680. $ref: '#/definitions/model.VideoGenerationJobRequest'
  7681. - description: Optional Aiproxy-Channel header
  7682. in: header
  7683. name: Aiproxy-Channel
  7684. type: string
  7685. produces:
  7686. - application/json
  7687. responses:
  7688. "200":
  7689. description: video binary
  7690. headers:
  7691. X-RateLimit-Limit-Requests:
  7692. description: X-RateLimit-Limit-Requests
  7693. type: integer
  7694. X-RateLimit-Limit-Tokens:
  7695. description: X-RateLimit-Limit-Tokens
  7696. type: integer
  7697. X-RateLimit-Remaining-Requests:
  7698. description: X-RateLimit-Remaining-Requests
  7699. type: integer
  7700. X-RateLimit-Remaining-Tokens:
  7701. description: X-RateLimit-Remaining-Tokens
  7702. type: integer
  7703. X-RateLimit-Reset-Requests:
  7704. description: X-RateLimit-Reset-Requests
  7705. type: string
  7706. X-RateLimit-Reset-Tokens:
  7707. description: X-RateLimit-Reset-Tokens
  7708. type: string
  7709. schema:
  7710. type: file
  7711. security:
  7712. - ApiKeyAuth: []
  7713. summary: VideoGenerationsContent
  7714. tags:
  7715. - relay
  7716. /v1/video/generations/jobs:
  7717. post:
  7718. description: VideoGenerationsJobs
  7719. parameters:
  7720. - description: Request
  7721. in: body
  7722. name: request
  7723. required: true
  7724. schema:
  7725. $ref: '#/definitions/model.VideoGenerationJobRequest'
  7726. - description: Optional Aiproxy-Channel header
  7727. in: header
  7728. name: Aiproxy-Channel
  7729. type: string
  7730. produces:
  7731. - application/json
  7732. responses:
  7733. "200":
  7734. description: OK
  7735. headers:
  7736. X-RateLimit-Limit-Requests:
  7737. description: X-RateLimit-Limit-Requests
  7738. type: integer
  7739. X-RateLimit-Limit-Tokens:
  7740. description: X-RateLimit-Limit-Tokens
  7741. type: integer
  7742. X-RateLimit-Remaining-Requests:
  7743. description: X-RateLimit-Remaining-Requests
  7744. type: integer
  7745. X-RateLimit-Remaining-Tokens:
  7746. description: X-RateLimit-Remaining-Tokens
  7747. type: integer
  7748. X-RateLimit-Reset-Requests:
  7749. description: X-RateLimit-Reset-Requests
  7750. type: string
  7751. X-RateLimit-Reset-Tokens:
  7752. description: X-RateLimit-Reset-Tokens
  7753. type: string
  7754. schema:
  7755. $ref: '#/definitions/model.VideoGenerationJob'
  7756. security:
  7757. - ApiKeyAuth: []
  7758. summary: VideoGenerationsJobs
  7759. tags:
  7760. - relay
  7761. /v1/video/generations/jobs/{id}:
  7762. get:
  7763. description: VideoGenerationsGetJobs
  7764. parameters:
  7765. - description: Request
  7766. in: body
  7767. name: request
  7768. required: true
  7769. schema:
  7770. $ref: '#/definitions/model.VideoGenerationJobRequest'
  7771. - description: Optional Aiproxy-Channel header
  7772. in: header
  7773. name: Aiproxy-Channel
  7774. type: string
  7775. produces:
  7776. - application/json
  7777. responses:
  7778. "200":
  7779. description: OK
  7780. headers:
  7781. X-RateLimit-Limit-Requests:
  7782. description: X-RateLimit-Limit-Requests
  7783. type: integer
  7784. X-RateLimit-Limit-Tokens:
  7785. description: X-RateLimit-Limit-Tokens
  7786. type: integer
  7787. X-RateLimit-Remaining-Requests:
  7788. description: X-RateLimit-Remaining-Requests
  7789. type: integer
  7790. X-RateLimit-Remaining-Tokens:
  7791. description: X-RateLimit-Remaining-Tokens
  7792. type: integer
  7793. X-RateLimit-Reset-Requests:
  7794. description: X-RateLimit-Reset-Requests
  7795. type: string
  7796. X-RateLimit-Reset-Tokens:
  7797. description: X-RateLimit-Reset-Tokens
  7798. type: string
  7799. schema:
  7800. $ref: '#/definitions/model.VideoGenerationJob'
  7801. security:
  7802. - ApiKeyAuth: []
  7803. summary: VideoGenerationsGetJobs
  7804. tags:
  7805. - relay
  7806. securityDefinitions:
  7807. ApiKeyAuth:
  7808. in: header
  7809. name: Authorization
  7810. type: apiKey
  7811. swagger: "2.0"