Embedding API: Text Vectors at Scale

Generate embeddings for text at scale.

Create text vectors for semantic search.

Example

response = client.embeddings.create(

model=”text-embedding-3-small”,

input=[“Hello world”, “How are you?”]

)

embeddings = [e.embedding for e in response.data]

Models

✅ text-embedding-3-small

✅ text-embedding-3-large

Pricing

$0.02/1M tokens (small)

$0.13/1M tokens (large)

Conclusion

Embeddings enable semantic search!

Leave a Comment