Embeddings — ML Junction docs
POST /v1/embeddings follows the OpenAI embedding shape and uses the same gateway authentication, governance, routing, usage recording, and billing infrastructure.
curl "$ASTRO_BASE_URL/v1/embeddings" \
-H "Authorization: Bearer $ASTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai-embedding",
"input": [
"Capability-aware routing",
"Provider-independent embeddings"
]
}'
Select an embedding model from GET /v1/models rather than using a chat model.. Batch inputs when your latency and provider limits allow it.. Store the exact model and route identity with generated vectors.. Do not mix vectors from incompatible embedding models in one index without an explicit migration strategy.
Canonical URL: https://mljunction.com/docs/embeddings