English

Embeddings API

Convert text or token sequences into vectors and pay for input tokens.

Embeddings API

Estimate the balance hold

curl "https://api.apimodel.store/v1/embeddings/quotes" \
  -H "Authorization: Bearer $MODELPORT_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"text-embedding-3-small","input":["Product catalog","Order tracking"],"dimensions":256}'

Create embeddings

curl "https://api.apimodel.store/v1/embeddings" \
  -H "Authorization: Bearer $MODELPORT_API_KEY" \
  -H "Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"text-embedding-3-small","input":["Product catalog","Order tracking"],"dimensions":256}'

Send text or token sequences, singly or in a batch of up to 32 items and 32,768 total vector elements. Choose float or base64 for encoding_format. Charges use upstream input-token usage. Use X-ModelPort-Request-Id to look up billing.