core

Distill a conversation message array to fit within a token budget while preserving key context.

Cost: 1 credit(s). Free tier: 10 calls per IP (no auth).

post/v1/distill

Request

  • Base URL: https://api.agent-toolbox.ai
  • URL: https://api.agent-toolbox.ai/v1/distill
  • Auth: one of:
    • HTTP bearer
    • none

Request body

targetTokensinteger
preserveSystemPromptboolean

Response

Success.

originalCountinteger required
distilledCountinteger required
estimatedTokensinteger required
compressionRationumber required
methodstring required

Changes

No recorded changes to this operation across all 1 revision of this API.