Skip to content

Getting started

The TensorTensor API has two operations on the build resource: submit a job, and check status.

All requests authenticate with your API key in the X-TensorTensor-API-Key: <key> header. Get a key at app.tensortensor.com.

POST https://api.tensortensor.com/api/v1/build

Body

FieldTypeRequiredNotes
emailstringyesWhere the completion link is sent.
vectorsUrlstringyesPublicly reachable HTTPS URL to a float32 vector file.
dimensionsnumberyesOne of 768, 1024, 1536.

Example

Terminal window
curl -X POST https://api.tensortensor.com/api/v1/build \
-H "X-TensorTensor-API-Key: key-xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"email": "you@example.com",
"vectorsUrl": "https://your.cdn/vectors.bin",
"dimensions": 768
}'

If you don’t have a vectors file yet, a 1k x 768d sample is hosted publicly at https://raw.githubusercontent.com/TensorTensorCom/examples/main/data/sample-1k-768d.bin (use dimensions: 768).

Response

{
"data": {
"jobId": "bld_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "received"
}
}

GET https://api.tensortensor.com/api/v1/build/:jobId

Example

Terminal window
curl https://api.tensortensor.com/api/v1/build/bld_xxx \
-H "X-TensorTensor-API-Key: key-xxxxxxxxxxxx"

Response (in progress)

{
"data": [{
"jobId": "bld_xxx",
"status": "queued",
"submittedAt": "2026-04-26T18:46:16.000Z"
}]
}

Response (complete)

{
"data": [{
"jobId": "bld_xxx",
"status": "complete",
"submittedAt": "2026-04-26T18:46:16.000Z",
"completedAt": "2026-04-26T19:14:02.000Z",
"downloadUrl": "https://...hnsw",
"vectors": 100000,
"dimensions": 768,
"fileSize": 524288000,
"memoryRequired": 629145600
}]
}

When status is complete, use downloadUrl to fetch the HNSW file. See Loading your index.

StatusMeaning
receivedJob accepted, queued for intake.
validatingURL is being checked for reachability and integrity.
queuedValidated, waiting for a GPU build slot.
buildingIndex is being built on a GPU.
builtIndex built, finalizing (uploading, sending email).
completeDone. downloadUrl is set.
failedJob failed. error is set.