POST
/v1/embeddingsEmbeddings
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
| Name | Type | Description |
|---|---|---|
| model* | string | Embedding model (e.g. "text-embedding-3-small"). |
| input* | string | string[] | Single string or array of strings. |
| FC-Customer | header | Optional attribution. |
Response fields
| Name | Type | Description |
|---|---|---|
| data | array | Array of { embedding, index, object }. |
| usage | object | Token usage. |
Errors
- 401
invalid_api_key, Missing or revoked key. - 429
rate_limited, Rate ceiling hit.
See the full error reference.