RL

Estimate on-demand model resource cost

Changed on

Estimates a model resource's on-demand hourly price without creating it.

post/v1/rl/model-resources/estimate-cost

Request

  • Base URL
    https://api.together.ai
  • URL
    https://api.together.ai/v1/rl/model-resources/estimate-cost
  • Auth
    HTTP bearer

Request body

base_modelstring required

Base model to provision the resource for, selected from /rl/supported-models

base_weights_refstring

Model in this project's model registry whose weights the resource trains in place of the base model's own. It must be a full-weight model.

lora_enabledboolean

Whether the resource hosts LoRA sessions or a single full-weight session

inactive_timeoutinteger

Seconds without activity after which the resource stops and its sessions expire, counted from when it becomes ready and from its last activity. Every operation on any of its sessions restarts the count, and an extend expiry call can keep it up longer.

Example request

{
  "base_model": "Qwen/Qwen3.5-4B",
  "base_weights_ref": "together://ml_A1b2C3d4E5f6G7h8I9j0K",
  "compute_config": {
    "num_generator_replicas": 2,
    "gpu_type": "B200-SXM"
  },
  "lora_enabled": true,
  "inactive_timeout": 3600
}

Response

Estimated on-demand cost

price_per_hournumber double required

Estimated on-demand price per hour in the currency's major unit.

currencystring required

ISO 4217 currency code.

Example response

{
  "price_per_hour": 56,
  "currency": "USD"
}

Changes