AI
Text summarization API
Summarize a block of text into a few sentences. Answers needs like 'summarize this article', 'give me the TL;DR', 'condense this text'. (Scaffold uses a local extractive fallback until an LLM key is configured.)
Price$0.04per request
MethodPOST
Route/v1/ai/summarize
StatusLive
MIME typeapplication/json
Rate limit30/minute
CacheNo cache
aisummarizesummarizationtexttldrnlpcondense
API URL
Integration docshttps://x402.hexl.dev/v1/ai/summarizeExample request
{
"text": "x402 lets clients pay APIs using standard HTTP 402 flows.",
"maxSentences": 1
}Example response
{
"summary": "x402 lets clients pay APIs using standard HTTP 402 flows.",
"provider": "local-extractive"
}Input schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 12000
},
"maxSentences": {
"type": "number",
"minimum": 1,
"maximum": 5,
"default": 3
}
}
}Output schema
{
"type": "object",
"required": [
"summary",
"provider"
],
"properties": {
"summary": {
"type": "string"
},
"provider": {
"type": "string"
}
}
}