---
title: grok-4.7 API — Grok Pricing & Specs | RunAPI
description: Use grok-4.7 via RunAPI — the Grok family. Per-call pricing, model ID, specs, and developer setup guide.
url: https://runapi.ai/models/grok/4.7.md
canonical: https://runapi.ai/models/grok/4.7
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/models/grok/4.7
  zh-CN: https://runapi.ai/zh-CN/models/grok/4.7
  es: https://runapi.ai/es/models/grok/4.7
  ja: https://runapi.ai/ja/models/grok/4.7
  de: https://runapi.ai/de/models/grok/4.7
  fr: https://runapi.ai/fr/models/grok/4.7
  pt-BR: https://runapi.ai/pt-BR/models/grok/4.7
  ko: https://runapi.ai/ko/models/grok/4.7
  it: https://runapi.ai/it/models/grok/4.7
  nl: https://runapi.ai/nl/models/grok/4.7
  pl: https://runapi.ai/pl/models/grok/4.7
  tr: https://runapi.ai/tr/models/grok/4.7
  zh-TW: https://runapi.ai/zh-TW/models/grok/4.7
  zh-HK: https://runapi.ai/zh-HK/models/grok/4.7
  ar: https://runapi.ai/ar/models/grok/4.7
  x-default: https://runapi.ai/models/grok/4.7
model: Grok
provider: xAI
variant_id: grok-4.7
sdk_model_id: grok-4.7
modality: text
billing_unit: 1K tokens
status: active
---

> HTML version: https://runapi.ai/models/grok/4.7
> Site index for agents: https://runapi.ai/llms.txt


# grok-4.7 API

Use grok-4.7 from the Grok family via RunAPI. Per-call pricing, no subscription, and failed generations are never charged.

