Skip to main content
Glama

create_replica

Build an AI replica from a training video to generate synthetic video content with customizable properties like gaze correction and background options.

Instructions

Create a new AI replica from a training video

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
train_video_urlYesDirect link to training video (S3, etc.)
replica_nameNoName for the replica
consent_video_urlNoOptional separate consent video URL
callback_urlNoURL to receive training completion callback
model_nameNoPhoenix model version (phoenix-3 default)
propertiesNoAdditional replica properties

Implementation Reference

  • Handler function that executes the create_replica tool logic - makes a POST request to /replicas endpoint with the provided arguments and returns the response data as formatted JSON text
    private async createReplica(args: any) {
      const response = await this.axiosInstance.post('/replicas', args);
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2),
        }],
      };
    }
  • Tool schema definition with name, description, and inputSchema specifying the structure and validation rules for create_replica tool inputs (train_video_url is required, plus optional replica_name, consent_video_url, callback_url, model_name, and properties)
    {
      name: 'create_replica',
      description: 'Create a new AI replica from a training video',
      inputSchema: {
        type: 'object',
        properties: {
          train_video_url: {
            type: 'string',
            description: 'Direct link to training video (S3, etc.)',
          },
          replica_name: {
            type: 'string',
            description: 'Name for the replica',
          },
          consent_video_url: {
            type: 'string',
            description: 'Optional separate consent video URL',
          },
          callback_url: {
            type: 'string',
            description: 'URL to receive training completion callback',
          },
          model_name: {
            type: 'string',
            description: 'Phoenix model version (phoenix-3 default)',
            enum: ['phoenix-2', 'phoenix-3'],
          },
          properties: {
            type: 'object',
            description: 'Additional replica properties',
            properties: {
              gaze_correction: { type: 'boolean' },
              background_green_screen: { type: 'boolean' },
            },
          },
        },
        required: ['train_video_url'],
      },
    },
  • src/index.ts:692-693 (registration)
    Registration/routing logic in CallToolRequestSchema handler that maps the 'create_replica' tool name to its handler method
    case 'create_replica':
      return await this.createReplica(request.params.arguments);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rakeshdavid/Tavus-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server