๐Ÿงฎ

Text Embeddings API

Generate vector embeddings for text using OpenAI text-embedding-3-small or large. Perfect for semantic search, RAG pipelines, clustering, and similarity tasks.

API Docs $0.001 / request

About this tool

Send one or multiple text strings and receive high-quality vector embeddings from OpenAI's text-embedding-3-small (1536 dimensions) or text-embedding-3-large (3072 dimensions). Process up to 100 strings per request with up to 8,191 tokens each. Embeddings are ready to use in vector databases, similarity searches, and AI pipelines.

Quick Start โ€” Single text

curl -X POST https://api.iteratools.com/embeddings \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text": "The quick brown fox jumps over the lazy dog"}'

Batch โ€” Multiple texts

curl -X POST https://api.iteratools.com/embeddings \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text": ["Hello world", "AI embeddings are useful", "Semantic search"], "model": "small"}'

Response

{ "ok": true, "data": { "embeddings": [[0.0023, -0.0189, 0.0412, ...]], "model": "text-embedding-3-small", "tokens": 9, "dimensions": 1536, "count": 1 } }

Parameters

Field Type Description
text string | string[] Text or array of texts to embed (max 100, 8191 tokens each)
model "small" | "large" Model size: small = 1536 dims (default), large = 3072 dims

Pricing

$0.001 per request via x402 micropayment on Base (USDC). Batch up to 100 strings in a single call for maximum efficiency.

Full Documentation Browse All Tools