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

# Gemini-native API

> Usa OmniaKey con Gemini Generate Content y Google Gen AI SDKs.

Las solicitudes HTTP directas usan:

```text theme={null}
https://api.omniakey.com/v1beta
```

## Generate Content

```text theme={null}
POST /v1beta/models/{model}:generateContent
```

```bash theme={null}
curl "https://api.omniakey.com/v1beta/models/gemini-3.1-pro-preview:generateContent" \
  -H "Authorization: Bearer your-omniakey-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"parts": [{"text": "Refactor this function for readability."}]}]
  }'
```

<Note>
  Google Gen AI SDKs normalmente usan Gemini `v1beta` por defecto. Los ejemplos
  de SDK usan el host sin sufijo `https://api.omniakey.com` como `base_url`; las
  llamadas HTTP directas incluyen `/v1beta` en la URL.
</Note>

## Models

Usa `GET /v1beta/models` para descubrimiento Gemini-native. Para el catálogo
legible, consulta [Supported Models](/es/models).
