{"openapi":"3.1.0","info":{"title":"TensorPath AI Gateway API","version":"0.1.0"},"servers":[{"url":"http://localhost:3090"}],"components":{"schemas":{},"parameters":{}},"paths":{"/v1/chat/completions":{"post":{"operationId":"chat_completion_v1_chat_completions_post","tags":["OpenAI - Chat Completions"],"summary":"Chat Completion","description":"Follows the exact same API spec as OpenAI's Chat API https://platform.openai.com/docs/api-reference/chat","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","enum":["system"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"]}}]},"name":{"type":"string"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","enum":["user"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","enum":["image_url"]},"image_url":{"type":"object","properties":{"url":{"type":"string"},"detail":{"type":"string","enum":["auto","low","high"]}},"required":["url"]}},"required":["type","image_url"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_audio"]},"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string"}},"required":["data","format"]}},"required":["type","input_audio"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_video","video_url"]},"video_url":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}},"required":["type","video_url"]}]}}]},"name":{"type":"string"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","enum":["developer"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"]}}]},"name":{"type":"string"}},"required":["role","content"]},{"type":"object","properties":{"role":{"type":"string","enum":["assistant"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","enum":["image_url"]},"image_url":{"type":"object","properties":{"url":{"type":"string"},"detail":{"type":"string","enum":["auto","low","high"]}},"required":["url"]}},"required":["type","image_url"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_audio"]},"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string"}},"required":["data","format"]}},"required":["type","input_audio"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_video","video_url"]},"video_url":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}},"required":["type","video_url"]}]}},{"nullable":true}]},"name":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"arguments":{"type":"string"}},"required":["name","arguments"]}},"required":["id","type","function"]}},"refusal":{"type":"string","nullable":true},"reasoning":{"type":"string","nullable":true}},"required":["role"]},{"type":"object","properties":{"role":{"type":"string","enum":["tool"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","enum":["image_url"]},"image_url":{"type":"object","properties":{"url":{"type":"string"},"detail":{"type":"string","enum":["auto","low","high"]}},"required":["url"]}},"required":["type","image_url"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_audio"]},"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string"}},"required":["data","format"]}},"required":["type","input_audio"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_video","video_url"]},"video_url":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}},"required":["type","video_url"]}]}}]},"tool_call_id":{"type":"string"}},"required":["role","content","tool_call_id"]}]},"minItems":1},"frequency_penalty":{"type":"number","nullable":true,"minimum":-2,"maximum":2},"logit_bias":{"type":"object","nullable":true,"additionalProperties":{"type":"number"}},"logprobs":{"type":"boolean","nullable":true},"top_logprobs":{"type":"integer","nullable":true,"minimum":0,"maximum":20},"max_completion_tokens":{"type":"integer","nullable":true,"minimum":1},"max_tokens":{"type":"integer","nullable":true,"minimum":1},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"n":{"type":"integer","nullable":true,"minimum":1},"modalities":{"type":"array","items":{"type":"string","enum":["text","image"]}},"presence_penalty":{"type":"number","nullable":true,"minimum":-2,"maximum":2},"reasoning":{"type":"object","properties":{"effort":{"type":"string","nullable":true,"enum":["xhigh","high","medium","low","minimal","none"]},"summary":{"type":"string","nullable":true,"enum":["auto","concise","detailed"]}}},"response_format":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["json_object"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["json_schema"]},"json_schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"schema":{"type":"object","additionalProperties":{"nullable":true}},"strict":{"type":"boolean","nullable":true}},"required":["name"]}},"required":["type","json_schema"]},{"type":"object","properties":{"type":{"type":"string","enum":["grammar"]},"grammar":{"type":"string"}},"required":["type","grammar"]}]},"structured_outputs":{"type":"boolean","nullable":true},"seed":{"type":"integer","nullable":true},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":4},{"nullable":true}]},"stream":{"type":"boolean","default":false},"stream_options":{"type":"object","nullable":true,"properties":{"include_usage":{"type":"boolean"}}},"temperature":{"type":"number","nullable":true,"minimum":0,"maximum":2,"default":1},"tool_choice":{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"required":["type","function"]}]},"tools":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"nullable":true}},"strict":{"type":"boolean","nullable":true}},"required":["name"]}},"required":["type","function"]}},"top_a":{"type":"number","nullable":true,"minimum":0,"maximum":1},"top_k":{"type":"integer","nullable":true,"minimum":0},"min_p":{"type":"number","nullable":true,"minimum":0,"maximum":1},"top_p":{"type":"number","nullable":true,"minimum":0,"maximum":1,"default":1},"repetition_penalty":{"type":"number","nullable":true,"minimum":0},"user":{"type":"string"},"parallel_tool_calls":{"type":"boolean"},"service_tier":{"type":"string","nullable":true},"store":{"type":"boolean","nullable":true}},"required":["model","messages"]}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"finish_reason":{"type":"string","nullable":true,"enum":["tool_calls","stop","length","content_filter","error"]},"index":{"type":"number"},"message":{"type":"object","properties":{"role":{"type":"string","enum":["assistant"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","enum":["image_url"]},"image_url":{"type":"object","properties":{"url":{"type":"string"},"detail":{"type":"string","enum":["auto","low","high"]}},"required":["url"]}},"required":["type","image_url"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_audio"]},"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string"}},"required":["data","format"]}},"required":["type","input_audio"]},{"type":"object","properties":{"type":{"type":"string","enum":["input_video","video_url"]},"video_url":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}},"required":["type","video_url"]}]}},{"nullable":true}]},"name":{"type":"string"},"tool_calls":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["function"]},"function":{"type":"object","properties":{"name":{"type":"string"},"arguments":{"type":"string"}},"required":["name","arguments"]}},"required":["id","type","function"]}},"refusal":{"type":"string","nullable":true},"reasoning":{"type":"string","nullable":true}},"required":["role"]},"logprobs":{"type":"object","nullable":true,"properties":{"content":{"type":"array","nullable":true,"items":{"type":"object","properties":{"token":{"type":"string"},"logprob":{"type":"number"},"bytes":{"type":"array","nullable":true,"items":{"type":"number"}},"top_logprobs":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"logprob":{"type":"number"},"bytes":{"type":"array","nullable":true,"items":{"type":"number"}}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]}},"refusal":{"type":"array","nullable":true,"items":{"type":"object","properties":{"token":{"type":"string"},"logprob":{"type":"number"},"bytes":{"type":"array","nullable":true,"items":{"type":"number"}},"top_logprobs":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"logprob":{"type":"number"},"bytes":{"type":"array","nullable":true,"items":{"type":"number"}}},"required":["token","logprob","bytes"]}}},"required":["token","logprob","bytes","top_logprobs"]}}},"required":["content","refusal"]}},"required":["finish_reason","index","message"]}},"created":{"type":"number"},"model":{"type":"string"},"object":{"type":"string","enum":["chat.completion"]},"system_fingerprint":{"type":"string","nullable":true},"usage":{"type":"object","properties":{"completion_tokens":{"type":"number"},"prompt_tokens":{"type":"number"},"total_tokens":{"type":"number"},"completion_tokens_details":{"type":"object","nullable":true,"properties":{"reasoning_tokens":{"type":"number","nullable":true},"audio_tokens":{"type":"number","nullable":true},"accepted_prediction_tokens":{"type":"number","nullable":true},"rejected_prediction_tokens":{"type":"number","nullable":true}}},"prompt_tokens_details":{"type":"object","nullable":true,"properties":{"cached_tokens":{"type":"number"},"cache_write_tokens":{"type":"number"},"audio_tokens":{"type":"number"},"video_tokens":{"type":"number"}}}},"required":["completion_tokens","prompt_tokens","total_tokens"]}},"required":["id","choices","created","model","object"]}},"text/event-stream":{"schema":{"type":"string"}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/completions":{"post":{"operationId":"completion_v1_completions_post","tags":["OpenAI - Completions"],"summary":"Completion","description":"Follows the exact same API spec as OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"prompt":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"integer"}},{"type":"array","items":{"type":"array","items":{"type":"integer"}}}]},"best_of":{"type":"integer","nullable":true,"minimum":0,"maximum":20},"echo":{"type":"boolean","nullable":true},"frequency_penalty":{"type":"number","nullable":true,"minimum":-2,"maximum":2},"logit_bias":{"type":"object","nullable":true,"additionalProperties":{"type":"number"}},"logprobs":{"type":"integer","nullable":true,"minimum":0,"maximum":5},"max_tokens":{"type":"integer","nullable":true,"minimum":0},"n":{"type":"integer","nullable":true,"minimum":1},"presence_penalty":{"type":"number","nullable":true,"minimum":-2,"maximum":2},"repetition_penalty":{"type":"number","nullable":true,"minimum":0},"seed":{"type":"integer","nullable":true},"stop":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":4},{"nullable":true}]},"stream":{"type":"boolean","default":false},"stream_options":{"type":"object","nullable":true,"properties":{"include_usage":{"type":"boolean"}}},"suffix":{"type":"string","nullable":true},"temperature":{"type":"number","nullable":true,"minimum":0,"maximum":2,"default":1},"top_a":{"type":"number","nullable":true,"minimum":0,"maximum":1},"top_k":{"type":"integer","nullable":true,"minimum":0},"min_p":{"type":"number","nullable":true,"minimum":0,"maximum":1},"top_p":{"type":"number","nullable":true,"minimum":0,"maximum":1,"default":1},"user":{"type":"string"}},"required":["model","prompt"]}}}},"responses":{"200":{"description":"Completion response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"finish_reason":{"type":"string","nullable":true,"enum":["stop","length","content_filter"]},"index":{"type":"integer"},"logprobs":{"type":"object","nullable":true,"properties":{"text_offset":{"type":"array","items":{"type":"integer"}},"token_logprobs":{"type":"array","items":{"type":"number"}},"tokens":{"type":"array","items":{"type":"string"}},"top_logprobs":{"type":"array","items":{"type":"object","additionalProperties":{"type":"number"}}}}},"text":{"type":"string"}},"required":["finish_reason","index","logprobs","text"]}},"created":{"type":"integer"},"model":{"type":"string"},"system_fingerprint":{"type":"string"},"object":{"type":"string","enum":["text_completion"]},"usage":{"type":"object","properties":{"completion_tokens":{"type":"number"},"prompt_tokens":{"type":"number"},"total_tokens":{"type":"number"},"completion_tokens_details":{"type":"object","nullable":true,"properties":{"reasoning_tokens":{"type":"number","nullable":true},"audio_tokens":{"type":"number","nullable":true},"accepted_prediction_tokens":{"type":"number","nullable":true},"rejected_prediction_tokens":{"type":"number","nullable":true}}},"prompt_tokens_details":{"type":"object","nullable":true,"properties":{"cached_tokens":{"type":"number"},"cache_write_tokens":{"type":"number"},"audio_tokens":{"type":"number"},"video_tokens":{"type":"number"}}}},"required":["completion_tokens","prompt_tokens","total_tokens"]}},"required":["id","choices","created","model","object"]}},"text/event-stream":{"schema":{"type":"string"}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/models":{"get":{"operationId":"model_list_v1_models_get","tags":["OpenAI - Models"],"summary":"Model List","description":"Lists available models aggregated from all active endpoints for the authenticated user.","responses":{"200":{"description":"List of models aggregated from all active endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["model"]},"created":{"type":"integer"},"owned_by":{"type":"string"}},"required":["id"]}}},"required":["object","data"]}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/models":{"get":{"operationId":"provider_models_models_get","tags":["Provider - Models"],"summary":"Provider Model List","description":"OpenRouter provider-style model catalog for the authenticated user.","responses":{"200":{"description":"Provider model catalog","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hugging_face_id":{"type":"string","nullable":true},"name":{"type":"string"},"created":{"type":"integer"},"input_modalities":{"type":"array","items":{"type":"string"}},"output_modalities":{"type":"array","items":{"type":"string"}},"quantization":{"type":"string","nullable":true},"context_length":{"type":"number","nullable":true},"max_output_length":{"type":"number","nullable":true},"pricing":{"anyOf":[{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},{"type":"array","items":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]}},"minItems":1,"maxItems":2}]},"supported_sampling_parameters":{"type":"array","items":{"type":"string"}},"supported_features":{"type":"array","items":{"type":"string"}},"description":{"type":"string","nullable":true},"deprecation_date":{"type":"string","nullable":true},"openrouter":{"type":"object","properties":{"slug":{"type":"string"}},"required":["slug"]},"datacenters":{"type":"array","nullable":true,"items":{"nullable":true}}},"required":["id","name","created","input_modalities","output_modalities","context_length","pricing","supported_sampling_parameters","supported_features"]}}},"required":["data"]}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/models/{model_id}":{"get":{"operationId":"model_info_v1_models__model_id__get","tags":["OpenAI - Models"],"summary":"Model Info","description":"Retrieve information about a specific model. Follows OpenAI API specification for individual model retrieval.","parameters":[{"schema":{"type":"string"},"required":true,"name":"model_id","in":"path"}],"responses":{"200":{"description":"Model details","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["model"]},"created":{"type":"integer"},"owned_by":{"type":"string"}},"required":["id"]}}}},"404":{"description":"Model not found on any endpoint","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/embeddings":{"post":{"operationId":"embeddings_v1_embeddings_post","tags":["OpenAI - Embeddings"],"summary":"Embeddings","description":"Follows the exact same API spec as OpenAI's Embeddings API https://platform.openai.com/docs/api-reference/embeddings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"input":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"integer"}},{"type":"array","items":{"type":"array","items":{"type":"integer"}}}]},"encoding_format":{"type":"string","enum":["float","base64"]},"dimensions":{"type":"integer","minimum":1},"user":{"type":"string"}},"required":["model","input"]}}}},"responses":{"200":{"description":"Embedding response","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","enum":["embedding"]},"embedding":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"string"}]},"index":{"type":"number"}},"required":["object","embedding","index"]}},"model":{"type":"string"},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"number"},"total_tokens":{"type":"number"}},"required":["prompt_tokens","total_tokens"]}},"required":["object","data","model","usage"]}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/responses":{"post":{"operationId":"responses_api_v1_responses_post","tags":["OpenAI - Responses"],"summary":"Responses Api","description":"Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"input":{"anyOf":[{"type":"string"},{"type":"array","items":{"nullable":true}}]},"instructions":{"type":"string","nullable":true},"metadata":{"type":"object","nullable":true,"additionalProperties":{"type":"string"}},"tools":{"type":"array","items":{"type":"object","additionalProperties":{"nullable":true}}},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","additionalProperties":{"nullable":true}}]},"parallel_tool_calls":{"type":"boolean","nullable":true},"text":{"type":"object","additionalProperties":{"nullable":true}},"reasoning":{"type":"object","nullable":true,"properties":{"effort":{"type":"string","nullable":true,"enum":["xhigh","high","medium","low","minimal","none"]},"summary":{"type":"string","nullable":true,"enum":["auto","concise","detailed"]}}},"max_output_tokens":{"type":"integer","nullable":true},"temperature":{"type":"number","nullable":true,"minimum":0,"maximum":2},"top_a":{"type":"number","nullable":true,"minimum":0,"maximum":1},"top_k":{"type":"integer","nullable":true,"minimum":0},"min_p":{"type":"number","nullable":true,"minimum":0,"maximum":1},"top_p":{"type":"number","nullable":true,"minimum":0},"top_logprobs":{"type":"integer","nullable":true,"minimum":0,"maximum":20},"presence_penalty":{"type":"number","nullable":true,"minimum":-2,"maximum":2},"frequency_penalty":{"type":"number","nullable":true,"minimum":-2,"maximum":2},"repetition_penalty":{"type":"number","nullable":true,"minimum":0},"include":{"type":"array","nullable":true,"items":{"type":"string"}},"store":{"type":"boolean","nullable":true},"truncation":{"type":"string","nullable":true,"enum":["auto","disabled"]},"stream":{"type":"boolean","default":false},"previous_response_id":{"type":"string","nullable":true},"user":{"type":"string"},"service_tier":{"type":"string","nullable":true}},"required":["model","input"]}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["response"]},"created_at":{"type":"number"},"model":{"type":"string"},"status":{"type":"string","enum":["completed","incomplete","in_progress","failed","cancelled","queued"]},"completed_at":{"type":"number","nullable":true},"output":{"type":"array","items":{"nullable":true}},"output_text":{"type":"string","nullable":true},"error":{"type":"object","nullable":true,"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},"incomplete_details":{"type":"object","nullable":true,"properties":{"reason":{"type":"string"}}},"usage":{"type":"object","properties":{"input_tokens":{"type":"number"},"input_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"number"}},"required":["cached_tokens"]},"output_tokens":{"type":"number"},"output_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"number"}},"required":["reasoning_tokens"]},"total_tokens":{"type":"number"}},"required":["input_tokens","input_tokens_details","output_tokens","output_tokens_details","total_tokens"]},"metadata":{"type":"object","nullable":true,"additionalProperties":{"type":"string"}},"temperature":{"type":"number","nullable":true},"top_p":{"type":"number","nullable":true},"max_output_tokens":{"type":"number","nullable":true}},"required":["id","object","created_at","model","status","output"]}},"text/event-stream":{"schema":{"type":"string"}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/rerank":{"post":{"operationId":"rerank_v1_rerank_post","tags":["Inference - Rerank"],"summary":"Rerank","description":"Rerank endpoint compatible with Jina AI and Cohere re-rank APIs for reranking documents against a query.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"query":{"type":"string"},"documents":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"object","additionalProperties":{"nullable":true}}]}},"top_n":{"type":"integer","minimum":1}},"required":["model","query","documents"]}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"prompt_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}},"required":["prompt_tokens","total_tokens"]},"results":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"document":{"type":"object","properties":{"text":{"type":"string","nullable":true}}},"relevance_score":{"type":"number"}},"required":["index","document","relevance_score"]}}},"required":["id","model","usage","results"]}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/audio/transcriptions":{"post":{"operationId":"audio_transcription_v1_audio_transcriptions_post","tags":["OpenAI - Audio"],"summary":"Audio Transcription","description":"Follows the OpenAI Audio Transcriptions API spec: https://platform.openai.com/docs/api-reference/audio/createTranscription","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"The audio file to transcribe (binary)"},"model":{"type":"string"},"language":{"type":"string"},"prompt":{"type":"string"},"response_format":{"type":"string","enum":["json","text","srt","verbose_json","vtt"]},"temperature":{"type":"string"},"stream":{"type":"string"}},"required":["file","model"]}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},{"type":"object","properties":{"language":{"type":"string"},"duration":{"type":"number"},"text":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"word":{"type":"string"},"start":{"type":"number"},"end":{"type":"number"}},"required":["word","start","end"]}},"segments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"seek":{"type":"integer"},"start":{"type":"number"},"end":{"type":"number"},"text":{"type":"string"},"tokens":{"type":"array","items":{"type":"integer"}},"temperature":{"type":"number"},"avg_logprob":{"type":"number"},"compression_ratio":{"type":"number"},"no_speech_prob":{"type":"number"}},"required":["id","seek","start","end","text","tokens","temperature","avg_logprob","compression_ratio","no_speech_prob"]}}},"required":["language","duration","text"]}]}},"text/plain":{"schema":{"type":"string"}},"text/event-stream":{"schema":{"type":"string"}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/messages":{"post":{"operationId":"messages_v1_messages_post","tags":["Anthropic - Messages"],"summary":"Messages","description":"Anthropic-compatible Messages API. Follows the same contract as https://docs.anthropic.com/en/api/messages","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]}}]}},"required":["role","content"]}},"max_tokens":{"type":"integer"},"system":{"type":"string"},"stream":{"type":"boolean"},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"input_schema":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","input_schema"]}},"thinking":{"type":"object","properties":{"type":{"type":"string","enum":["enabled"]},"budget_tokens":{"type":"integer"}},"required":["type"]}},"required":["model","messages","max_tokens"]}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{}}},"text/event-stream":{"schema":{"type":"string"}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}},"/v1/messages/count_tokens":{"post":{"operationId":"messages_count_tokens_v1_messages_count_tokens_post","tags":["Anthropic - Messages"],"summary":"Count Tokens","description":"Count tokens for an Anthropic Messages request without generating a response.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]}}]}},"required":["role","content"]}},"system":{"type":"string"},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"input_schema":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","input_schema"]}}},"required":["model","messages"]}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"input_tokens":{"type":"integer"}},"required":["input_tokens"]}}}},"503":{"description":"No available endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"anyOf":[{"type":"string"},{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]}]}},"required":["error"]}}}}}}}}}