{"openapi":"3.1.0","info":{"title":"Inferenz Proxy","version":"1.0.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/clients":{"post":{"summary":"Create Client","operationId":"create_client_admin_clients_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClientRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Clients","operationId":"list_clients_admin_clients_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/{slug}/chat/completions":{"post":{"summary":"Chat Completions","operationId":"chat_completions_v1__slug__chat_completions_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/{slug}/messages":{"post":{"summary":"Anthropic Messages","description":"Anthropic SDK shape. base_url is https://api.inferenz.com.au/v1/{slug}.","operationId":"anthropic_messages_v1__slug__messages_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/{slug}/v1/messages":{"post":{"summary":"Anthropic Messages","description":"Anthropic SDK shape. base_url is https://api.inferenz.com.au/v1/{slug}.","operationId":"anthropic_messages_v1__slug__v1_messages_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnthropicMessagesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact":{"post":{"summary":"Contact","description":"A company writing before a scan. The message is stored. No mail is sent.","operationId":"contact_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/snapshot":{"post":{"summary":"Run Snapshot","description":"The free snapshot. A visitor uploads a usage export CSV and gets back\na real, calculated saving estimate — no manual step, no API key needed.","operationId":"run_snapshot_snapshot_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dashboard/catalog":{"get":{"summary":"Dashboard Catalog","operationId":"dashboard_catalog_dashboard_catalog_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/recent":{"get":{"summary":"Dashboard Recent","operationId":"dashboard_recent_dashboard_recent_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/keys":{"post":{"summary":"Dashboard Add Key","operationId":"dashboard_add_key_dashboard_keys_post","parameters":[{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/endpoints":{"post":{"summary":"Dashboard Create Endpoint","operationId":"dashboard_create_endpoint_dashboard_endpoints_post","parameters":[{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardEndpointRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/models":{"get":{"summary":"Dashboard Models","operationId":"dashboard_models_dashboard_models_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/revoke-endpoint":{"post":{"summary":"Dashboard Revoke Endpoint","operationId":"dashboard_revoke_endpoint_dashboard_revoke_endpoint_post","parameters":[{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard/revoke-key":{"post":{"summary":"Dashboard Revoke Key","operationId":"dashboard_revoke_key_dashboard_revoke_key_post","parameters":[{"name":"x-inferenz-dash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Inferenz-Dash"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AnthropicMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"title":"Content"}},"type":"object","required":["role","content"],"title":"AnthropicMessage"},"AnthropicMessagesRequest":{"properties":{"model":{"type":"string","title":"Model"},"messages":{"items":{"$ref":"#/components/schemas/AnthropicMessage"},"type":"array","title":"Messages"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"system":{"anyOf":[{},{"type":"null"}],"title":"System"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","default":false},"tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{},{"type":"null"}],"title":"Tool Choice"}},"type":"object","required":["model","messages"],"title":"AnthropicMessagesRequest"},"ChatMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"title":"Content"},"tool_calls":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tool Calls"},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":true,"type":"object","required":["role"],"title":"ChatMessage"},"ChatRequest":{"properties":{"model":{"type":"string","title":"Model","default":""},"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","default":false},"tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{},{"type":"null"}],"title":"Tool Choice"}},"type":"object","required":["messages"],"title":"ChatRequest"},"ContactRequest":{"properties":{"name":{"type":"string","title":"Name"},"company":{"type":"string","title":"Company"},"email":{"type":"string","title":"Email"},"message":{"type":"string","title":"Message"},"company_url":{"type":"string","title":"Company Url","default":""},"source":{"type":"string","title":"Source","default":"site"}},"type":"object","required":["name","company","email","message"],"title":"ContactRequest"},"DashboardEndpointRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"provider_key_id":{"type":"string","title":"Provider Key Id"},"label":{"type":"string","title":"Label"},"cheap_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cheap Model"},"medium_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium Model"},"premium_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Premium Model"}},"type":"object","required":["client_id","provider_key_id","label"],"title":"DashboardEndpointRequest"},"DashboardKeyRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"label":{"type":"string","title":"Label"},"api_key":{"type":"string","title":"Api Key"},"provider":{"type":"string","title":"Provider","default":""},"cheap_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cheap Model"},"medium_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium Model"},"premium_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Premium Model"}},"type":"object","required":["client_id","label","api_key"],"title":"DashboardKeyRequest"},"DashboardRevokeRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"id":{"type":"string","title":"Id"}},"type":"object","required":["client_id","id"],"title":"DashboardRevokeRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"NewClientRequest":{"properties":{"company_name":{"type":"string","title":"Company Name"},"email":{"type":"string","title":"Email"},"baseline_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Model","default":"gpt-4o"}},"type":"object","required":["company_name","email"],"title":"NewClientRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}