> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GTE Base

> 768-dimension general text embeddings from Alibaba's Tongyi lab, trained on a broader mixture than BGE and often a point or two ahead of it on out-of-domain retrieval. Same size and same price as bge-base-en, so the choice is which one your corpus likes.

## Overview

768-dimension general text embeddings from Alibaba's Tongyi lab, trained on a broader mixture than BGE and often a point or two ahead of it on out-of-domain retrieval. Same size and same price as bge-base-en, so the choice is which one your corpus likes.

## Specs

| Field | Value |
| - | - |
| Model ID | `gte-base` |
| Best for | Out-of-domain English retrieval |
| Context window | 512 |
| Input modalities | Text |
| Output modalities | Text |
| Speed | Fast |
| Cost band | Cheap |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$0.00675 |
| Output | \$0.00 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.embeddings.create(
    model="gte-base",
    input=["first document", "second document"],
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=search-documents&quality_tier=strong"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.