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

# OpenAI 호환 API

> OpenAI 호환 Chat Completions, Responses, 모델 목록 엔드포인트로 OmniaKey를 사용합니다.

OpenAI SDK, Cursor, Codex, Cline, aider, 기타 직접 만든 도구에는 OpenAI 호환 Base URL을
사용하세요.

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

## Chat Completions

`POST /v1/chat/completions`는 가장 이식성이 높은 엔드포인트입니다. 지원되는 Claude, GPT,
Gemini, Grok 모델을 ID로 호출할 수 있습니다.

```bash cURL theme={null}
curl https://api.omniakey.com/v1/chat/completions \
  -H "Authorization: Bearer your-omniakey-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4-8",
    "messages": [{"role": "user", "content": "Refactor this function for readability."}]
  }'
```

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

client = OpenAI(
    api_key="your-omniakey-api-key",
    base_url="https://api.omniakey.com/v1",
)

response = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Refactor this function for readability."}],
)

print(response.choices[0].message.content)
```

```typescript TypeScript theme={null}
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "your-omniakey-api-key",
  baseURL: "https://api.omniakey.com/v1",
});

const response = await client.chat.completions.create({
  model: "claude-opus-4-8",
  messages: [{ role: "user", content: "Refactor this function for readability." }],
});

console.log(response.choices[0].message.content);
```

## Responses

`POST /v1/responses`는 OpenAI의 새로운 Responses 형식을 따르며 GPT 모델을 제공합니다.
Codex 스타일 GPT 워크플로에 사용하세요. Claude, Gemini, Grok은 도구가 명시적으로 다른
프로토콜을 요구하지 않는 한 Chat Completions를 사용하세요.

```bash theme={null}
curl https://api.omniakey.com/v1/responses \
  -H "Authorization: Bearer your-omniakey-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.5",
    "input": "Refactor this function for readability."
  }'
```

`POST /v1/responses/compact`는 Responses 압축 경로(Codex 스타일 컨텍스트 압축 흐름 포함)를
호출하는 클라이언트에서 사용할 수 있습니다.

## 모델 목록

OpenAI 호환 모델 목록은 `GET /v1/models`를 사용하세요. 사람이 읽는 카탈로그는
[지원 모델](https://docs.omniakey.com/ko/models.md)을 참고하세요.


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