Loading API Reference...
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.
Encode texts into 384-dim float vectors. Batch-shaped output, per-request pricing.
POST {texts: [...]}. Response is {embeddings: [[...384 floats...], ...], dimensions: 384, model}. Cost is per request, not per text.
/v1/proxy/text-embeddingsGenerate text embeddings (sync)
| Name | Type | Required | Description |
|---|---|---|---|
texts | array<string> | required | Array of texts to embed |
{
"status": "success",
"data": {
"embeddings": [
[-0.0344, 0.0310, "...384 floats..."]
],
"dimensions": 384,
"model": "unknown"
}
}
Pricing is $0.002 per REQUEST regardless of batch size. Send as many texts per call as your payload allows.