> ## 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 네이티브 API

> Gemini Generate Content와 Google Gen AI SDK에서 OmniaKey를 사용합니다.

Gemini 네이티브 요청에는 이 원시 HTTP Base URL을 사용하세요.

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

## Generate Content

모델 ID는 URL 경로의 일부입니다.

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

```bash cURL 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."}]}]
  }'
```

```python Python theme={null}
from google import genai
from google.genai import types

client = genai.Client(
    api_key="your-omniakey-api-key",
    http_options=types.HttpOptions(base_url="https://api.omniakey.com"),
)

response = client.models.generate_content(
    model="gemini-3.1-pro-preview",
    contents="Refactor this function for readability.",
)

print(response.text)
```

> [!NOTE]
>
> Google Gen AI SDK는 기본적으로 Gemini `v1beta` API 버전을 사용하므로 SDK 예제에서는
> `base_url`에 호스트만 지정합니다. 원시 HTTP 호출은 URL 경로에 `/v1beta`를 포함합니다.

## 모델 목록

Gemini 네이티브 모델 검색에는 `GET /v1beta/models`를 사용하세요. 사람이 읽는 엄선 카탈로그는
[지원 모델](https://docs.omniakey.com/ko/models.md)을 참고하세요.

## OpenAI 호환 도구로 Gemini 모델 사용하기

도구가 OpenAI 호환 엔드포인트만 지원한다면 `https://api.omniakey.com/v1`을 사용하고
Chat Completions에 `gemini-3.1-pro-preview` 같은 Gemini 모델 ID를 전달하세요.


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