Embeddings
Embeddings endpoints
Create embeddings
Creates an embedding vector representing the input text. Compatible with OpenAI's embeddings API.
Authorization<token>
API key for authentication. Use 'Bearer ' format.
In: header
inputstring | array<string> | array<number> | array<array<number>>
Array of texts to embed
Array of token arrays
Array of multiple token arrays
model?string
ID of the model to use (optional, not used in implementation)
encoding_format?string
The format to return the embeddings in
Default
"float"
Value in
"float" | "base64" | "bob"
dimensions?integer
The number of dimensions the resulting output embeddings should have
Range
1 <= value
user?string
A unique identifier representing your end-user
Response Body
curl -X POST "https://app.meingpt.com/api/openai/v1/embeddings" \ -H "Content-Type: application/json" \ -d '{ "input": "string" }'
{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [
0
],
"index": 0
}
],
"model": "string",
"usage": {
"prompt_tokens": 0,
"total_tokens": 0
}
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}