v3

OpenAPI 3.1.0MIT2026-07-31192456807.8 KB
RL

Create model resources

Provisions a standalone model resource that training sessions can attach to.

post/rl/model-resources

Request body

base_modelstring required

Base model to provision the resource for

lora_enabledboolean

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

Example request

{
  "base_model": "Qwen/Qwen3-0.6B",
  "compute_config": {
    "num_generator_replicas": 2
  },
  "lora_enabled": true
}

Response

Model resource details

idstring required

Unique identifier for the model resource

status'MODEL_RESOURCES_STATUS_PENDING' | 'MODEL_RESOURCES_STATUS_CREATING' | 'MODEL_RESOURCES_STATUS_READY' | 'MODEL_RESOURCES_STATUS_ERROR' | 'MODEL_RESOURCES_STATUS_STOPPED' | 'MODEL_RESOURCES_STATUS_STOPPING' required

Lifecycle status of a model resource

base_modelstring required

Base model the resource is provisioned for

lora_enabledboolean required

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

created_atstring date-time required

Timestamp when the model resource was created

updated_atstring date-time required

Timestamp when the model resource was last updated

created_bystring required

ID of the user who created the model resource

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "error": {
    "message": "Capacity is currently unavailable. Try again later.",
    "occurred_at": "2026-01-02T00:00:05Z"
  },
  "base_model": "Qwen/Qwen3-0.6B",
  "compute_config": {
    "num_generator_replicas": 1
  },
  "lora_enabled": true,
  "created_at": "2026-01-02T00:00:00Z",
  "updated_at": "2026-01-02T00:00:05Z",
  "created_by": "user_123"
}