OpenAI-Compatible API
Embeddings (OpenAI)
Generate text embeddings via the OpenAI-compatible endpoint
POST
Embeddings (OpenAI)
Documentation Index
Fetch the complete documentation index at: https://student-213fb9fc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Generate vector embeddings for a given input text, fully compatible with the OpenAI/v1/embeddings format. Use with tools like LangChain, LlamaIndex, or any RAG pipeline.
Request
Headers
Bearer token:
Bearer YOUR_API_KEYBody
Model to use. Recommended embedding models:
gemma3:4b, gemma3:12b.Text to embed. Can be a single string or array of strings for batch embedding.
Format for the returned embeddings. Options:
"float" or "base64".Response
"list"Array of embedding objects:
object—"embedding"index— index of the inputembedding— the vector as an array of floats
The model used.
Token counts:
prompt_tokens, total_tokens.