Skip to main content
POST
Create Model

Body Parameters

string
required
Unique identifier for the model (max 256 characters). This will be used in API calls to reference the model.
string
required
Human-readable display name for the model
string
Optional pointer to an existing model that should be used when proxying requests. If set, this model will act as a wrapper around the base model.
object
required
JSON object containing model parameters. The schema is flexible and can include any parameters supported by the base 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
Metadata about the model
string
URL or data URI for the model’s profile image. Defaults to “/static/favicon.png” if not provided.
string
User-facing description of the model
object
Object describing model capabilities (e.g., vision support, function calling)
array
Optional array of access grant objects to control who can access this model. 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
Whether the model should be active and available for use

Response

string
The model’s unique identifier
string
ID of the user who created the model
string
Base model ID if specified
string
Model’s display name
object
Model parameters as provided
object
Model metadata as provided
array
Access grants for the model
boolean
Whether the model is active
integer
Unix timestamp of creation
integer
Unix timestamp of last update

Example Request

Example Response

Error Responses

Unauthorized - User does not have permission to create models
Bad Request - Model ID already exists or is too long