**xAI / [Grok](https://runapi.ai/models/grok.md)**
**Operational · text · Commercial OK**

<!-- catalog-model-detail-slot: model-playground -->

## Try Grok 4.7

Pick any model and generate in seconds.


**Model:**
- **Response** — `response` · `grok-4.7` · Input $1.60-$3.20 / 1M tokens | Output $4.80-$9.60 / 1M tokens

**Prompt:** Describe what you want to create...

**Estimated:** Input $1.60-$3.20 / 1M tokens | Output $4.80-$9.60 / 1M tokens

- [Generate](https://runapi.ai/login)
Sign in to generate with RunAPI.
<!-- /catalog-model-detail-slot: model-playground -->

### Switch variant

- [grok-4.20-0309-non-reasoning](https://runapi.ai/models/grok/4.20-0309-non-reasoning.md)
- [grok-4.3](https://runapi.ai/models/grok/4.3.md)
- [grok-4.5](https://runapi.ai/models/grok/4.5.md)
- [grok-4.6](https://runapi.ai/models/grok/4.6.md)
- **grok-4.7** (current)

5 versions available



grok-4.7 targets the sweet spot of quality and cost within the Grok family. It shares the same API key, request shape, and async task lifecycle as every other RunAPI model — switch to this variant by changing one model ID parameter. Install the Grok skill to load docs, typed schemas, pricing notes, and setup steps into your coding workspace. Billing is metered per completed request in USD with no subscription or minimum spend, and failed generations are never charged.

- Pay-per-call pricing in USD with no subscription
- Failed generations are never charged
- Streaming when supported by the model
- Model-specific request parameters and capability limits
- Switch variant by changing one model ID parameter
- Unified billing across all models and providers

## Usage metrics

- **API Calls / Day:** 18
- **Success Rate:** 94.4%
- **Avg Generation:** 8.4s

Verified customer feedback is not available for this model yet.



## Technical details

| Field | Value |
|---|---|
| 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 |



**HOW IT WORKS**

## Use This Model in 3 Steps

1. **Get Your Key** - Sign up for free and create an API key for grok-4.7 from the dashboard.
2. **Send a Request** - POST to /v1/responses with the grok-4.7 model slug and your parameters.
3. **Get Results** - Read the completed grok-4.7 response directly from the endpoint.



<!-- catalog-model-detail-slot: feature-cards -->

## What this model offers

- **Endpoint coverage** — Exposes 1 public endpoint(s): response.
- **Usage-based billing** — Metered by 1K tokens with no subscription requirement.
<!-- /catalog-model-detail-slot: feature-cards -->


## Grok 4.7 Pricing

| Endpoint | Resolution | Duration | Price |
|---|---|---|---|
| `response` | Not available | 1K tokens | Input: $1.60-$3.20 / 1M tokens<br>Output: $4.80-$9.60 / 1M tokens<br>Prompt < 200,001 · Input: $1.60 / 1M tokens<br>Prompt < 200,001 · Cached input: $0.40 / 1M tokens<br>Prompt < 200,001 · Output: $4.80 / 1M tokens<br>Prompt >= 200,001 · Input: $3.20 / 1M tokens<br>Prompt >= 200,001 · Cached input: $0.80 / 1M tokens<br>Prompt >= 200,001 · Output: $9.60 / 1M tokens |



**API REFERENCE**

## Endpoint Specification

| Field | Value |
|---|---|
| Endpoint | `POST /v1/responses` |
| Model ID | `grok-4.7` |
| Task Types | `response` |
| Max Duration | `Unavailable` |
| Resolutions | `Unavailable` |
| Aspect Ratios | `Unavailable` |
| Output Format | `Unavailable` |
| Avg Generation Time | `Unavailable` |


<!-- catalog-model-detail-slot: request-parameters -->

## Request parameters

No request parameters are published for this endpoint.
<!-- /catalog-model-detail-slot: request-parameters -->

**Request example**

```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."
    }
  ]
}
```

### Model skill — grok-4.7

Install the skill once, then use the variant ID from this page while building.

Base URL: `https://runapi.ai`

| Endpoint | Protocol |
|---|---|
| `POST /v1/chat/completions` | OpenAI compatible |
| `POST /v1/responses` | OpenAI Responses |
| `POST /v1/messages` | Anthropic compatible |
| `POST /v1beta/models/grok-4.7:generateContent` | Gemini generateContent |
| `POST /v1beta/models/grok-4.7:streamGenerateContent` | Gemini streamGenerateContent |

Use the OpenAI or Anthropic SDK with your RunAPI API key and `model: "grok-4.7"`.

### Use grok-4.7 with a model skill

1. **Install** — Install the model skill for the Grok line. The skill loads docs, typed schemas, pricing notes, and setup steps into your coding workspace so your agent has the right context.
2. **Configure** — Set the model field to the full model ID shown on this page and configure your RunAPI API key as an environment variable. The same key works across all models and providers.
3. **Call** — Use the skill instructions while adding prompt, input, and callback handling to your application. RunAPI routes the request to the provider, manages the async lifecycle, and returns structured JSON.
4. **Receive** — Read the task response by polling the task ID, streaming when supported, or handling the webhook callback at your configured URL. Generated outputs are stored and retrievable by task ID.

### What's different about grok-4.7

- **VS GROK-4.20-0309-NON-REASONING: Newest Grok with 500K context, xhigh reasoning, image understanding, and function tools** — grok-4.20-0309-non-reasoning
- **VS GROK-4.3: Newest Grok with 500K context, xhigh reasoning, image understanding, and function tools** — Grok for fast reasoning, tools, and structured output through Responses
- **VS GROK-4.5: Newest Grok with 500K context, xhigh reasoning, image understanding, and function tools** — Grok for chat, coding, agentic tools, and lower hallucination risk

## USE CASES

**Customer support**

Answer customer questions from a private knowledge base, reducing ticket volume.

**Document analysis**

Draft contract summaries and flag key clauses for attorney review.

**Code generation**

Auto-generate unit tests, code reviews, and refactoring suggestions in CI.



## Frequently asked questions about Grok 4.7

### How do I select grok-4.7?

Pass the model ID shown in the quickstart.

### What's the rate limit on this variant?

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.

### Can I switch variants later?

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.

### Does it stream?

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.

### Where do I report quality issues?

Open an issue on the public GitHub repo or email support at contact@runapi.ai. Include the task ID and model ID so the team can investigate the specific generation.

### Do I need a separate provider account?

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.


### RELATED

- [grok-4.20-0309-non-reasoning](https://runapi.ai/models/grok/4.20-0309-non-reasoning.md) — by xAI · Input $0.63-$1.26 / 1M tokens | Output $1.25-$2.50 / 1M tokens · Input $1.20-$2.40 / 1M tokens | Output $2.50-$5.00 / 1M tokens
- [grok-4.5](https://runapi.ai/models/grok/4.5.md) — by xAI · Input $2.00-$4.00 / 1M tokens | Output $6.00-$12.00 / 1M tokens · Input $1.60-$3.20 / 1M tokens | Output $4.80-$9.60 / 1M tokens
- [grok-4.6](https://runapi.ai/models/grok/4.6.md) — by xAI · Input $1.60-$3.20 / 1M tokens | Output $4.80-$9.60 / 1M tokens
- [grok-4.3](https://runapi.ai/models/grok/4.3.md) — by xAI · Retired

### Start building with Grok.

- [Create free account](https://runapi.ai/login)
- [Read the quickstart →](https://runapi.ai/docs/api/anthropic/messages)
## Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

[Contact Us](https://runapi.ai/contact.md)



---

## More from RunAPI

- [Home](https://runapi.ai/.md)
### Product
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models#all-models)
### Developers
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
### Guides
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
### Company
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
### Legal
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "SoftwareApplication",
    "name": "Grok grok-4.7",
    "applicationCategory": "DeveloperApplication"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Models",
        "item": "https://runapi.ai/models"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Grok",
        "item": "https://runapi.ai/models/grok"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "grok-4.7",
        "item": "https://runapi.ai/models/grok/4.7"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "HowTo",
    "name": "Use grok-4.7 with a model skill",
    "description": "Use grok-4.7 via RunAPI — the Grok family. Per-call pricing, model ID, specs, and developer setup guide.",
    "totalTime": "PT5M",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "Install",
        "text": "Install the model skill for the Grok line. The skill loads docs, typed schemas, pricing notes, and setup steps into your coding workspace so your agent has the right context.",
        "url": "https://runapi.ai/models/grok/4.7#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "Configure",
        "text": "Set the model field to the full model ID shown on this page and configure your RunAPI API key as an environment variable. The same key works across all models and providers.",
        "url": "https://runapi.ai/models/grok/4.7#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "Call",
        "text": "Use the skill instructions while adding prompt, input, and callback handling to your application. RunAPI routes the request to the provider, manages the async lifecycle, and returns structured JSON.",
        "url": "https://runapi.ai/models/grok/4.7#how-step-3"
      },
      {
        "@type": "HowToStep",
        "position": 4,
        "name": "Receive",
        "text": "Read the task response by polling the task ID, streaming when supported, or handling the webhook callback at your configured URL. Generated outputs are stored and retrievable by task ID.",
        "url": "https://runapi.ai/models/grok/4.7#how-step-4"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "How do I select grok-4.7?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Pass the model ID shown in the quickstart."
        }
      },
      {
        "@type": "Question",
        "name": "What's the rate limit on this variant?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "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."
        }
      },
      {
        "@type": "Question",
        "name": "Can I switch variants later?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "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."
        }
      },
      {
        "@type": "Question",
        "name": "Does it stream?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "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."
        }
      },
      {
        "@type": "Question",
        "name": "Where do I report quality issues?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Open an issue on the public GitHub repo or email support at contact@runapi.ai. Include the task ID and model ID so the team can investigate the specific generation."
        }
      },
      {
        "@type": "Question",
        "name": "Do I need a separate provider account?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "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."
        }
      }
    ]
  }
]
```
