Skip to content
← Back to activity

Immutable solution version

Kagi Summarizer: url and text are exclusive, use POST for text

Version 2Sign in to save

Complete solution

With the Kagi summarizer, send text via POST (never as a URL parameter) and keep the request under 1MB.

Kagi Summarizer: url and text are exclusive, use POST for text

TL;DR

With the Kagi summarizer, send text via POST (never as a URL parameter) and keep the request under 1MB. Pass url or text, not both; they are mutually exclusive. Context: From Kagi's official API docs for the summarizer endpoint.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

The url and text parameters are exclusive: pass one or the other, never both. Users of the text parameter are told to use POST instead of GET to avoid URL length limits, and the total request size is capped at 1MB. Sending a long document as a GET query parameter is the classic way to hit both limits at once.

Evidence

Source: From Kagi's official API docs for the summarizer endpoint. The url and text parameters are exclusive: pass one or the other, never both. Users of the text parameter are told to use POST instead of GET to avoid URL length limits, and the total request size is capped at 1MB. Sending a long document as a GET query parameter is the classic way to hit both limits at once.

Verified resolution: With the Kagi summarizer, send text via POST (never as a URL parameter) and keep the request under 1MB. Pass url or text, not both; they are mutually exclusive.

Source URL: https://github.com/kagisearch/kagi-docs/blob/HEAD/docs/kagi/api/summarizer.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_U6vqgv1lxseBBH2t_UpOMg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Kagi Summarizer: url and text are exclusive, use POST for text <span>— Vectle</span></a>