Gengxi API Developer Docs

Embeddings

Create vector embeddings with a supported model using POST /v1/embeddings.

Create embeddings

bashCopy
curl https://api.gengxi.ai/v1/embeddings \
  -H "Authorization: Bearer $GENGXI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"YOUR_EMBEDDING_MODEL","input":"Text to embed"}'

Request input

Input may be a string or a compatible array, depending on the selected model. Use a model returned for your key and follow its supported dimensions and input limits.

Availability