xAI
Grok 4.20
답하기 전에 생각해요
x-ai/grok-4.20100만 토큰 가격
- 입력
- $1.25
- 출력
- $2.50
코드에서 쓰기
from openai import OpenAI
client = OpenAI(
base_url="https://alprouter.alpsoft.io/api/v1",
api_key="alp-내-키",
)
answer = client.chat.completions.create(
model="x-ai/grok-4.20",
messages=[{"role": "user", "content": "안녕하세요"}],
)
print(answer.choices[0].message.content)자세한 정보
- 한 번에 넣을 수 있는 입력
- 20만 토큰
- 제공 종료 예정
- 2027.04.06 (공급사가 정한 날이에요)
- 한 번에 만들 수 있는 출력
- 6.4만 토큰
- 도구 호출
- 쓸 수 있어요
- 보낼 수 있는 것
- 글, 이미지
- 받을 수 있는 것
- 글
- 공급사
- Microsoft Foundry
- 쓸 수 있는 옵션
- max_completion_tokens, max_tokens, parallel_tool_calls, reasoning_effort, response_format, seed, stop, stream, temperature, tool_choice, tools, top_p