빠른 답변
- Supports Chat Completions for low-friction SDK migration.
- Supports streaming and tool-calling for agent workflows.
- Stabilize system/messages parameters before production rollout.
주요 파라미터
- model | string | 필수 | grok-4.5 | - | Exact model identifier from ToAPIs.
- messages | object[] | 필수 | - | - | Conversation messages in chronological order.
- max_tokens | integer | 필수 | - | >=1 | Maximum output tokens.
- stream | boolean | 선택 | false | - | Enable SSE streaming output.
- tools | object[] | 선택 | - | - | Tool/function definitions for tool-calling.
자주 발생하는 오류
- 400 invalid_request_error: 발생 조건=Missing fields or invalid payload types.; 해결=Validate model/messages/max_tokens schema.; 재시도=Retry only after payload fix.
- 401 authentication_error: 발생 조건=Missing or invalid API key.; 해결=Verify Authorization header and key scope.; 재시도=Retry after authentication fix.







