Quick start
- curl
- Node.js SDK
- Python SDK
Request fields
Batch input in a single request
You can embed multiple strings in one API call:data array matches the order of your input array.
Response shape
Choosing a model
UseGET /v1/models to inspect available embedding models and their pricing. For embeddings, the most useful fields are:
model_typecontext_lengthpricingis_free
SDK coverage
The official SDKs all expose first-class embeddings resources:- Node:
client.embeddings.create(...) - Python:
client.embeddings.create(...) - Go:
client.Embeddings.Create(...) - Java:
client.embeddings().create(...)
Common errors
Available models
Check
GET /v1/models with the type=embedding filter to see the full live list of enabled embedding models.RAG with file uploads
For retrieval-augmented generation over your own documents, use the Files & RAG workflow — upload files, trigger embedding, and search withPOST /v1/files/search. This is more scalable than calling the embeddings endpoint directly for large document corpora.