Short answer: to summarize text using the Claude API in Node.js, put the summarizer behind a small provider interface, make the input and output records idempotent, and retry only failures that are safe to retry. For a fintech moderation queue, that design matters more than whether the first model is Claude, an OpenAI model, Gemini, or a model reached through a compatibility layer. A summary that is excellent but duplicated, missing, or impossible to replay is an operational defect.
I treat summarization as a queueing problem with language generation in the middle. The useful artifact is not a paragraph returned by an API.…