AI Gateway
Grok 2 vision model excels in vision-based tasks, delivering state-of-the-art performance in visual math reasoning (MathVista) and document-based question answering (DocVQA). It can process a wide variety of visual information including documents, diagrams, charts, screenshots, and photographs.
import { streamText } from 'ai'
const result = streamText({ model: 'xai/grok-2-vision', prompt: 'Why is the sky blue?'})
Try out Grok 2 Vision by xAI. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with Grok 2 Vision
Powered by AI Gateway