POST/api/orgs/{org_id}/datasets/{dataset_id}/runs/estimate

Price a dataset run

A run sends each item as a real request on the model you name, so it costs credits. The estimate prices it at list prices with every output bounded by max_output_tokens, and its token is valid for 15 minutes. Org admins and the organization's own key.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • dataset_idstringrequired

    The dataset id.

Request body

  • modelstringrequired

    A catalog model.

  • tag_idsarray<string>

    Trace tags to score each output with, at most 8.

  • max_itemsinteger

    1 to 5,000.

    Default: 5000
  • max_output_tokensinteger

    1 to 32,768.

    Default: 1024

Responses

  • 200

    The estimate.

    Response
    • itemsinteger
    • estimated_nano_usdinteger
    • estimate_tokenstring
    • expires_atstring
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The key is valid but may not perform this action (for example an inference key on a provisioning-key route, or a feature outside your plan).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    The dataset is empty (dataset_empty) or the model has no priced lane (model_unavailable).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl -X POST 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/runs/estimate' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-6-luna",
  "tag_ids": [
    "0c6f2e4a-7b1d-4f3e-9a2c-5d8e1b7f3a90"
  ],
  "max_items": 120,
  "max_output_tokens": 1024
}'

Response

{
  "items": 120,
  "estimated_nano_usd": 640000000,
  "estimate_token": "00000000-0000-4000-8000-000000000000",
  "expires_at": "2026-11-18T14:47:07Z"
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/runs/estimate