> ## 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

> Как использовать OmniaKey с Gemini Generate Content и Google Gen AI SDKs.

Для raw HTTP requests используйте:

```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 обычно по умолчанию используют Gemini `v1beta`, поэтому в
  SDK-примерах Base URL задаётся как host `https://api.omniakey.com` без
  суффикса. В raw HTTP URL суффикс `/v1beta` указывается явно.
</Note>

## Models

Для Gemini-native model discovery используйте `GET /v1beta/models`. Читаемый
каталог моделей есть на странице [Поддерживаемые модели](/ru/models).
