Launch Week 02 wrapped — explore all five launches

Delete Cost

DELETEhttps://api.confident-ai.com/v2/model-costs/{modelCostId}

Permanently deletes a custom model price. Models it matched fall back to Confident AI's own pricing, and costs already recorded on past spans are unchanged. This fails while the project inherits its model costs from the organization.

DELETE/v2/model-costs/{modelCostId}
curl -X DELETE "https://api.confident-ai.com/v2/model-costs/{modelCostId}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<MODEL-COST-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • modelCostIdstringRequired

    The id of the model cost.

Response

Delete Cost succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A reference to a model cost by its id.

    Show 1 propertyHide 1 property
    • idstring

      The id of the model cost, generated by Confident AI.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI