cURL
curl --request POST \ --url https://www.norns.ai/api/v0/summarize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'content=<string>' \ --form 'file=<string>' \ --form 'targetLanguage=<string>' \ --form maxLength=123 \ --form 0.file='@example-file' \ --form 1.file='@example-file'
{ "success": true, "data": { "summary": "<string>", "sentences": [ { "text": "<string>", "startIndex": 123, "endIndex": 123 } ], "usage": 123, "originalLanguage": "<string>", "targetLanguage": "<string>", "tokenCount": 123 } }
Summarizes text content or documents. Costs 2 credits per 10,000 tokens.
API key authentication
Text content to summarize
File to summarize (PDF, DOCX, or TXT, max 10MB)
Target language for the summary translation
Maximum length of the summary in characters
Successful summarization response
Show child attributes
Generated summary text
Individual sentence from the summary
Starting position of the sentence
Ending position of the sentence
Number of credits consumed
Detected language of the original text
Language of the summary
Number of tokens processed