Grok 4.6 API

Grok 4.6 is xAI's multimodal chat and reasoning model with function calling, structured outputs, adjustable reasoning effort (low/medium/high/xhigh), and a 500K-token context window.

실행 전에 공개 가격과 옵션을 확인하세요.

공개 ID: grok-4-6

모델 유형: 채팅

추론 도구 호출 비전 코드 최적화 구조화된 출력

가격

변동 가격 · 실제 사용량으로 과금하며 실행 전에 가격을 확인하세요

모델 사양

모델 유형
채팅 / 이미지
컨텍스트 창(토큰)
500000
최대 출력(토큰)
200000
추론
지원
도구 호출
지원
비전
지원
코드 최적화
지원
구조화된 출력
지원

개인정보 보호

알 수 없음

알 수 없음은 서비스 전체에 대해 검증된 보장이 게시되지 않았음을 뜻합니다. 검열 없음은 모든 요청의 성공을 보장하지 않습니다.

빠른 시작

API 키로 조회한 목록에 이 모델이 있는지 확인한 후, 해당 기능의 문서에 있는 입력 옵션을 살펴보세요.

GLOOP_API_BASE에 API 주소를, GLOOP_API_KEY에 서버 측 키를 설정하세요.

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/chat/completions" \
  -H "Authorization: Bearer $GLOOP_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "grok-4-6"
}'

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/chat/completions"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n  \"messages\": [\n    {\n      \"content\": \"Hello\",\n      \"role\": \"user\"\n    }\n  ],\n  \"model\": \"grok-4-6\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/chat/completions";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
  "messages": [
    {
      "content": "Hello",
      "role": "user"
    }
  ],
  "model": "grok-4-6"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

실행 전에 모델 접근 권한과 요금을 확인하세요. 예제를 복사해도 API가 호출되지 않습니다.

API 가이드 보기 · 모델 조회 · SDK 연동 · 요금 청구

자주 묻는 질문

Grok 4.6 — 어떤 모델 ID를 사용해야 하나요?

grok-4-6

Grok 4.6 — 이 모델의 요금은 어떻게 계산되나요?

실행 전에 공개 가격과 옵션을 확인하세요.

Grok 4.6 — 지원하는 API 엔드포인트는 무엇인가요?

/v1/chat/completions

Grok 4.6 — 컨텍스트 창 크기는 얼마인가요?

500000 토큰

같은 카테고리의 모델

모든 모델