models

Baichuan-Text-Embedding

Markdown · JSON

Baichuan-Text-Embedding

Baichuan-Text-Embedding returns numerical vectors for supplied text through Ailoot’s embeddings API. Send one passage or a list and retain the response indices when building a searchable collection.

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Select Baichuan-Text-Embedding in a /v1/embeddings request. The required input accepts a nonempty string or a nonempty array of strings, allowing a single passage and a prepared collection to use the same endpoint. The JSON result includes data[].embedding and data[].index, plus the selected model and usage.

For a knowledge collection, divide source documents into passages that preserve the definitions and context needed by a later reader. Maintain document IDs in your application and match each vector to its submitted position. A search workflow can encode the user’s query with the same model and retain the source passage beside any retrieved result.

Save the complete synchronous response before committing the vectors to storage. Check the input-to-index mapping, preserve all returned vectors and keep usage with the operation. Using the exact model identity for saved embeddings makes it clear which collection and query representation belong together.

Ailoot Ultra · Embeddings POST /v1/embeddings Baichuan-Text-Embedding

Baichuan-Text-Embedding

Other /Baichuan-Text-Embedding

Overview

Baichuan-Text-Embedding returns numerical vectors for supplied text through Ailoot’s embeddings API. Send one passage or a list and retain the response indices when building a searchable collection.

Accepted inputs
Text
Results
embedding

Available in Ailoot · inputs & methods

Ailoot Ultra · Embeddings POST /v1/embeddings
Input types
text
Output types
embedding
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
Baichuan-Text-Embedding
Conditions: Use this exact Ailoot routing selector.
Default—
FieldinputTypestring or array<string>RequirementRequiredValues & limits
Conditions:
Default—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, input
ParameteroptionalContract
Parametermaterial_typesContracttext
ParameterconditionsContractUse this exact Ailoot routing selector.

Lifecycle: synchronous_json

Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode
Not specified When fast mode is selected
Flex mode
Not specified When flex mode is selected
Maximum reasoning effort
Not specified When maximum reasoning effort uses the default adjustment

Ailoot rates

Prices by configuration

ConfigurationRate scheduleCharge
ConfigurationBase token ratesRate scheduleBase rateCharge
Input · Input tokens $0.00016 / 1K tokens
Output · Output tokens $0 / 1K tokens
Input · Cache read — / 1K tokens
Input · Cache write — / 1K tokens
Input · Cache write, 1 hour — / 1K tokens

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →

Example requests

Ailoot Ultra · Embeddings

curl · create once and retain the complete result
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "Baichuan-Text-Embedding", "input": "The quick brown fox jumps over the lazy dog"}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/embeddings \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.

Receive and save results

Aliases

Model aliases

Ailoot Ultra Baichuan-Text-Embedding

Method path aliases

Use the method paths shown above.

Related caller IDs

Baichuan-Text-Embedding

FAQ · Baichuan-Text-Embedding
What inputs and results are available?

POST /v1/embeddings · Baichuan-Text-Embedding: text → embedding

Which fields does the request use?

POST /v1/embeddings · Baichuan-Text-Embedding: model, input

More details

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription
Choose a discounted plan for your regular requests.
Promo code: up to 50% off
Enter your code at checkout. The price updates to reflect the current promotion.
Spending in your history
The model, tokens and amount are recorded for each request.

Choose a subscription · View model prices

Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application
Add text, image, video and audio generation to paid features in your service.
Reseller licence
Send a description of your project and how you provide access. Request written terms for use and resale.
Documents on the website
The service offer, licence agreement and data processing policy are available before you connect.

Request a reseller licence · Service offer and licence agreement