@byteplus/amk-editor-assistant
v1.0.8
Published
Assistant integration SDK for @byteplus/amk-editor.
Maintainers
Readme
@byteplus/amk-editor-assistant
The BytePlus AI MediaKit Web Vibe Editing SDK combines a conversational agent with a multitrack editor for AI-assisted and manual video editing.
Documentation
See Integrating the Web Vibe Editing SDK for setup, model configuration, backend proxy integration, and authentication.
Installation
npm install @byteplus/amk-editor-assistant react react-domQuick start
import { createAmkEditorAssistant } from '@byteplus/amk-editor-assistant';
import '@byteplus/amk-editor-assistant/styles.css';
const sdk = createAmkEditorAssistant({
container: document.getElementById('editor')!,
projectId: 'your-project-id',
endpoint: '/api/amk-proxy',
i18n: { locale: 'en-US' },
assistant: {
model: 'your-inference-model-id',
preferMultiModalModels: ['your-audio-model-id', 'your-visual-model-id'],
},
});
await sdk.whenReady();
// Call sdk.destroy() when the page or component unmounts.Initialize in the browser with an explicitly sized container and replace the project and model IDs. Follow the integration guide to enable services, configure authorization, and implement your backend proxy. Keep API keys and permanent credentials on the server.
Refer to the integration guide for layout, themes, media integration, and customization.
