Skip to main content

Direct answer

Use POST https://api2.laozhang.ai/v1/embeddings to convert text or a text array into vectors. Filter for Embeddings models in the catalog, then validate default dimensions, optional dimension reduction, batch ordering, and billing with the current API key. Do not generalize one OpenAI model’s dimension rules to every provider model. This page was last verified on September 2, 2026.

Minimal request

Python:
The example model appears in the current catalog, but account permission and price still require a console check.

Acceptance items

Usage boundaries

  • Vector dimensions and semantic spaces from different models are not interchangeable.
  • Rebuild the index after changing embedding models.
  • Dimension reduction can affect recall and requires offline evaluation.
  • Batch size, input length, and rate limits require testing.
  • Match vector database normalization and distance functions to the selected model.