---
title: "Text Summarization — $0.006"
method: POST
path: "/v1/ai/summarize"
tags: ["ai"]
---

# Text Summarization — $0.006

`POST /v1/ai/summarize`

## Request

- Base URL: `https://x402.asterpay.io`
- URL: `https://x402.asterpay.io/v1/ai/summarize`
- Auth: one of:
  - API key in header `PAYMENT-SIGNATURE`
  - HTTP payment

AI-powered text summarization. Supports long-form content.

## Request body

- object
  - `text` string, required: Text to summarize
  - `max_length` integer: Max summary length in words

## Response `200`

Summary

- object
  - `summary` string, required
  - `word_count` integer

## Other responses

- `402`: Payment Required — pay via x402 or MPP (USDC on Base, Ethereum, Polygon, Arbitrum, Optimism or SKALE), then retry. See the WWW-Authenticate and Payment-Required response headers, or the `accepts` array below. The example is the exact body the runtime returns (minus per-request extras such as example_response and extensions.bazaar).

---

[API](https://skmtc.dev/asterpay/apis/asterpay-data-api.md) · [All operations](https://skmtc.dev/asterpay/apis/asterpay-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/asterpay/apis/asterpay-data-api/revisions/97b4ab464b3b?raw)
