Embeddings
Embeddings endpoints
post
https://app.meingpt.com/api/openai/v1/embeddingsCreate embeddings
Creates an embedding vector representing the input text. Compatible with OpenAI's embeddings API.
🔒 ApiKeyAuth
Parameter
| Parameter | In | Typ | Beschreibung |
|---|---|---|---|
| Authorization* | header | string | API key for authentication. Use 'Bearer <your-api-key>' format. |
Request Body · application/json
| Feld | Typ | Beschreibung |
|---|---|---|
| input* | string | Array<string> | Array<number> | Array<Array<number>> | |
| model | string | ID of the model to use (optional, not used in implementation) |
| encoding_format | "float" | "base64" | "bob" | The format to return the embeddings in |
| dimensions | integer | The number of dimensions the resulting output embeddings should have |
| user | string | A unique identifier representing your end-user |
Responses
200Successful response
| Feld | Typ | Beschreibung |
|---|---|---|
| object | string | |
| data | Array<object> | |
| model | string | The model used to generate the embeddings |
| usage | object |
400Bad request - invalid input
| Feld | Typ | Beschreibung |
|---|---|---|
| status | string | |
| message | string |
401Unauthorized - missing or invalid API key
| Feld | Typ | Beschreibung |
|---|---|---|
| status | string | |
| message | string |
403Forbidden - completions API not enabled for organization
| Feld | Typ | Beschreibung |
|---|---|---|
| status | string | |
| message | string |
500Internal server error
| Feld | Typ | Beschreibung |
|---|---|---|
| status | string | |
| message | string |
Was this page helpful?