POST/v1/embeddings

Embeddings

Vector embeddings for one or more strings.

Request
HTTP
POST
URL
/v1/embeddings
Auth
api_key
Try it
curl https://api.fightclub.pro/v1/embeddings \
  -H "Authorization: Bearer $FC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"text-embedding-3-small","input":"Hello"}'

Parameters

NameTypeDescription
model*stringEmbedding model (e.g. "text-embedding-3-small").
input*string | string[]Single string or array of strings.
FC-CustomerheaderOptional attribution.

Response fields

NameTypeDescription
dataarrayArray of { embedding, index, object }.
usageobjectToken usage.

Errors

  • 401invalid_api_key, Missing or revoked key.
  • 429rate_limited, Rate ceiling hit.

See the full error reference.

Examples