Skip to main content
POST
Together AI SDK (Python)

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to provision a standalone model resource

base_model
string
required

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

Example:

"Qwen/Qwen3.5-4B"

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.

Maximum string length: 256
Pattern: ^together://ml_[A-Za-z0-9]+(@rv_[A-Za-z0-9]+)?$
Example:

"together://ml_A1b2C3d4E5f6G7h8I9j0K"

compute_config
object

Compute layout to provision.

lora_enabled
boolean
default:true

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

Example:

true

optimizer_config
object

Optimizer configuration for this resource.

inactive_timeout
integer
default:3600

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.

Required range: 300 <= x <= 86400
Example:

3600

Response

Estimated on-demand cost

price_per_hour
number<double>
required

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

Example:

56

currency
string
required

ISO 4217 currency code.

Example:

"USD"