Embed

Turn text into 1024-d vectors for semantic search, clustering or RAG.

$0.0010 per call POST /v1/tools/embed Runs a model

Call it

The first response is 402 with the exact price and every rail you can pay with. Pay, repeat the request with the proof, and you get the result.

curl -X POST https://api.glianalabs.com/v1/tools/embed \
  -H 'content-type: application/json' \
  -d '{"texts":["harga tiket kereta ke Bandung","train ticket price to Bandung"]}'

When to use it

Use when an agent builds or queries a vector index, or measures how close two pieces of text are in meaning. Inputs: texts (array, max 100 items, each up to 32,000 chars). Returns model, count, dimensions, embeddings[][]. Multilingual — Indonesian and English embed into the same space, so a query in one finds documents in the other.

What it costs

$0.0010 per successful call — flat, with no plan, minimum or monthly fee. A call that fails validation is refused before it runs, so it is never charged.

Not sure this is the right endpoint? GET /v1/consult?intent=… is free and answers that.