Bamboo Relay
AI model APIEmbeddings

Native Gemini format

Create embeddings with the specified engine or model

POST
/v1/engines/{model}/embeddings

Authorization

BearerAuth
AuthorizationBearer <token>

Authenticate with a Bearer token: Authorization: Bearer sk-xxxxxx.

In: header

Path Parameters

model*string

Model or engine ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/engines/string/embeddings" \  -H "Content-Type: application/json" \  -d '{    "model": "text-embedding-ada-002",    "input": "string"  }'
{  "object": "list",  "data": [    {      "object": "embedding",      "index": 0,      "embedding": [        0      ]    }  ],  "model": "string",  "usage": {    "prompt_tokens": 0,    "total_tokens": 0  }}