{"uid":"cap_l3TXshnSLALfaKO6hfyvd","slug":"x402-ai-tools-key-phrase-extraction-caa31339","name":"x402 AI Tools – Key Phrase Extraction","description":"Extracts the key noun phrases of a text with Amazon Comprehend, with their offsets and scores. Supports en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW; the language is detected when not given.","url":"https://ai.kagurazaka.dev/v1/key-phrases?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"the text, up to 5000 bytes of UTF-8"},"language":{"type":"string","description":"language code (en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW); detected when omitted"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eV8EkOUjWYg3hBErv_y5F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts key noun phrases from text using Amazon Comprehend, returning each phrase with its character offsets and confidence score, with automatic language detection.","exampleAgentPrompt":"Can you pull out the key phrases from this paragraph: 'The new electric vehicle features a 400-mile range, fast charging capability, and an advanced autopilot system that rivals competitors in the premium segment.' — I don't need to specify the language, it's English.","exampleUseCases":[{"title":"Customer review topic extraction","prompt":"Here's a customer review: 'The noise-cancelling headphones have exceptional battery life and a sleek design, but the ear cushions feel uncomfortable after long sessions.' Can you extract all the key noun phrases from it so I can see what topics customers are mentioning?"},{"title":"Multilingual document indexing","prompt":"I have a French news article text and I want to extract its key phrases to build a search index — here's the text: 'Le président a annoncé un nouveau plan économique visant à réduire le chômage et stimuler la croissance.' Pull out all the important noun phrases and their positions."},{"title":"Support ticket triage by topic","prompt":"Extract the key phrases from this support ticket so I can categorize it automatically: 'My order delivery was delayed by three days and the packaging was damaged when it arrived. I want a full refund and a replacement sent via express shipping.'"}],"resultDescription":"A list of key noun phrases found in the text, each with the phrase string, its start and end character offsets within the original text, and a confidence score (0–1) from Amazon Comprehend. The detected language code is also returned when language was not provided by the caller.","failureModes":["Text exceeds 5000 bytes — request rejected with an error","Unsupported language detected — Comprehend cannot process it","Empty or missing text field — validation error","Language code provided does not match one of the 12 supported codes — error returned","Network or Amazon Comprehend service unavailability — 5xx error","Payment failure via x402 protocol — request not processed"],"whenToPreferThis":"Choose this endpoint when you need structured, offset-aware key phrase extraction with confidence scoring across 12 major languages, powered by Amazon Comprehend. It is especially useful when you need to know exactly where in the text each phrase appears (via offsets), or when the input language is unknown and automatic detection is needed. Prefer it over generic NLP libraries when you want a managed, pay-per-call cloud NLP service without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:44.577Z","isFirstParty":false,"canonicalSlug":"x402-ai-tools-key-phrase-extraction-caa31339"}