{"success":true,"data":{"id":"svc_text_embed_01","slug":"text-embed","name":"Text Embeddings and Rerank","description":"Sentence embeddings (all-MiniLM-L6-v2, 384 dimensions, L2-normalized, multilingual input works best in English) for semantic search, clustering and deduplication, or rerank mode: pass query + documents to get documents sorted by cosine similarity. Runs locally, texts are not stored. Params: texts (1 to 32 strings, max 2000 chars each) for embed mode, or query + documents (up to 64) and top_k for rerank mode.","category":"text","endpoint":"https://agentsvc.io/api/v1/proxy/text-embed","price_usdc":0.002,"latency_p99_ms":2000,"input_schema":{"type":"object","properties":{"texts":{"type":"array","items":{"type":"string"},"maxItems":32},"query":{"type":"string"},"documents":{"type":"array","items":{"type":"string"},"maxItems":64},"top_k":{"type":"integer","minimum":1,"maximum":64},"include_embeddings":{"type":"boolean","default":false}}},"output_schema":{"type":"object","properties":{"mode":{"type":"string"},"model":{"type":"object","properties":{"name":{"type":"string"},"quantization":{"type":"string"},"dimensions":{"type":"integer"},"max_tokens":{"type":"integer"},"normalized":{"type":"boolean"},"similarity":{"type":"string"}}},"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"score":{"type":"number"},"document":{"type":"string"}}}}},"required":["mode","model"],"example":{"mode":"rerank","model":{"name":"sentence-transformers/all-MiniLM-L6-v2","quantization":"int8","dimensions":384,"max_tokens":256,"normalized":true,"similarity":"cosine (dot product of normalized vectors)"},"query":"how do AI agents pay for APIs?","results":[{"index":0,"score":0.495209,"document":"x402 lets agents pay per call with USDC"},{"index":1,"score":0.005939,"document":"The cat sat on the mat"},{"index":2,"score":-0.050145,"document":"Weather in Berlin is sunny"}]}},"is_active":true,"provider":"agentsvc.io","tags":["embeddings","rerank","semantic-search","vector","rag"],"method":"POST","example_input":{"query":"how do AI agents pay for APIs?","documents":["x402 lets agents pay per call with USDC","The cat sat on the mat","Weather in Berlin is sunny"]},"price_atomic":"2000","price_display":"$0.002 USDC","try_url":"https://agentsvc.io/api/v1/try/text-embed","try_limit_per_day":3,"info_url":"https://agentsvc.io/api/v1/services/text-embed","page_url":"https://agentsvc.io/services/text-embed","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/text-embed -H \"Content-Type: application/json\" -d '{\"query\":\"how do AI agents pay for APIs?\",\"documents\":[\"x402 lets agents pay per call with USDC\",\"The cat sat on the mat\",\"Weather in Berlin is sunny\"]}'","status":{"ok":true,"latency_ms":19,"checked_at":"2026-10-06T16:26:26.947Z"}},"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."},"links":{"catalog":"https://agentsvc.io/api/v1/services","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"}}