# Grok 4.7

Grok 4.7 is SpaceXAI’s advanced AI model for coding and professional knowledge work, built to tackle complex, multi-hour tasks with improved self-verification and long-context handling. It strengthens software engineering, document creation, and presentation workflows while maintaining Grok 4.6’s speed and pricing.

- **Model ID:** `spacexai/grok-4.7`
- **Type:** chat
- **Providers:** xai
- **Context window:** 500,000
- **Maximum output tokens:** 500,000
- **Pricing:** $2/1M input tokens, $6/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/grok-4.7

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'spacexai/grok-4.7',
  prompt: 'Why is the sky blue?'
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/grok-4.7)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider pricing](https://console.x.ai)
