> ## Documentation Index
> Fetch the complete documentation index at: https://inference-docs.cerebras.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Build at the Speed of Cerebras

> Experience real-time AI responses for code generation, summarization, and autonomous tasks with the world's fastest AI inference.

<div style={{padding: "40px 0 0"}}>
  <div style={{display: "flex", alignItems: "center", gap: "48px", maxWidth: "1100px", margin: "0 auto 24px", padding: "0 24px"}}>
    <div style={{flex: 1, minWidth: 0}}>
      <div className="console-hero-title" style={{fontSize: "3rem", fontWeight: 600, letterSpacing: "-0.02em", lineHeight: 1.1, marginBottom: "16px"}}>Build at the Speed of Cerebras</div>
      <div className="console-hero-muted" style={{fontSize: "1rem", marginBottom: "32px", lineHeight: 1.6}}>Experience real-time AI responses across coding, reasoning, voice, and agentic workloads with the world's fastest AI inference.</div>

      <div style={{display: "flex", gap: "12px", flexWrap: "wrap"}}>
        <a href="https://cloud.cerebras.ai?utm_source=3pi_introduction&utm_campaign=docs" className="console-cta-btn" style={{display: "inline-flex", alignItems: "center", borderRadius: "9999px", padding: "12px 24px", fontWeight: 600, fontSize: "0.9375rem", textDecoration: "none", border: "none", whiteSpace: "nowrap"}}>
          Get an API key <span style={{marginLeft: "10px", display: "inline-flex"}}><Icon icon="arrow-up-right-from-square" size={12} color="white" /></span>
        </a>

        <a href="/quickstart" className="intro-secondary-btn" style={{display: "inline-flex", alignItems: "center", gap: "8px", borderRadius: "9999px", padding: "12px 24px", fontWeight: 600, fontSize: "0.9375rem", textDecoration: "none", whiteSpace: "nowrap"}}>
          Quickstart →
        </a>
      </div>
    </div>

    <div className="intro-code-panel" style={{width: "500px", flexShrink: 0}}>
      <CodeGroup>
        ```python Python theme={null}
        import os
        from cerebras.cloud.sdk import Cerebras

        client = Cerebras(
            api_key=os.environ.get("CEREBRAS_API_KEY"),
        )

        chat_completion = client.chat.completions.create(
            messages=[
                {
                    "role": "user",
                    "content": "Why is fast inference important?",
                }
        ],
            model="llama3.1-8b",
        )

        print(chat_completion)
        ```

        ```javascript Node.js theme={null}
        import Cerebras from '@cerebras/cerebras_cloud_sdk';

        const client = new Cerebras({
          apiKey: process.env['CEREBRAS_API_KEY'],
        });

        async function main() {
          const completionCreateResponse = await client.chat.completions.create({
            messages: [{ role: 'user', content: 'Why is fast inference important?' }],
            model: 'llama3.1-8b',
          });

          console.log(completionCreateResponse);
        }

        main();
        ```

        ```bash cURL theme={null}
        curl --location 'https://api.cerebras.ai/v1/chat/completions' \
        --header 'Content-Type: application/json' \
        --header "Authorization: Bearer ${CEREBRAS_API_KEY}" \
        --data '{
          "model": "llama3.1-8b",
          "stream": false,
          "messages": [{"content": "why is fast inference important?", "role": "user"}],
          "temperature": 0,
          "max_tokens": -1,
          "seed": 0,
          "top_p": 1
        }'
        ```
      </CodeGroup>
    </div>
  </div>

  <div style={{maxWidth: "1100px", margin: "0 auto", padding: "0 40px 80px"}}>
    <Card title="Explore Models" icon="magnifying-glass" href="/models/overview" arrow="true" horizontal>
      View our available models, including performance specifications, rate limits, and pricing details.
    </Card>

    <div style={{display: "grid", gridTemplateColumns: "1fr 1fr", gap: "16px", marginTop: "16px"}}>
      <Card title="Dedicated Endpoints" icon="server" href="/dedicated/overview" arrow="true">
        Private, high-performance inference endpoints with reserved capacity and guaranteed throughput for production workloads.
      </Card>

      <Card title="Start building" icon="sparkles">
        <ul style={{margin: 0, paddingLeft: "1.25em"}}>
          <li><a href="/resources/designing-for-cerebras">Designing for Cerebras</a> — Architectural patterns for building on wafer-scale inference.</li>
          <li><a href="/resources/openai">OpenAI Compatibility</a> — Migrate your existing code with minimal changes.</li>
          <li><a href="/integrations">Integrations</a> — Plug into popular AI frameworks and tools.</li>
        </ul>
      </Card>
    </div>

    <div className="console-hero-muted" style={{marginTop: "32px", fontSize: "0.9375rem"}}>
      <Tooltip tip="We designed the Cerebras API to be mostly compatible with OpenAI's client libraries." cta="Read our Compatibility guide" href="/resources/openai">OpenAI base URL:</Tooltip> <button title="Click to copy" onClick={(e) => { e.preventDefault(); e.stopPropagation(); navigator.clipboard.writeText('https://api.cerebras.ai/v1'); const btn = e.currentTarget; const orig = btn.innerHTML; btn.textContent = 'Copied!'; setTimeout(() => { btn.innerHTML = orig; }, 1500); }} style={{cursor: "pointer", fontFamily: "monospace", fontSize: "0.875em", background: "var(--code-background, rgba(0,0,0,0.05))", border: "none", borderRadius: "4px", padding: "1px 6px", color: "inherit", display: "inline-flex", alignItems: "center", gap: "5px"}}><span>{'https://api.cerebras.ai/v1'}</span><Icon icon="copy" size={11} /></button>
    </div>
  </div>
</div>
