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

# Estimate on-demand model resource cost

`POST /rl/model-resources/estimate-cost`

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
  - `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.
  - `lora_enabled` boolean — Whether the resource hosts LoRA sessions or a single full-weight session
  - `optimizer_config` RLOptimizerConfig — Optimizer configuration
    - `adamw` RLAdamWOptimizerConfig — AdamW optimizer configuration
    - `muon` RLMuonOptimizerConfig — Advanced configuration for the Muon optimizer.
      - `scaling_strategy` 'MUON_SCALING_STRATEGY_UNSPECIFIED' | 'MUON_SCALING_STRATEGY_MATCH_ADAMW' | 'MUON_SCALING_STRATEGY_ORIGINAL'

## 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.

---

[API](https://skmtc.net/together/apis/together-apis.md) · [All operations](https://skmtc.net/together/apis/together-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/together/together-apis/revisions/f26a23fab8e0/schema)
