≡ All docs
Model API / Embeddings
Embeddings
Updated: 2026-02-10
Overview
Convert text into vector representations for semantic search, clustering, RAG, and similar use cases. Compatible with the OpenAI Embeddings API.
POST
/embeddingsRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Embedding model ID, e.g. embedding-3, qwen3-embedding-4b |
| input | string | array | Required | Text or array of texts to embed, up to 1024 items per call |
| dimensions | integer | Optional | Output vector dimension; some models support reduction (e.g. 768/1024/2048) |
Example
curl -X POST "https://www.starunion.net/v1/embeddings" \-H "Authorization: Bearer YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "embedding-3","input": ["The basics of quantum entanglement", "Relativity and spacetime"]}'
Didn't find what you were looking for?Contact us →