CN8 is an AI gateway: a single proxy layer that gives you access to AI capabilities — chatbots with RAG, multi-agent orchestration, LLM completions, dubbing, TTS, media generation, and production-grade video/audio processing — all through one consistent API with unified auth, billing, and usage tracking.
Text Embeddings
text-embeddings
Encode texts into 384-dimensional vectors. Always a list of vectors, with per-request pricing.
POST {texts: [...]}. The response is {embeddings: [[...384 floats...], ...], dimensions: 384, model}. Cost is per request, not per text.
POST/v1/proxy/text-embeddings
Generate text embeddings (synchronous)
Parameters
Name
Type
Required
Description
texts
array<string>
required
The texts to embed.
curl -X POST https://api.cn8.io/v1/proxy/text-embeddings \
-H "X-API-Key: <cn8_api_key>" \
-H "Content-Type: application/json" \
-d '{"texts":["your text here"]}'