Rank and select document chunks by relevance to fit within a token budget. Retur...
https://api.strale.io/x402/context-window-optimizeOverview
Rank and select document chunks by relevance to fit within a token budget. Returns selected/excluded chunks with scores.
Protocol
x402
Price
$0.03
Payment Asset
USD Coin
Payment Network
Base
Category
uncategorized
Provider
strale
Source
bazaar
Indexed
2026-04-15 14:09:59
Health
Status
healthy
Latency (p50)
112ms
Uptime (30d)
100.0%
Reliability Score
100/100
Last Checked
2026-08-04 11:44:57
Last Healthy
2026-08-04 11:44:57
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
Valid
Asset Verified
—
Facilitator
—
Input Schema
{
"discoverable": true,
"method": "GET",
"queryParams": {
"documents": {
"description": "Array of {id, text}",
"required": true,
"type": "array"
},
"max_tokens": {
"type": "integer"
},
"query": {
"required": true,
"type": "string"
}
},
"type": "http"
}
Output Schema
{
"excluded": {
"type": "array"
},
"selected": {
"type": "array"
},
"tokens_remaining": {
"type": "integer"
},
"total_tokens_used": {
"type": "integer"
}
}
Recent Health Checks
| Time | Status | HTTP | Latency | Error |
|---|---|---|---|---|
| 2026-08-04 11:44:57 | healthy | 402 | 123ms | |
| 2026-08-04 06:01:18 | healthy | 402 | 127ms | |
| 2026-08-03 23:10:13 | healthy | 402 | 141ms | |
| 2026-08-03 22:01:59 | healthy | 402 | 116ms | |
| 2026-08-03 13:58:41 | healthy | 402 | 109ms | |
| 2026-08-03 09:42:48 | healthy | 402 | 111ms | |
| 2026-08-03 05:58:55 | healthy | 402 | 110ms | |
| 2026-08-03 00:53:12 | healthy | 402 | 110ms | |
| 2026-08-02 17:40:05 | healthy | 402 | 129ms | |
| 2026-08-02 15:36:47 | healthy | 402 | 112ms | |
| 2026-08-02 08:31:35 | healthy | 402 | 112ms | |
| 2026-08-02 02:43:29 | healthy | 402 | 714ms | |
| 2026-08-01 22:51:16 | healthy | 402 | 109ms | |
| 2026-08-01 17:17:55 | healthy | 402 | 106ms |