# GPT-4.1 (Fast)

GPT 4.1 is OpenAI's flagship model for complex tasks. It is well suited for problem solving across domains.

- **Model ID:** `openai/gpt-4.1-fast`
- **Type:** chat
- **Providers:** openai
- **Context window:** 1,047,576
- **Maximum output tokens:** 32,768
- **Pricing:** $3.5/1M input tokens, $14/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/gpt-4.1-fast

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

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

const result = streamText({
  model: 'openai/gpt-4.1-fast',
  prompt: 'Why is the sky blue?'
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/gpt-4.1-fast)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://platform.openai.com/docs/models/gpt-4.1)
- [Provider pricing](https://platform.openai.com/docs/pricing)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
