Vault API
Integrate with Vault in Seconds
Summarize API Example
const sendSummarizationRequest = (apiKey, fileID, length, useMarkdown) => { const url = `https://vault.pash.city/api/summarize?api_key=${apiKey}`; const payload = { file_id: fileID, length: length, use_markdown: useMarkdown }; fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }) .then(response => response.json()) .then(data => console.log('Summarization Response:', data)) .catch(error => console.error('Error:', error)); } // Get a short summary (tweet length) of your document sendSummarizationRequest('your_api_key', 6203303609237504, 'short', true);