Grok 4.7
Grok 4.7 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Explore Grok 4.7 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses through the unified API. Supported interfaces and current availability are shown below.
- OpenAI-style Chat Completions
- Anthropic-style Messages
- OpenAI-style Responses
Model details
- Context window
- 500K tokens
- Max output
- —
- Input
- Text, images
- Output
- Text
- Capabilities
- Reasoning, Vision, Tool calling, Streaming, JSON output
- Interfaces
- OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses
Pricing
Prices use the units shown below. No gateway fees. Usage, size and model options may affect the total.
| Metric | Price |
|---|---|
| / 1M input tokens | $2 |
| / 1M output tokens | $6 |
| / 1M cached input tokens | $0.5 |
| / content review | $0.05 |
| / 1M input tokens · Up to 200K input tokens | $2 |
| / 1M output tokens · Up to 200K input tokens | $6 |
| / 1M cached input tokens · Up to 200K input tokens | $0.5 |
| / 1M input tokens · Above 200K input tokens | $4 |
| / 1M output tokens · Above 200K input tokens | $12 |
| / 1M cached input tokens · Above 200K input tokens | $1 |
Why teams pick it
- Grok 4.7 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.
Call Grok 4.7
Grok 4.7 answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-7",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-7",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
-H "Authorization: Bearer ckr_..." \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-7",
"input": "Hello"
}'Conversation compaction is also available at POST /v1/responses/compact.
More from xAI
Grok 4Grok 4 for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$3 / 1M input tokens · $15 / 1M output tokens · See all rates on the model pageGrok 4.1 Fast ReasoningGrok 4.1 Fast Reasoning for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$0.2 / 1M input tokens · $0.5 / 1M output tokens · See all rates on the model pageGrok 4.20 Beta Non-Reasoning (0309)Grok 4.20 Beta Non-Reasoning (0309) for OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses.$2 / 1M input tokens · $6 / 1M output tokens · See all rates on the model page