Skip to main content
POST
Update Model

Body Parameters

string
required
The unique identifier of the model to update. This field cannot be changed - it must match an existing model.
string
required
Updated human-readable display name for the model
string
Updated base model ID that should be used when proxying requests
object
required
Updated model parameters. This object can contain any parameters supported by the model.Common parameters:
  • temperature (number): Controls randomness in responses
  • max_tokens (integer): Maximum number of tokens to generate
  • top_p (number): Nucleus sampling parameter
  • frequency_penalty (number): Penalty for token frequency
  • presence_penalty (number): Penalty for token presence
object
required
Updated metadata about the model
string
Updated URL or data URI for the model’s profile image
string
Updated user-facing description of the model
object
Updated object describing model capabilities
array
Updated array of access grant objects. If provided, this will replace all existing access grants.Each grant should specify:
  • access_type (string): “user” or “group”
  • access_id (string): ID of the user or group
  • permission (string): “read” or “write”
boolean
default:true
Updated active status of the model

Response

string
The model’s unique identifier
string
ID of the user who created the model (unchanged)
string
Updated base model ID
string
Updated model name
object
Updated model parameters
object
Updated model metadata
array
Updated access grants for the model
boolean
Updated active status
integer
Unix timestamp of original creation (unchanged)
integer
Unix timestamp of this update

Example Request

Example Response

Error Responses

Unauthorized - Model not found
Bad Request - User does not have write access to this model

Permissions

To update a model, the user must:
  • Be the owner of the model (user_id matches), OR
  • Have write access granted through access_grants, OR
  • Be an admin user