{"slug":"1gateway-dev-v1-ai-embed-c134a1","title":"Use when an agent needs vectors for search, RAG, clustering or dedup","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/ai/embed","category":"search","description":"Use when an agent needs vectors for search, RAG, clustering or dedup. Input: text (GET) or POST JSON {texts:[...]} with up to 32 strings of max 2000 chars each. Output: model, dims (1024), embeddings with index and vector; compare with cosine similarity. Multilingual (100+ languages, strong Korean).","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":217,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"text":"x402 pay-per-call API for AI agents","texts":""},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"text":{"description":"One text to embed (1-2000 chars). For several, POST {\"texts\":[...]} (up to 32)","maxLength":2000,"type":"string"},"texts":{"description":"JSON array of up to 32 strings (alternative to text; POST JSON preferred)","maxLength":70000,"type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"count":{"type":"integer"},"dims":{"type":"integer"},"embeddings":{"items":{"additionalProperties":true,"properties":{"chars":{"type":"integer"},"embedding":{"type":"array"},"index":{"type":"integer"}},"type":"object"},"type":"array"},"model":{"type":"string"},"notes":{"items":{"type":"string"},"type":"array"}},"required":["model","dims","count","embeddings","notes"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":220,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":184,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":196,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":227,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":217,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":212,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":255,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":222,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":196,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":201,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":208,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":185,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":193,"error":null}],"description_full":"Use when an agent needs vectors for search, RAG, clustering or dedup. Input: text (GET) or POST JSON {texts:[...]} with up to 32 strings of max 2000 chars each. Output: model, dims (1024), embeddings with index and vector; compare with cosine similarity. Multilingual (100+ languages, strong Korean). Not stored. Example: ?text=x402%20pay-per-call%20API","last_updated":"2026-11-23T00:52:12.666Z","schemes":["exact"]}