Intro example uses an unverifiable/incorrect xAI model id string
packages/ai/src/index.ts
export { GatewayModelId } from '@ai-sdk/gateway' // L5const { text } = await generateText({
model: "xai/grok-4.6",
prompt: "What is love?",
});The introduction page's primary quick-start example passes a raw string model id `"xai/grok-4.6"`. The code surface exposes model ids only through the strongly-typed `GatewayModelId` union (re-exported from `@ai-sdk/gateway`), and the docs site itself lists the model as "Grok 4.6". A literal string bypasses that type check, so developers copying the snippet get no compile-time validation and may pass a model id string that the gateway does not recognize, causing a runtime model-not-found error. Because the provided code surface does not enumerate valid gateway model ids, this could not be confirmed as the canonical identifier.
Update the introduction example to import the gateway and use a typed model id (e.g. `import { gateway } from 'ai'; model: gateway('xai/grok-4.6')`) or replace the string with a verified provider instance/model from the AI Gateway model list, so the snippet is type-checked and matches the actual available model ids.