{"openapi":"3.1.0","info":{"title":"Texel API","version":"0.1.0"},"paths":{"/dreambooth/status/{job_id}":{"get":{"tags":["Dreambooth"],"summary":"Status","operationId":"status_dreambooth_status__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dreambooth/result/{job_id}":{"get":{"tags":["Dreambooth"],"summary":"Result","operationId":"result_dreambooth_result__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dreambooth/inference":{"post":{"tags":["Dreambooth"],"summary":"Run inference with a dreambooth model","description":"Run inference on a pretrained model. The status of the job can be checked using the job_id.","operationId":"inference_dreambooth_inference_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferenceRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DreamboothResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/dreambooth/train":{"post":{"tags":["Dreambooth"],"summary":"Train a dreambooth model with instance images","description":"Train a new model using the provided local images and prompts. The model will be trained asynchronously and the response will contain a job_id. The status of the job can be checked using the job_id.","operationId":"train_dreambooth_train_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DreamboothTrainRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DreamboothResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/video_encoder/status/{job_id}":{"get":{"tags":["Video encoder"],"summary":"Get job status using job id","operationId":"status_video_encoder_status__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/video_encoder/status_client_id/{client_id}":{"get":{"tags":["Video encoder"],"summary":"Get job status using client id","operationId":"status_client_id_video_encoder_status_client_id__client_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/video_encoder/encode":{"post":{"tags":["Video encoder"],"summary":"Encode","operationId":"encode_video_encoder_encode_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncoderRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/stable_diffusion/":{"post":{"tags":["Stable Diffusion"],"summary":"Run a prompt through Stable Diffusion","description":"Provide a prompt and optionally a negative prompt. The input will be run through Stable Diffusion to return an output image.","operationId":"infer_stable_diffusion__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/routers__stable_diffusion__Prompt"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/esm/":{"post":{"tags":["ESM"],"summary":"Run a protein sequence through esmfold","description":"Provide a protein sequence. The result will be returned as a pdb","operationId":"infer_esm__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProteinRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/embeddings/":{"post":{"tags":["Embeddings"],"summary":"Generate embeddings for a text string given a model","description":"Provide a text string and model as input to generate embeddings.","operationId":"createEmbedding","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/unity_server/status/{job_id}":{"get":{"tags":["Unity server"],"summary":"Get job status using job id","operationId":"status_unity_server_status__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/unity_server/start":{"post":{"tags":["Unity server"],"summary":"Start","operationId":"start_unity_server_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnityServerRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/completions/":{"post":{"tags":["Completions"],"summary":"Creates a completion for the provided prompt and parameters.","description":"Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.","operationId":"createCompletion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/video_scoring/":{"post":{"tags":["Video"],"summary":"Run a video through a custom model and get a score.","description":"Provide a video URL as input. The input will be run through a custom model to generate a score.","operationId":"infer_video_scoring__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoScoringRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/model_server/":{"post":{"tags":["Model server"],"summary":"Run a custom model","description":"Provide a model name, model parameters, and model input to run","operationId":"infer_model_server__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelServerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"AudioEncoderProperties":{"properties":{"bitrate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bitrate"},"sample_rate":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Rate"},"channels":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Channels","default":2},"quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality"}},"additionalProperties":true,"type":"object","title":"AudioEncoderProperties"},"CompletionsRequest":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Prompt"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens","default":16},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","default":1.0},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P","default":1.0},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N","default":1},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","default":false},"logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Logprobs"},"echo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Echo","default":false}},"type":"object","required":["prompt"],"title":"CompletionsRequest"},"ControlNet":{"properties":{"model":{"$ref":"#/components/schemas/ControlNetModel"},"image_url":{"type":"string","minLength":1,"title":"Image Url"},"scale":{"type":"number","title":"Scale","default":1.0},"preprocessor":{"anyOf":[{"$ref":"#/components/schemas/ControlNetPreprocessor"},{"type":"null"}]},"params":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Params"}},"type":"object","required":["model","image_url"],"title":"ControlNet"},"ControlNetModel":{"type":"string","enum":["canny","ip2p","inpaint","mlsd","depth","normalbae","seg","lineart","lineart_anime","openpose","scribble","softedge","shuffle","tile"],"title":"ControlNetModel"},"ControlNetPreprocessor":{"type":"string","enum":["HED","midas","MLSD","openpose","openpose_face","openpose_face_only","openpose_full","openpose_hand","pidi_net","normal_bae","lineart","lineart_anime","canny","content_shuffle","zoe","mediapipe_face","sam"],"title":"ControlNetPreprocessor"},"DreamboothResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"DreamboothResponse"},"DreamboothTrainRequest":{"properties":{"training_params":{"$ref":"#/components/schemas/TrainingParams"},"inference_request":{"anyOf":[{"$ref":"#/components/schemas/InferenceRequest"},{"type":"null"}]},"callback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback","default":""}},"additionalProperties":true,"type":"object","required":["training_params"],"title":"DreamboothTrainRequest"},"EmbeddingRequest":{"properties":{"input":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"title":"Input"},"instructions":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Instructions"},"model":{"type":"string","title":"Model"}},"type":"object","required":["input","instructions","model"],"title":"EmbeddingRequest"},"EncoderRequest":{"properties":{"inputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/URL"},"type":"array"},{"type":"null"}],"title":"Inputs"},"outputs":{"anyOf":[{"items":{"$ref":"#/components/schemas/URL"},"type":"array"},{"type":"null"}],"title":"Outputs"},"video_encoder_codec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Encoder Codec","default":"hevc_nvenc"},"video_properties":{"anyOf":[{"$ref":"#/components/schemas/VideoEncoderProperties"},{"type":"null"}]},"audio_encoder_codec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Encoder Codec","default":"copy"},"audio_properties":{"anyOf":[{"$ref":"#/components/schemas/AudioEncoderProperties"},{"type":"null"}]},"file_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Format","default":"mp4"},"filters":{"anyOf":[{"items":{"$ref":"#/components/schemas/Filter"},"type":"array"},{"type":"null"}],"title":"Filters","default":[]},"kwargs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Kwargs","default":{}},"callback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback"},"client_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Job Id"},"input_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Url","description":"Use `inputs_url` instead","deprecated":true},"output_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Url","description":"Use `outputs_url` instead","deprecated":true},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type","description":"Use `inputs_url.content_type` instead","deprecated":true}},"additionalProperties":true,"type":"object","title":"EncoderRequest"},"Filter":{"properties":{"name":{"type":"string","title":"Name"},"inputs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Inputs","default":[]},"output":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Output","default":["video"]},"args":{"anyOf":[{"items":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"}]},"type":"array"},{"type":"null"}],"title":"Args","default":[]},"kwargs":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Kwargs","default":{}},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","default":"filter"}},"additionalProperties":true,"type":"object","required":["name"],"title":"Filter"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Img2Img":{"properties":{"image_url":{"type":"string","minLength":1,"title":"Image Url"},"denoising_strength":{"type":"number","title":"Denoising Strength","default":0.75}},"type":"object","required":["image_url"],"title":"Img2Img"},"InPaint":{"properties":{"image_url":{"type":"string","minLength":1,"title":"Image Url"},"mask_url":{"type":"string","minLength":1,"title":"Mask Url"},"denoising_strength":{"type":"number","title":"Denoising Strength","default":0.75}},"type":"object","required":["image_url","mask_url"],"title":"InPaint"},"InferenceParams":{"properties":{"steps":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Steps","default":50},"seed":{"type":"integer","title":"Seed","default":1337},"cfg_scale":{"type":"number","title":"Cfg Scale","default":7.5},"width":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Width","default":512},"height":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Height","default":512}},"type":"object","title":"InferenceParams"},"InferenceRequest":{"properties":{"model":{"anyOf":[{"$ref":"#/components/schemas/Model"},{"type":"null"}],"default":{"name":"runwayml/stable-diffusion-v1-5","revision":"main","sdxl":false}},"prompts":{"items":{"$ref":"#/components/schemas/routers__dreambooth__Prompt"},"type":"array","title":"Prompts"},"inference_params":{"anyOf":[{"$ref":"#/components/schemas/InferenceParams"},{"type":"null"}],"default":{"cfg_scale":7.5,"height":512,"seed":1337,"steps":50,"width":512}},"enable_safe_mode":{"type":"boolean","title":"Enable Safe Mode","default":false},"img2img":{"anyOf":[{"$ref":"#/components/schemas/Img2Img"},{"type":"null"}]},"inpaint":{"anyOf":[{"$ref":"#/components/schemas/InPaint"},{"type":"null"}]},"controlnets":{"anyOf":[{"items":{"$ref":"#/components/schemas/ControlNet"},"type":"array"},{"type":"null"}],"title":"Controlnets","default":[]},"callback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback","default":""}},"additionalProperties":true,"type":"object","required":["prompts"],"title":"InferenceRequest"},"Model":{"properties":{"name":{"type":"string","title":"Name","default":"runwayml/stable-diffusion-v1-5"},"revision":{"type":"string","title":"Revision","default":"main"},"sdxl":{"type":"boolean","title":"Sdxl","default":false}},"type":"object","title":"Model"},"ModelServerRequest":{"properties":{"name":{"type":"string","title":"Name"},"params":{"type":"object","title":"Params"},"config":{"type":"object","title":"Config"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["name","params","config"],"title":"ModelServerRequest"},"ProteinRequest":{"properties":{"sequence":{"type":"string","title":"Sequence"}},"type":"object","required":["sequence"],"title":"ProteinRequest"},"TrainingParams":{"properties":{"model":{"anyOf":[{"$ref":"#/components/schemas/Model"},{"type":"null"}]},"images_url":{"items":{"type":"string"},"type":"array","title":"Images Url"},"max_train_steps":{"type":"integer","title":"Max Train Steps","default":0},"class_name":{"type":"string","title":"Class Name"},"class_images_url":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Class Images Url","default":[]},"instance_name":{"type":"string","title":"Instance Name","default":"sks"}},"type":"object","required":["images_url","class_name"],"title":"TrainingParams"},"URL":{"properties":{"url":{"type":"string","title":"Url"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type","default":""},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","default":"url"},"streams":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Streams","default":["video","audio"]}},"additionalProperties":true,"type":"object","required":["url"],"title":"URL"},"UnityServerRequest":{"properties":{},"additionalProperties":true,"type":"object","title":"UnityServerRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoEncoderProperties":{"properties":{"fps":{"anyOf":[{"type":"number","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Fps"},"bitrate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bitrate"},"preset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset","default":"p4"},"tune":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tune","default":"hq"}},"additionalProperties":true,"type":"object","title":"VideoEncoderProperties"},"VideoScoringRequest":{"properties":{"video_url":{"type":"string","pattern":"^http[s]?://","title":"Video Url"},"num_clips":{"type":"integer","title":"Num Clips","default":10},"clip_duration_in_secs":{"type":"number","title":"Clip Duration In Secs","default":1.0}},"type":"object","required":["video_url"],"title":"VideoScoringRequest"},"routers__dreambooth__Prompt":{"properties":{"complete":{"type":"string","title":"Complete"},"negative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative"},"count":{"type":"integer","title":"Count","default":1},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["complete"],"title":"Prompt"},"routers__stable_diffusion__Prompt":{"properties":{"prompt":{"type":"string","title":"Prompt"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt"},"model":{"type":"string","title":"Model","default":"runwayml/stable-diffusion-v1-5"},"count":{"type":"integer","title":"Count","default":1},"steps":{"type":"integer","title":"Steps","default":50},"guidance_scale":{"type":"number","title":"Guidance Scale","default":7.5},"width":{"type":"integer","title":"Width","default":512},"height":{"type":"integer","title":"Height","default":512}},"type":"object","required":["prompt","negative_prompt"],"title":"Prompt"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}