POST
/api/compress
Compress text via OpenAI LLM
Compresses provided text content using an LLM to produce high-quality condensed content.
curl -s -X POST "$BASE/api/compress" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Long article text here..."}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| text | string | Y | — | Raw text to compress |
| strategy | string | N | — | Compression strategy hint |