Grok 4.7 Chat
Send a message to start chatting with Grok 4.7.
Each reply is billed per token at the official price. The cost shown is an estimate; the exact charge appears in your usage history.
Grok 4.7 API Implementation Guide
Get API Key
Generate your API key from the dashboard and set it as an environment variable.
export MODELHUNTER_KEY="your_api_key"Make Your First Call
Follow the API documentation for complete code examples in cURL, JavaScript, and Python, including request format, polling, and error handling.
View API Documentation →Grok 4.7 Key Info
Capabilities
- Chat
Pricing
Price per 1M tokens
| Input | Output | Cached input |
|---|---|---|
| $2/1M tokens | $6/1M tokens | $0.5/1M tokens |
Billed per token at the official price: input, output (including reasoning) and cached input, per 1M tokens.
Use Cases
Output Formats
Grok 4.7 API Documentation
Run the playground first, then open the full API docs for integration details.
About
OpenAI Responses API (POST /v1/responses): use the official OpenAI SDK with our base URL.
Code Examples
1curl https://api.modelhunter.ai/api/v1/responses \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "grok-4-7",6"input": "Hello!"7}'
Schema
View Full API DocsInput
modelModel ID for this capability.
Value: grok-4-7
inputA prompt string or a list of input items.
instructionsSystem instructions.
max_output_tokensMaximum output tokens (including reasoning).
Range: 1 to 128000
temperatureSampling temperature.
Range: 0 to 2
streamStream the response as server-sent events.
Default: false
The response follows the native format of this endpoint (Anthropic Messages, OpenAI Responses or OpenAI Chat Completions), including streaming events. See the full API docs for details.