Documentation Index
Fetch the complete documentation index at: https://docs.foxapi.cc/llms.txt
Use this file to discover all available pages before exploring further.
Add the following to your request headers:
Authorization: Bearer YOUR_API_KEY
Embedding model name, e.g. gemini-embedding-2-preview
"gemini-embedding-2-preview"
The content to embed
Embedding task type, which affects the optimization direction of the embedding vector. Note: gemini-embedding-2-preview does not support this field; that model uses a prompt prefix approach to specify task types (e.g. task: search result | query: {content})
RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY, CLASSIFICATION, CLUSTERING, QUESTION_ANSWERING, FACT_VERIFICATION, CODE_RETRIEVAL_QUERY Document title, only effective when taskType is RETRIEVAL_DOCUMENT
Output vector dimensionality, used for dimensionality reduction. Default 3072
Embedding response
Embedding result