WebsitePlatform Login

Embeddings

Embeddings-Endpunkte

POST/openai/v1/embeddings

Authorization

ApiKeyAuth
Authorization<token>

API-Schlüssel zur Authentifizierung. Verwenden Sie das Format 'Bearer <Ihr-API-Schlüssel>'.

In: header

Request Body

application/json

input*|array<>|array<>|array<array<>>
model?string

ID des zu verwendenden Modells (optional, wird in der Implementierung nicht verwendet)

encoding_format?string

Das Format, in dem die Embeddings zurückgegeben werden

Default"float"
Value in"float" | "base64" | "bob"
dimensions?integer

Die Anzahl der Dimensionen der resultierenden Embeddings

Range1 <= value
user?string

Eine eindeutige Kennung für Ihren Endbenutzer

Response Body

application/json

application/json

application/json

application/json

application/json

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"
}