{
  "provider": "xai",
  "links": {
    "models": "https://docs.x.ai/developers/models",
    "pricing": "https://docs.x.ai/developers/pricing",
    "changelog": "https://docs.x.ai/developers/release-notes",
    "docs": "https://docs.x.ai/developers/rest-api-reference/inference",
    "status": "https://status.x.ai/",
    "keys": "https://console.x.ai/team/default/api-keys",
    "terms": "https://x.ai/legal/terms-of-service-enterprise",
    "dataUse": "https://docs.x.ai/developers/faq/security",
    "subscriptionTerms": "https://x.ai/legal/terms-of-service",
    "subscriptionDataUse": "https://x.ai/legal/faq",
    "modelsEndpoint": {
      "url": "https://api.x.ai/v1/models",
      "auth": "key"
    }
  },
  "account": {
    "billingNote": "A SuperGrok or X Premium+ sign-in uses your subscription. An API key is billed per token against your xAI API credits.",
    "plan": "oauth"
  },
  "billing": {
    "perToken": true,
    "plan": true
  },
  "speedSource": {
    "basis": "measured",
    "url": "https://artificialanalysis.ai/providers/xai",
    "readAt": "2026-09-24",
    "note": "Artificial Analysis's measurements of this provider's own API (end-to-end time for 500 tokens), graded 0 to 10; its figures are not published here"
  },
  "models": [
    {
      "id": "grok-4.7",
      "name": "Grok 4.7",
      "family": "grok-4.7",
      "recommended": true,
      "defaultFor": [
        "web-search"
      ],
      "api": "openai-responses",
      "reasoning": true,
      "input": [
        "text",
        "image"
      ],
      "contextWindow": 500000,
      "maxTokens": 64000,
      "cost": {
        "input": 2,
        "output": 6,
        "cacheRead": 0.5,
        "cacheWrite": 0
      },
      "grades": {
        "power": 8,
        "speed": 5,
        "cost": 7
      },
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "native",
        "tool-use": "native",
        "coding": "native"
      },
      "effort": {
        "levels": [
          "low",
          "medium",
          "high",
          "xhigh"
        ],
        "native": "high",
        "default": "high"
      },
      "releasedAt": "2026-09-21",
      "tagline": "xAI's frontier Grok for coding, agentic and knowledge work",
      "description": "Grok 4.7 (21 Sep 2026): xAI's most capable model for coding, agentic tasks and knowledge work, on a new, larger base model with a longer reinforcement-learning run. It works longer on difficult tasks and checks its own work more carefully, at Grok 4.6's price and speed: $2/$6 per 1M in/out ($0.50 cached input), doubling above a 200k long-context band. 500k-token context, text-plus-image input.",
      "docs": "https://docs.x.ai/developers/models/grok-4.7",
      "knowledgeCutoff": "2026-05"
    },
    {
      "id": "grok-4.20-0309-reasoning",
      "name": "Grok 4.20 Reasoning",
      "family": "grok-4.20-reasoning",
      "api": "openai-responses",
      "reasoning": true,
      "input": [
        "text",
        "image"
      ],
      "contextWindow": 1000000,
      "maxTokens": 64000,
      "cost": {
        "input": 1.25,
        "output": 2.5,
        "cacheRead": 0.2,
        "cacheWrite": 0
      },
      "grades": {
        "power": 5,
        "speed": 2,
        "cost": 6
      },
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "native",
        "tool-use": "native"
      },
      "effort": {
        "levels": [
          "adaptive"
        ],
        "native": "adaptive",
        "default": "adaptive",
        "adaptive": true,
        "note": "Reasoning variant; use the separate non-reasoning model to disable thinking."
      },
      "releasedAt": "2026-04-07",
      "tagline": "Fast, low-hallucination agentic model with fixed reasoning",
      "description": "Grok 4.20 Reasoning (7 Apr 2026): the reasoning variant of xAI's fast, prompt-adherent 1M-context model, with text-plus-image input, structured outputs and agentic function calling. This exact dated id is served to the configured EU account.",
      "docs": "https://docs.x.ai/developers/models/grok-4.20-0309-reasoning"
    },
    {
      "id": "grok-4.20-0309-non-reasoning",
      "name": "Grok 4.20 Non-Reasoning",
      "family": "grok-4.20-non-reasoning",
      "api": "openai-responses",
      "reasoning": false,
      "input": [
        "text",
        "image"
      ],
      "contextWindow": 1000000,
      "maxTokens": 64000,
      "cost": {
        "input": 1.25,
        "output": 2.5,
        "cacheRead": 0.2,
        "cacheWrite": 0
      },
      "grades": {
        "power": 3,
        "speed": 6,
        "cost": 6
      },
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "limited",
        "tool-use": "native",
        "reasoning": "limited",
        "chat": "native"
      },
      "effort": {
        "levels": [
          "off"
        ],
        "native": "off",
        "default": "off"
      },
      "releasedAt": "2026-04-07",
      "tagline": "Fast 1M-context Grok 4.20 without reasoning latency",
      "description": "Grok 4.20 Non-Reasoning (7 Apr 2026): the low-latency variant of xAI's prompt-adherent 1M-context model, with text-plus-image input, structured outputs and function calling but no reasoning pass.",
      "docs": "https://docs.x.ai/developers/models/grok-4.20-0309-non-reasoning"
    },
    {
      "id": "grok-build-0.1",
      "name": "Grok Build 0.1",
      "family": "grok-build-0.1",
      "api": "openai-responses",
      "reasoning": true,
      "input": [
        "text",
        "image"
      ],
      "contextWindow": 256000,
      "maxTokens": 64000,
      "cost": {
        "input": 1,
        "output": 2,
        "cacheRead": 0.2,
        "cacheWrite": 0
      },
      "grades": {
        "power": 5,
        "speed": 0,
        "cost": 6
      },
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "limited",
        "tool-use": "limited",
        "coding": "native"
      },
      "effort": {
        "levels": [
          "adaptive"
        ],
        "native": "adaptive",
        "default": "adaptive",
        "adaptive": true,
        "note": "Always-on reasoning — not adjustable."
      },
      "releasedAt": "2026-05-29",
      "tagline": "xAI's coding model behind the Grok Build agent",
      "description": "grok-build-0.1 (29 May 2026): the public-beta API coding model powering xAI's Grok Build terminal agent. 256k-token context, text-plus-image input, 70.8% on SWE-Bench Verified. Tuned for software engineering and complex build tasks.",
      "docs": "https://docs.x.ai/developers/models/grok-build-0.1"
    },
    {
      "id": "grok-imagine-image-2.0",
      "name": "Grok Imagine Image 2.0",
      "reasoning": false,
      "input": [
        "text"
      ],
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "limited",
        "vision": "unsupported",
        "image": "native",
        "chat": "unsupported",
        "tool-use": "unsupported"
      },
      "effort": {
        "levels": [
          "off"
        ],
        "native": "off",
        "default": "off"
      },
      "tagline": "xAI's recommended image generation model",
      "description": "grok-imagine-image-2.0: xAI's current Grok Imagine image model and the one xAI recommends, billed $0.04 per image. Takes aspect ratio and 1K/2K resolution. An image-generation specialist -- it does not chat or drive agent loops.",
      "docs": "https://docs.x.ai/developers/models/grok-imagine-image-2.0"
    },
    {
      "id": "grok-imagine-image-quality",
      "name": "Grok Imagine Image Quality",
      "reasoning": false,
      "input": [
        "text"
      ],
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "limited",
        "vision": "unsupported",
        "image": "native",
        "chat": "unsupported",
        "tool-use": "unsupported"
      },
      "effort": {
        "levels": [
          "off"
        ],
        "native": "off",
        "default": "off"
      },
      "tagline": "Highest-quality Grok Imagine output",
      "description": "grok-imagine-image-quality: the highest-quality Grok Imagine tier, billed $0.05 per image. Takes aspect ratio and 1K/2K resolution. An image-generation specialist -- it does not chat or drive agent loops.",
      "docs": "https://docs.x.ai/developers/models/grok-imagine-image-quality",
      "retiresOn": "2026-11-02"
    },
    {
      "id": "grok-imagine-image",
      "name": "Grok Imagine Image",
      "reasoning": false,
      "input": [
        "text"
      ],
      "tokenizerFamily": "xai",
      "capabilities": {
        "agentic": "limited",
        "vision": "unsupported",
        "image": "native",
        "chat": "unsupported",
        "tool-use": "unsupported"
      },
      "effort": {
        "levels": [
          "off"
        ],
        "native": "off",
        "default": "off"
      },
      "tagline": "Cheapest Grok Imagine tier",
      "description": "grok-imagine-image: the base Grok Imagine image model, billed $0.02 per image. Takes aspect ratio and 1K/2K resolution. An image-generation specialist -- it does not chat or drive agent loops.",
      "docs": "https://docs.x.ai/developers/models/grok-imagine-image"
    }
  ],
  "superseded": {
    "grok-4.6": "grok-4.7",
    "grok-4.5": "grok-4.7",
    "grok-4.20-reasoning": "grok-4.20-0309-reasoning",
    "grok-4.20-beta-latest-reasoning": "grok-4.20-0309-reasoning",
    "grok-4.20-experimental-beta-0304-reasoning": "grok-4.20-0309-reasoning",
    "grok-4.20-non-reasoning": "grok-4.20-0309-non-reasoning",
    "grok-4.20-beta-latest-non-reasoning": "grok-4.20-0309-non-reasoning",
    "grok-4.20-experimental-beta-0304-non-reasoning": "grok-4.20-0309-non-reasoning",
    "grok-code-fast-1": "grok-build-0.1",
    "grok-3": "grok-4.20-0309-non-reasoning",
    "grok-4-0709": "grok-4.20-0309-reasoning",
    "grok-4-fast-reasoning": "grok-4.20-0309-reasoning",
    "grok-4-fast-non-reasoning": "grok-4.20-0309-non-reasoning",
    "grok-4-1-fast-reasoning": "grok-4.20-0309-reasoning",
    "grok-4-1-fast-non-reasoning": "grok-4.20-0309-non-reasoning",
    "grok-4-fast": "grok-4.20-0309-reasoning",
    "grok-4-1-fast": "grok-4.20-0309-reasoning"
  },
  "removed": [],
  "disabled": [],
  "speech": {
    "models": [
      {
        "id": "grok-tts",
        "name": "Grok TTS",
        "defaultFor": [
          "speech",
          "narration"
        ],
        "voices": [
          "carina",
          "zagan",
          "helix",
          "orion",
          "luna",
          "iris",
          "altair",
          "zenith",
          "perseus",
          "helios",
          "lux",
          "kepler",
          "rigel",
          "cosmo",
          "celeste",
          "ursa",
          "sirius",
          "lumen",
          "castor",
          "naksh",
          "atlas",
          "aurora",
          "liora",
          "ara",
          "eve",
          "leo",
          "rex",
          "sal"
        ],
        "voiceDetails": {
          "carina": {
            "description": "Soft, empathetic, and soothing",
            "useCases": [
              "Wellness",
              "Support"
            ]
          },
          "zagan": {
            "description": "Powerful, dramatic, and unmistakable",
            "useCases": [
              "Characters",
              "Narration"
            ]
          },
          "helix": {
            "description": "Bold, dynamic, and adrenaline-fueled",
            "useCases": [
              "Commentary",
              "Podcast"
            ]
          },
          "orion": {
            "description": "Rich, cinematic, and resonant",
            "useCases": [
              "Narration",
              "Audiobooks"
            ]
          },
          "luna": {
            "description": "Gentle, patient, and deeply nurturing",
            "useCases": [
              "Education",
              "Assistant"
            ]
          },
          "iris": {
            "description": "Friendly, upbeat, and naturally charming",
            "useCases": [
              "Sales",
              "Support"
            ]
          },
          "altair": {
            "description": "Elegant, refined, and effortlessly premium",
            "useCases": [
              "Advertising",
              "Narration"
            ]
          },
          "zenith": {
            "description": "Sharp, focused, and driven",
            "useCases": [
              "Sales",
              "Advertising"
            ]
          },
          "perseus": {
            "description": "Strong, confident, and trustworthy",
            "useCases": [
              "Advertising",
              "Narration"
            ]
          },
          "helios": {
            "description": "Upbeat, energetic, and endlessly versatile",
            "useCases": [
              "Assistant",
              "Wellness"
            ]
          },
          "lux": {
            "description": "Grounded, calm, and quietly wise",
            "useCases": [
              "Wellness",
              "Narration"
            ]
          },
          "kepler": {
            "description": "Inventive, forward-thinking, and charismatic",
            "useCases": [
              "Advertising",
              "Podcast"
            ]
          },
          "rigel": {
            "description": "Precise, professional, and calmly confident",
            "accent": "Australian",
            "useCases": [
              "Assistant",
              "Support"
            ]
          },
          "cosmo": {
            "description": "Bright, curious, and easy to follow",
            "useCases": [
              "Education",
              "Podcast"
            ]
          },
          "celeste": {
            "description": "Compassionate, confident, and reassuring",
            "useCases": [
              "Support",
              "Assistant"
            ]
          },
          "ursa": {
            "description": "Friendly, warm, and steadfast",
            "useCases": [
              "Assistant",
              "Podcast"
            ]
          },
          "sirius": {
            "description": "Quick-witted, clever, and playful",
            "useCases": [
              "Commentary",
              "Characters"
            ]
          },
          "lumen": {
            "description": "Warm, articulate, and engaging",
            "useCases": [
              "Education",
              "Advertising"
            ]
          },
          "castor": {
            "description": "Charismatic, down-to-earth, and easygoing",
            "useCases": [
              "Sales",
              "Support"
            ]
          },
          "naksh": {
            "description": "Warm, thoughtful, and wise",
            "accent": "Indian",
            "useCases": [
              "Assistant",
              "Support"
            ]
          },
          "atlas": {
            "description": "Confident, commanding, and reassuring",
            "useCases": [
              "Sales",
              "Assistant"
            ]
          },
          "aurora": {
            "description": "Serene, steady, and radiant",
            "useCases": [
              "Support",
              "Assistant"
            ]
          },
          "liora": {
            "description": "Calm, grounded, and luminous",
            "useCases": [
              "Wellness",
              "Assistant"
            ]
          },
          "ara": {
            "description": "Warm and friendly"
          },
          "eve": {
            "description": "Energetic and upbeat",
            "accent": "British"
          },
          "leo": {
            "description": "Authoritative and strong",
            "accent": "British"
          },
          "rex": {
            "description": "Confident and clear"
          },
          "sal": {
            "description": "Smooth and balanced"
          }
        },
        "price": {
          "perMillionCharacters": 15
        },
        "tagline": "Expressive speech with inline speech tags",
        "docs": "https://docs.x.ai/developers/models/grok-tts"
      }
    ],
    "superseded": {},
    "removed": [],
    "disabled": []
  },
  "transcription": {
    "models": [
      {
        "id": "grok-voice-transcribe-2.0",
        "name": "Grok Voice Transcribe 2.0",
        "defaultFor": [
          "transcription",
          "realtime-transcription"
        ],
        "realtime": true,
        "price": {
          "perHour": 0.2
        },
        "tagline": "Files and live calls, 25 languages",
        "docs": "https://docs.x.ai/developers/models/grok-voice-transcribe-2.0"
      }
    ],
    "superseded": {
      "grok-voice-transcribe-1.0": "grok-voice-transcribe-2.0"
    },
    "removed": [],
    "disabled": []
  },
  "realtime": {
    "models": [
      {
        "id": "grok-voice-think-fast-2.0",
        "name": "Grok Voice Think Fast 2.0",
        "otherIds": [
          "grok-voice-latest"
        ],
        "defaultFor": [
          "realtime-voice"
        ],
        "voices": [
          "carina",
          "zagan",
          "helix",
          "orion",
          "luna",
          "iris",
          "altair",
          "zenith",
          "perseus",
          "helios",
          "lux",
          "kepler",
          "rigel",
          "cosmo",
          "celeste",
          "ursa",
          "sirius",
          "lumen",
          "castor",
          "naksh",
          "atlas",
          "aurora",
          "liora",
          "ara",
          "eve",
          "leo",
          "rex",
          "sal"
        ],
        "voiceDetails": {
          "carina": {
            "description": "Soft, empathetic, and soothing",
            "useCases": [
              "Wellness",
              "Support"
            ]
          },
          "zagan": {
            "description": "Powerful, dramatic, and unmistakable",
            "useCases": [
              "Characters",
              "Narration"
            ]
          },
          "helix": {
            "description": "Bold, dynamic, and adrenaline-fueled",
            "useCases": [
              "Commentary",
              "Podcast"
            ]
          },
          "orion": {
            "description": "Rich, cinematic, and resonant",
            "useCases": [
              "Narration",
              "Audiobooks"
            ]
          },
          "luna": {
            "description": "Gentle, patient, and deeply nurturing",
            "useCases": [
              "Education",
              "Assistant"
            ]
          },
          "iris": {
            "description": "Friendly, upbeat, and naturally charming",
            "useCases": [
              "Sales",
              "Support"
            ]
          },
          "altair": {
            "description": "Elegant, refined, and effortlessly premium",
            "useCases": [
              "Advertising",
              "Narration"
            ]
          },
          "zenith": {
            "description": "Sharp, focused, and driven",
            "useCases": [
              "Sales",
              "Advertising"
            ]
          },
          "perseus": {
            "description": "Strong, confident, and trustworthy",
            "useCases": [
              "Advertising",
              "Narration"
            ]
          },
          "helios": {
            "description": "Upbeat, energetic, and endlessly versatile",
            "useCases": [
              "Assistant",
              "Wellness"
            ]
          },
          "lux": {
            "description": "Grounded, calm, and quietly wise",
            "useCases": [
              "Wellness",
              "Narration"
            ]
          },
          "kepler": {
            "description": "Inventive, forward-thinking, and charismatic",
            "useCases": [
              "Advertising",
              "Podcast"
            ]
          },
          "rigel": {
            "description": "Precise, professional, and calmly confident",
            "accent": "Australian",
            "useCases": [
              "Assistant",
              "Support"
            ]
          },
          "cosmo": {
            "description": "Bright, curious, and easy to follow",
            "useCases": [
              "Education",
              "Podcast"
            ]
          },
          "celeste": {
            "description": "Compassionate, confident, and reassuring",
            "useCases": [
              "Support",
              "Assistant"
            ]
          },
          "ursa": {
            "description": "Friendly, warm, and steadfast",
            "useCases": [
              "Assistant",
              "Podcast"
            ]
          },
          "sirius": {
            "description": "Quick-witted, clever, and playful",
            "useCases": [
              "Commentary",
              "Characters"
            ]
          },
          "lumen": {
            "description": "Warm, articulate, and engaging",
            "useCases": [
              "Education",
              "Advertising"
            ]
          },
          "castor": {
            "description": "Charismatic, down-to-earth, and easygoing",
            "useCases": [
              "Sales",
              "Support"
            ]
          },
          "naksh": {
            "description": "Warm, thoughtful, and wise",
            "accent": "Indian",
            "useCases": [
              "Assistant",
              "Support"
            ]
          },
          "atlas": {
            "description": "Confident, commanding, and reassuring",
            "useCases": [
              "Sales",
              "Assistant"
            ]
          },
          "aurora": {
            "description": "Serene, steady, and radiant",
            "useCases": [
              "Support",
              "Assistant"
            ]
          },
          "liora": {
            "description": "Calm, grounded, and luminous",
            "useCases": [
              "Wellness",
              "Assistant"
            ]
          },
          "ara": {
            "description": "Warm and friendly"
          },
          "eve": {
            "description": "Energetic and upbeat",
            "accent": "British"
          },
          "leo": {
            "description": "Authoritative and strong",
            "accent": "British"
          },
          "rex": {
            "description": "Confident and clear"
          },
          "sal": {
            "description": "Smooth and balanced"
          }
        },
        "price": {
          "perMinute": 0.08
        },
        "releasedAt": "2026-07-29",
        "tagline": "Grok live voice, reasoning while it speaks",
        "docs": "https://docs.x.ai/developers/models/grok-voice-think-fast-2.0"
      }
    ],
    "superseded": {
      "grok-voice-think-fast-1.0": "grok-voice-think-fast-2.0"
    },
    "removed": [],
    "disabled": []
  }
}
