{"success":true,"data":{"id":"svc_text_classify_01","slug":"text-classify","name":"Text Classification","description":"Text classification with your own labels for agent pipelines: route support tickets, qualify leads, tag feedback, sort emails or moderate comments. Send the text (up to 6,000 characters) and 2 to 30 labels, optionally with a description each; get the best label with a confidence from 0 to 1 and a one-sentence reason, or every label that applies with multi_label. Labels are enforced by a JSON schema, so the answer is always one of yours. Any language. Instructions inside the text are ignored. Claude Haiku 5.5.","category":"text","endpoint":"https://agentsvc.io/api/v1/proxy/text-classify","price_usdc":0.002,"latency_p99_ms":3000,"input_schema":{"type":"object","required":["text","labels"],"properties":{"text":{"type":"string","description":"Text to classify, max 6,000 chars"},"labels":{"type":"array","description":"2 to 30 labels: strings, or objects {label, description}","items":{"anyOf":[{"type":"string"},{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"}},"required":["label"]}]}},"multi_label":{"type":"boolean","default":false,"description":"Return every label that applies (max 5) instead of one"},"instructions":{"type":"string","description":"Optional extra rules, max 400 chars"}}},"output_schema":{"type":"object","properties":{"label":{"type":"string"},"confidence":{"type":"number"},"labels":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"confidence":{"type":"number"}}}},"multi_label":{"type":"boolean"},"reason":{"type":"string"},"chars_checked":{"type":"integer"},"model":{"type":"string"}},"required":["label","confidence","labels","reason"],"example":{"label":"feature request","confidence":0.9,"labels":[{"label":"feature request","confidence":0.9},{"label":"billing question","confidence":0.85},{"label":"praise","confidence":0.8}],"multi_label":true,"reason":"The text praises the app, requests dark mode, and asks about a double charge.","chars_checked":91,"model":"claude-haiku-5-5"}},"is_active":true,"provider":"agentsvc.io","tags":["classification","routing","tagging","moderation","nlp"],"method":"POST","example_input":{"text":"Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?","labels":["bug report","feature request","billing question","praise","spam"],"multi_label":true},"price_atomic":"2000","price_display":"$0.002 USDC","try_url":"https://agentsvc.io/api/v1/try/text-classify","try_limit_per_day":3,"info_url":"https://agentsvc.io/api/v1/services/text-classify","page_url":"https://agentsvc.io/services/text-classify","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/text-classify -H \"Content-Type: application/json\" -d '{\"text\":\"Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?\",\"labels\":[\"bug report\",\"feature request\",\"billing question\",\"praise\",\"spam\"],\"multi_label\":true}'","status":{"ok":true,"latency_ms":1686,"checked_at":"2026-10-10T22:19:10.438Z"}},"payment":{"protocol":"x402","x402_versions_accepted":[1,2],"scheme":"exact","network":"eip155:8453","network_v1":"base","chain_id":8453,"asset":"USDC","asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_decimals":6,"eip712_domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"pay_to":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","request_header_v2":"PAYMENT-SIGNATURE","request_header_v1":"X-PAYMENT","requirements_v2":"base64 JSON in the PAYMENT-REQUIRED response header of the 402","requirements_v1":"JSON body of the 402 (accepts[0])","receipt_header":"PAYMENT-RESPONSE (and X-PAYMENT-RESPONSE): base64 JSON with transaction hash","accounts_required":false,"api_keys_required":false,"settlement":"per call, on-chain, after the service succeeded. Failed calls are never charged.","also_accepted":[{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","network_v1":"solana","asset":"USDC","asset_mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","pay_to":"5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg","note":"Solana option is accepts[1] in the 402. The facilitator pays the transaction fee (extra.feePayer); the payer needs only USDC, no SOL."}]},"links":{"catalog":"https://agentsvc.io/api/v1/services","payment_requirements":"https://agentsvc.io/api/v1/payment-requirements","credits":"https://agentsvc.io/api/v1/credits","openapi":"https://agentsvc.io/openapi.json","llms_txt":"https://agentsvc.io/llms.txt","llms_full_txt":"https://agentsvc.io/llms-full.txt","agents_md":"https://agentsvc.io/AGENTS.md","skill_md":"https://agentsvc.io/SKILL.md","status":"https://agentsvc.io/api/v1/status","docs":"https://agentsvc.io/docs","mcp_server":"https://agentsvc.io/mcp-server.mjs","discovery":"https://agentsvc.io/.well-known/x402","agent_card":"https://agentsvc.io/.well-known/agent-card.json"}}