latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

tag management

New Tag

Create a new tag.

Parameters:

  • name: str - The name of the tag
  • description: Optional[str] - Description of what this tag represents
  • models: List[str] - List of either 'model_id' or 'model_name' allowed for this tag
  • budget_id: Optional[str] - The id for a budget (tpm/rpm/max budget) for the tag

IF NO BUDGET ID - CREATE ONE WITH THESE PARAMS

  • max_budget: Optional[float] - Max budget for tag
  • tpm_limit: Optional[int] - Max tpm limit for tag
  • rpm_limit: Optional[int] - Max rpm limit for tag
  • max_parallel_requests: Optional[int] - Max parallel requests for tag
  • soft_budget: Optional[float] - Get a slack alert when this soft budget is reached
  • model_max_budget: Optional[dict] - Max budget for a specific model
  • budget_duration: Optional[str] - Frequency of resetting tag budget
post/tag/new

Request body

namestring required
descriptionstring nullable
modelsstring[] nullable
model_infoobject nullable
budget_idstring nullable
max_budgetnumber nullable
soft_budgetnumber nullable
max_parallel_requestsinteger nullable
tpm_limitinteger nullable
rpm_limitinteger nullable
model_max_budgetobject nullable
budget_durationstring nullable

Response

Successful Response

{"stackTrail":"paths:/tag/new:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}