Create or Edit Model
AI Model Creation API
This API allows you to create, train, and manage the foundational AI models used for generating influencers and content.
Base URL
https://api.realm.ai/v1/models
Create Base Model
Initiates the creation of a new base AI model from predefined templates or foundational models.
Method:
POSTEndpoint:
/Authentication: API Key
Request Body
{
"name": "My Custom Model",
"description": "A model specialized for cyberpunk aesthetics",
"baseModel": "realm-base-v2.1", // Specify a REALM foundational model
"tags": ["cyberpunk", "female", "photorealistic"]
}Response 201 Created
Upload Training Data
Uploads image data to train or fine-tune a specific model. This is an asynchronous operation.
Method:
POSTEndpoint:
/{modelId}/trainAuthentication: API Key
Content-Type:
multipart/form-data
Request Body Parameters
images(file array): Multiple image files (JPEG, PNG) to use for training.trainingParams(JSON string, optional): Advanced training parameters (e.g., learning rate, steps).
Response 202 Accepted
Get Model Details
Retrieves details for a specific AI model, including its current status.
Method:
GETEndpoint:
/{modelId}Authentication: API Key
Response 200 OK
List User Models
Retrieves a list of AI models owned by the authenticated user.
Method:
GETEndpoint:
/Authentication: API Key
Query Parameters:
limit(int, optional, default: 20): Number of results per page.offset(int, optional, default: 0): Pagination offset.status(string, optional): Filter by model status (e.g.,active).
Response 200 OK
Delete Model
Deletes a specific AI model. This action is irreversible.
Method:
DELETEEndpoint:
/{modelId}Authentication: API Key + Signature Authentication
Response 204 No Content
Last updated