Skip to main content
POST
/
api
/
embeddings
Embeddings
curl --request POST \
  --url https://api.ajstudioz.co.in/api/embeddings \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "options": {}
}
'
{
  "embedding": [0.1284, -0.4321, 0.8901, 0.2345, -0.6789, 0.1234, 0.5678, -0.3456, 0.7890, 0.4567, "..."]
}

Documentation Index

Fetch the complete documentation index at: https://student-213fb9fc.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Generate a vector embedding for a given text input. Compatible with Ollama’s POST /api/embeddings format.

Request

Headers

Authorization
string
required
Bearer token: Bearer YOUR_API_KEY

Body

model
string
required
The model to use for generating embeddings. Recommended: gemma3:4b, gemma3:12b.
prompt
string
required
The text to generate embeddings for.
options
object
Optional model parameters (e.g., temperature).

Response

embedding
array
The vector embedding as an array of floating point numbers. Dimensionality depends on the model.

Example

curl https://api.ajstudioz.co.in/api/embeddings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma3:4b",
    "prompt": "AJ STUDIOZ Cloud Infra provides frontier AI inference"
  }'
{
  "embedding": [0.1284, -0.4321, 0.8901, 0.2345, -0.6789, 0.1234, 0.5678, -0.3456, 0.7890, 0.4567, "..."]
}