> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/microsoft/onnxruntime-genai/llms.txt
> Use this file to discover all available pages before exploring further.

<div className="relative overflow-hidden bg-white dark:bg-[#0f1117]">
  <div className="relative bg-gradient-to-br from-[#94cb04]/10 via-white to-[#27b39c]/5 dark:from-[#94cb04]/5 dark:via-[#0f1117] dark:to-[#27b39c]/5 py-20 lg:py-28">
    <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
      <div className="text-center">
        <h1 className="text-4xl sm:text-5xl lg:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6">
          High-Performance Generative AI with ONNX Runtime
        </h1>

        <p className="text-lg sm:text-xl text-gray-600 dark:text-gray-400 max-w-3xl mx-auto mb-8">
          Run LLMs and multi-modal models on any device with ease. A complete inference library with optimized KV cache management, sampling strategies, and hardware acceleration.
        </p>

        <div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
          <a href="/quickstart" className="inline-flex items-center justify-center px-8 py-3.5 text-base font-semibold text-gray-900 bg-[#94cb04] rounded-lg hover:bg-[#7ea303] transition-colors">
            Get Started
          </a>

          <a href="/api/python/model" className="inline-flex items-center justify-center px-8 py-3.5 text-base font-semibold text-gray-900 dark:text-gray-100 bg-white/10 dark:bg-white/5 border border-gray-300 dark:border-[#27272a] rounded-lg hover:bg-gray-100 dark:hover:bg-[#1a1d27] transition-colors">
            Explore API Reference
          </a>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <div className="text-center mb-12">
    <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Quick Start</h2>
    <p className="text-base text-gray-600 dark:text-gray-400">Get running with your first generative AI model in minutes</p>
  </div>

  <Steps>
    <Step title="Install the package">
      Install ONNX Runtime GenAI for your preferred language.

      <CodeGroup>
        ```bash Python theme={null}
        pip install onnxruntime-genai
        ```

        ```bash C# theme={null}
        dotnet add package Microsoft.ML.OnnxRuntimeGenAI
        ```

        ```bash C++ theme={null}
        # Download from GitHub releases
        # https://github.com/microsoft/onnxruntime-genai/releases
        ```
      </CodeGroup>
    </Step>

    <Step title="Download a model">
      Download a pre-optimized ONNX model from Hugging Face.

      ```bash theme={null}
      huggingface-cli download microsoft/Phi-3-mini-4k-instruct-onnx \
        --include cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4/* \
        --local-dir .
      ```

      <Info>See [Download Models](/guides/download-models) for all available options including Foundry Local.</Info>
    </Step>

    <Step title="Run inference">
      Generate text with just a few lines of code.

      ```python theme={null}
      import onnxruntime_genai as og

      model = og.Model('cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4')
      tokenizer = og.Tokenizer(model)

      prompt = "What is the capital of France?"
      input_tokens = tokenizer.encode(prompt)

      params = og.GeneratorParams(model)
      params.set_search_options(max_length=200)

      generator = og.Generator(model, params)
      generator.append_tokens(input_tokens)

      while not generator.is_done():
          generator.generate_next_token()
          print(tokenizer.decode(generator.get_next_tokens()[0]), end='', flush=True)
      ```

      Check out complete [examples](/examples/python/chat) for chat, vision, and audio models.
    </Step>
  </Steps>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <div className="text-center mb-12">
    <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Explore by Topic</h2>
    <p className="text-base text-gray-600 dark:text-gray-400">Dive deep into core concepts, guides, and API references</p>
  </div>

  <CardGroup cols={3}>
    <Card title="Core Concepts" icon="brain" href="/concepts/overview">
      Understand models, generation strategies, and KV cache management
    </Card>

    <Card title="Multi-Modal" icon="images" href="/multimodal/overview">
      Work with vision models like Phi-Vision, Qwen-VL, and Gemma
    </Card>

    <Card title="Hardware Acceleration" icon="microchip" href="/acceleration/overview">
      Optimize with CUDA, DirectML, OpenVINO, QNN, and WebGPU
    </Card>

    <Card title="Python API" icon="python" href="/api/python/model">
      Complete Python API reference for all classes and methods
    </Card>

    <Card title="C++ API" icon="code" href="/api/cpp/model">
      Zero-overhead C++ wrapper for high-performance applications
    </Card>

    <Card title="Model Builder" icon="hammer" href="/guides/model-builder">
      Convert and optimize your own models for ONNX Runtime GenAI
    </Card>
  </CardGroup>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <div className="text-center mb-12">
    <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Key Features</h2>
    <p className="text-base text-gray-600 dark:text-gray-400">Everything you need to deploy generative AI at scale</p>
  </div>

  <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
    <div className="p-6 bg-white dark:bg-[#1a1d27] border border-gray-200 dark:border-[#27272a] rounded-lg">
      <div className="flex items-start">
        <div className="flex-shrink-0">
          <div className="flex items-center justify-center h-12 w-12 rounded-md bg-[#94cb04]/10 text-[#94cb04]">
            <svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
            </svg>
          </div>
        </div>

        <div className="ml-4">
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white">Multi-Language Support</h3>
          <p className="mt-2 text-sm text-gray-600 dark:text-gray-400">Use Python, C++, C#, C, or Java bindings with the same performant core</p>
        </div>
      </div>
    </div>

    <div className="p-6 bg-white dark:bg-[#1a1d27] border border-gray-200 dark:border-[#27272a] rounded-lg">
      <div className="flex items-start">
        <div className="flex-shrink-0">
          <div className="flex items-center justify-center h-12 w-12 rounded-md bg-[#94cb04]/10 text-[#94cb04]">
            <svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z" />
            </svg>
          </div>
        </div>

        <div className="ml-4">
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white">20+ Model Architectures</h3>
          <p className="mt-2 text-sm text-gray-600 dark:text-gray-400">Llama, Phi, Gemma, Qwen, Mistral, Whisper, and more out of the box</p>
        </div>
      </div>
    </div>

    <div className="p-6 bg-white dark:bg-[#1a1d27] border border-gray-200 dark:border-[#27272a] rounded-lg">
      <div className="flex items-start">
        <div className="flex-shrink-0">
          <div className="flex items-center justify-center h-12 w-12 rounded-md bg-[#94cb04]/10 text-[#94cb04]">
            <svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
            </svg>
          </div>
        </div>

        <div className="ml-4">
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white">Multi-Modal Ready</h3>
          <p className="mt-2 text-sm text-gray-600 dark:text-gray-400">Vision and audio models with built-in preprocessing and feature extraction</p>
        </div>
      </div>
    </div>

    <div className="p-6 bg-white dark:bg-[#1a1d27] border border-gray-200 dark:border-[#27272a] rounded-lg">
      <div className="flex items-start">
        <div className="flex-shrink-0">
          <div className="flex items-center justify-center h-12 w-12 rounded-md bg-[#94cb04]/10 text-[#94cb04]">
            <svg className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
              <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
            </svg>
          </div>
        </div>

        <div className="ml-4">
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white">Advanced Decoding</h3>
          <p className="mt-2 text-sm text-gray-600 dark:text-gray-400">Constrained decoding, beam search, Multi-LoRA, and continuous decoding</p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <div className="bg-gradient-to-r from-[#94cb04]/10 to-[#27b39c]/10 dark:from-[#94cb04]/5 dark:to-[#27b39c]/5 border border-gray-200 dark:border-[#27272a] rounded-2xl p-8 lg:p-12 text-center">
    <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-4">Ready to Build?</h2>

    <p className="text-lg text-gray-600 dark:text-gray-400 mb-8 max-w-2xl mx-auto">
      Start deploying high-performance generative AI models on any device with ONNX Runtime GenAI
    </p>

    <div className="flex flex-col sm:flex-row gap-4 justify-center">
      <a href="/quickstart" className="inline-flex items-center justify-center px-8 py-3.5 text-base font-semibold text-gray-900 bg-[#94cb04] rounded-lg hover:bg-[#7ea303] transition-colors">
        Get Started Now
      </a>

      <a href="https://github.com/microsoft/onnxruntime-genai" className="inline-flex items-center justify-center px-8 py-3.5 text-base font-semibold text-gray-900 dark:text-gray-100 bg-white dark:bg-[#1a1d27] border border-gray-300 dark:border-[#27272a] rounded-lg hover:bg-gray-100 dark:hover:bg-[#242838] transition-colors">
        View on GitHub
      </a>
    </div>
  </div>
</div>
