RL
Extend model resources expiry
Changed onKeeps a ready model resource from stopping for inactivity for at least the given number of seconds from now. It moves the resource's expires_at to at least that time, and never earlier. Every operation on the resource's sessions already keeps it up for inactive_timeout seconds, so use this only to stay up longer without operations, for example while you compute rewards. Fails if the resource is not ready.
post/v1/rl/model-resources/{model_resources_id}/extend-expiry
Request
- Base URLhttps://api.together.ai
- URLhttps://api.together.ai/v1/rl/model-resources/{model_resources_id}/extend-expiry
- AuthHTTP bearer
Path parameters
model_resources_idstring required
ID of the model resource
Request body
Example request
{
"seconds": 7200
}Response
Model resource details
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"error": {
"message": "Timed out waiting for cluster capacity. Try again later.",
"occurred_at": "2026-01-02T00:00:05Z"
},
"status_details": {
"queue_position": 3
},
"base_model": "Qwen/Qwen3.5-4B",
"base_weights_ref": "together://ml_A1b2C3d4E5f6G7h8I9j0K@rv_A1b2C3d4E5f6G7h8I9j0K",
"compute_config": {
"num_generator_replicas": 1,
"gpu_type": "B200-SXM"
},
"lora_enabled": true,
"created_at": "2026-01-02T00:00:00Z",
"updated_at": "2026-01-02T00:00:05Z",
"created_by": "user_123",
"inactive_timeout": 3600,
"expires_at": "2026-01-02T01:00:05Z"
}Changes
- info
endpoint added
- info