Parallel AI icon

Parallel AI

Interact with Parallel AI

Actions537

Chat → Anthropic Count Tokens

AI-generated

Summary

Counts tokens for Anthropic chat input using the Parallel AI node. Provide messages and, optionally, a model ID, system prompt, and Anthropic-format tool definitions; the source pack does not expose the request implementation or returned fields.

Inputs

  • Messages (required) — JSON array of input messages to count tokens for.
  • Model — Model ID to use for the count request.
  • System — System prompt, entered as a string; the property description also allows an array of text blocks.
  • Tools — JSON tool definitions in Anthropic tool format.

Output shape

Not shown in the provided source pack.

The operation properties indicate a token-count request, but the supplied source pack contains no implementation body to confirm the response shape.

Links

Discussion