API 문서

Cursor·에이전트·스크립트에서 쓰는 OpenAI 호환 API예요. 주소와 키만 맞추면 됩니다.

기계가 읽기 좋은 원본: /LLMS_API.md

엔드포인트

POST https://llms.goodtek.xyz/v1/chat/completions
Authorization: Bearer sk-gt-…
Content-Type: application/json

익숙한 OpenAI Chat Completions 형식이에요. Claude·Codex처럼 연결해 둔 계정에 Base URL 하나로 호출하면 됩니다.

최소 요청

{
  "model": "gpt-5.4-mini",
  "messages": [
    {"role": "system", "content": "You are helpful."},
    {"role": "user", "content": "Hello"}
  ],
  "stream": true
}

도구

별도 검색/이미지 API는 없습니다. OpenAI처럼 같은 chat/completions 요청의 tools에 function tool로 넣으면 됩니다. 모델·계정이 지원하면 llms가 호스티드 웹 검색·이미지로 연결해 줘요.

클라이언트 함수동작
web_search지원되면 웹 검색
generate_image지원되면 이미지 생성
other functions클라이언트가 직접 실행하도록 전달

선택 llms 힌트

{
  "llms": {
    "web_search": {"mode": "live"},
    "session_key": "thread-abc"
  }
}

응답

기본은 OpenAI chat completion 형식이에요. 필요하면 llms 확장(account_id, provider, hosted_tools)도 붙습니다.

디스커버리