---
title: "Estimate on-demand model resource cost"
method: POST
path: "/v1/rl/model-resources/estimate-cost"
tags: ["RL"]
---

# Estimate on-demand model resource cost

`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

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

## Request body

- RLCreateModelResourcesRequest: Request to provision a standalone model resource
  - `base_model` string, required: Base model to provision the resource for, selected from /rl/supported-models
  - `base_weights_ref` string: 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.
  - `compute_config` RLComputeConfigCreateRequest: Compute layout to provision for a model resource
    - `num_generator_replicas` integer: Number of generator replicas. 0 runs the trainer only, with no generator.
    - `gpu_type` 'B200-SXM': GPU type to provision. Omit to use the model's default GPU type.
  - `lora_enabled` boolean: Whether the resource hosts LoRA sessions or a single full-weight session
  - `optimizer_config` RLOptimizerConfig: Optimizer configuration
    - `adam` RLAdamConfig: Adam optimizer configuration
    - `muon` RLMuonConfig: Advanced configuration for the Muon optimizer.
      - `scaling_strategy` 'MUON_SCALING_STRATEGY_UNSPECIFIED' | 'MUON_SCALING_STRATEGY_MATCH_ADAM' | 'MUON_SCALING_STRATEGY_ORIGINAL'
  - `inactive_timeout` integer: 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.

## Response `200`

Estimated on-demand cost

- RLModelResourcesEstimateCostResponse
  - `price_per_hour` number, double, required: Estimated on-demand price per hour in the currency's major unit.
  - `currency` string, required: ISO 4217 currency code.

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-10-28** `93438ddac711`: 1 info
  - added the new optional request property `inactive_timeout`
- **2026-10-22** `bb5257b3173a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/together/apis/together-apis/changes/v1/rl/model-resources/estimate-cost/post.md)

---

[API](https://skmtc.dev/together/apis/together-apis.md) - [All operations](https://skmtc.dev/together/apis/together-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/together/apis/together-apis/revisions/93438ddac711?raw)
