API

summarize(text, options?)

Returns { summary, tokens }.

OptionMeaning
lengthshort, medium or long. Defaults to short.
languageThe summary's language as a BCP 47 tag. Defaults to the text's.

usage()

Returns the requests and tokens used this month: { requests, tokens, limit }.

Errors

Every method throws an AcmeError with status and code; 429 rate_limited carries retryAfter in seconds.