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-EmbeddingOverview
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
| Field | Type | Requirement | Values & limits | Default |
|---|---|---|---|---|
Fieldmodel | Typestring | RequirementRequired | Values & limits Baichuan-Text-Embedding Conditions: Use this exact Ailoot routing selector. | Default— |
Fieldinput | Typestring or array<string> | RequirementRequired | Values & limits Conditions: | Default— |
Method parameters and lifecycle
| Parameter | Contract |
|---|---|
Parametercontent_type | Contractapplication/json |
Parameterrequired | Contractmodel, input |
Parameteroptional | Contract |
Parametermaterial_types | Contracttext |
Parameterconditions | ContractUse 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
| Configuration | Rate schedule | Charge |
|---|---|---|
| ConfigurationBase token rates | Rate scheduleBase rate | Charge 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
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
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