POST
/v1/embeddingsBase URL
https://api.linkinfra.aiAuthorization
Bearer TokenAuthorizationBearer <token>Authenticate requests with your API key in the request header:
Authorization: Bearer sk-your-api-keyNeed a key? Create one in the console
Only the first three dimensions are shown. Actual dimensions depend on the model and the dimensions parameter.
Request body
application/jsonmodelstringrequiredModel ID from the model catalog. Availability depends on your account group and configured channels.
inputstring | array<string>requiredA single text input or a list of texts.
encoding_formatstringEmbedding encoding: float or base64.
dimensionsintegerOutput dimensions, for models that support configurable dimensions.
Response
application/json200Successful responsedataarray<object>Embeddings in input order, with index and embedding values.
usageobjectToken usage for this request. Check usage logs in the console for actual charges.