models

voyage-law-2

Markdown · JSON

voyage-law-2

Legal-domain text embeddings for finding relevant clauses or passages through a text-to-vector route.

About the model

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

voyage-law-2 is Voyage’s legal-domain embedding model. Choose it for a clause-retrieval index, such as finding agreement passages related to a question about termination rights. It produces numerical representations for similarity search rather than a legal opinion or a prose answer.

Ailoot’s /v1/embeddings request accepts one text string or a string array through input. The response returns indexed vectors; keep each vector with the original clause number and document reference. The compact route exposes model and input only: Voyage’s upstream input_type query/document selector is not a declared parameter here. Use a consistent preparation convention and this exact model for indexed passages and queries. The application performs the actual search and presents the retrieved wording for review.

Ailoot Ultra · Embeddings POST /v1/embeddings voyage-law-2

voyage-law-2

Other /voyage-law-2

Overview

Legal-domain text embeddings for finding relevant clauses or passages through a text-to-vector route.

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
voyage-law-2
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.00024 / 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": "voyage-law-2", "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 voyage-law-2

Method path aliases

Use the method paths shown above.

Related caller IDs

voyage-law-2

FAQ · voyage-law-2
What inputs and results are available?

POST /v1/embeddings · voyage-law-2: text → embedding

Which fields does the request use?

POST /v1/embeddings · voyage-law-2: 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