Endpoint coverage
Exposes 1 public endpoint(s): response.
Newest Grok with 500K context, xhigh reasoning, image understanding, and function tools
curl -X POST https://runapi.ai/v1/responses \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [
{
"role": "user",
"content": "Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."
}
]
}'
import { GrokClient } from "@runapi.ai/grok";
const client = new GrokClient();
const result = await client.response.run({
model: "grok-4.7",
messages: [{"role":"user","content":"Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."}],
});
import os
import requests
response = requests.post(
"https://runapi.ai/v1/responses",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"grok-4.7","messages":[{"role":"user","content":"Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."}]}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/v1/responses");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'grok-4.7',
'messages' => [['role' => 'user', 'content' => 'Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each.']],
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.response().run({"model":"grok-4.7","messages":[{"role":"user","content":"Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."}]});
task.waitForResult();
require "runapi/grok"
client = RunApi::Grok::Client.new
result = client.response.run(
model: "grok-4.7",
messages: [{role: "user", content: "Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."}]
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.response.Run({"model":"grok-4.7","messages":[{"role":"user","content":"Review this rollout plan, identify the three highest-risk assumptions, and return a concise mitigation for each."}]})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model grok-4.7 \
--endpoint response \
--wait
5 versions available
Pick any model and generate in seconds.
| Provider | xAI |
| Model ID | grok-4.7 |
| Modality | Text |
| Task types | Synchronous |
| API endpoint | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/grok-4.7:generateContent | |
| /v1beta/models/grok-4.7:streamGenerateContent | |
| Billing unit | 1K tokens |
| Catalog status | Operational |
Sign up for free and create an API key for grok-4.7 from the dashboard.
POST to /v1/responses with the grok-4.7 model slug and your parameters.
Read the completed grok-4.7 response directly from the endpoint.
Exposes 1 public endpoint(s): response.
Metered by 1K tokens with no subscription requirement.
No request parameters are published for this endpoint.
Answer customer questions from a private knowledge base, reducing ticket volume.
Draft contract summaries and flag key clauses for attorney review.
Auto-generate unit tests, code reviews, and refactoring suggestions in CI.
Verified customer feedback is not available for this model yet.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us