{ "/config/cost_discount_config": { "get": { "tags": [ "Cost Tracking" ], "summary": "Get Cost Discount Config", "description": "Get current cost discount configuration.\n\nReturns the cost_discount_config from litellm_settings.", "operationId": "get_cost_discount_config_config_cost_discount_config_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "APIKeyHeader": [] } ] }, "patch": { "tags": [ "Cost Tracking" ], "summary": "Update Cost Discount Config", "description": "Update cost discount configuration.\n\nUpdates the cost_discount_config in litellm_settings.\nDiscounts should be between 0 and 1 (e.g., 0.05 = 5% discount).\n\nExample:\n```json\n{\n \"vertex_ai\": 0.05,\n \"gemini\": 0.05,\n \"openai\": 0.01\n}\n```", "operationId": "update_cost_discount_config_config_cost_discount_config_patch", "requestBody": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "number" }, "type": "object", "title": "Cost Discount Config" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "APIKeyHeader": [] } ] } }, "/config/cost_margin_config": { "get": { "tags": [ "Cost Tracking" ], "summary": "Get Cost Margin Config", "description": "Get current cost margin configuration.\n\nReturns the cost_margin_config from litellm_settings.", "operationId": "get_cost_margin_config_config_cost_margin_config_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "APIKeyHeader": [] } ] }, "patch": { "tags": [ "Cost Tracking" ], "summary": "Update Cost Margin Config", "description": "Update cost margin configuration.\n\nUpdates the cost_margin_config in litellm_settings.\nMargins can be:\n- Percentage: {\"openai\": 0.10} = 10% margin\n- Fixed amount: {\"openai\": {\"fixed_amount\": 0.001}} = $0.001 per request\n- Combined: {\"vertex_ai\": {\"percentage\": 0.08, \"fixed_amount\": 0.0005}}\n- Global: {\"global\": 0.05} = 5% global margin on all providers\n\nExample:\n```json\n{\n \"global\": 0.05,\n \"openai\": 0.10,\n \"anthropic\": {\"fixed_amount\": 0.001},\n \"vertex_ai\": {\"percentage\": 0.08, \"fixed_amount\": 0.0005}\n}\n```", "operationId": "update_cost_margin_config_config_cost_margin_config_patch", "requestBody": { "content": { "application/json": { "schema": { "additionalProperties": { "anyOf": [ { "type": "number" }, { "additionalProperties": { "type": "number" }, "type": "object" } ] }, "type": "object", "title": "Cost Margin Config" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "APIKeyHeader": [] } ] } }, "/config/pass_through_endpoint": { "get": { "summary": "Get Pass Through Endpoints", "description": "GET configured pass through endpoint.\n\nIf no endpoint_id given, return all configured endpoints.", "operationId": "get_pass_through_endpoints_config_pass_through_endpoint_get", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "endpoint_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Endpoint Id" } }, { "name": "team_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Team Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PassThroughEndpointResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "post": { "summary": "Create Pass Through Endpoints", "description": "Create new pass-through endpoint", "operationId": "create_pass_through_endpoints_config_pass_through_endpoint_post", "security": [ { "APIKeyHeader": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PassThroughGenericEndpoint" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "summary": "Delete Pass Through Endpoints", "description": "Delete a pass-through endpoint by ID.\n\nReturns - the deleted endpoint", "operationId": "delete_pass_through_endpoints_config_pass_through_endpoint_delete", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "endpoint_id", "in": "query", "required": true, "schema": { "type": "string", "title": "Endpoint Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PassThroughEndpointResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/config/pass_through_endpoint/team/{team_id}": { "get": { "summary": "Get Pass Through Endpoints", "description": "GET configured pass through endpoint.\n\nIf no endpoint_id given, return all configured endpoints.", "operationId": "get_pass_through_endpoints_config_pass_through_endpoint_team__team_id__get", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "team_id", "in": "path", "required": true, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Team Id" } }, { "name": "endpoint_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Endpoint Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PassThroughEndpointResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/config/pass_through_endpoint/{endpoint_id}": { "post": { "summary": "Update Pass Through Endpoints", "description": "Update a pass-through endpoint by ID.", "operationId": "update_pass_through_endpoints_config_pass_through_endpoint__endpoint_id__post", "security": [ { "APIKeyHeader": [] } ], "parameters": [ { "name": "endpoint_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Endpoint Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PassThroughGenericEndpoint" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }