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

# Introduction

> Open-weight models on idle Apple Silicon, with Apple-attested hardware and a signed receipt.

Mifr is in public alpha. It runs open-weight models on idle Apple Silicon. Inference happens on the Mac: Apple-attested hardware, a logged build, a signed receipt bound to your request. The coordinator in the middle never holds a payload key.

You send a prompt to the hosted API and get the answer back from that machine.

If you already speak Chat Completions, that is a base URL and an API key. Compatibility is how you plug in, not the product.

## Try it

<CodeGroup>
  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      base_url="https://mifr-gateway-production.up.railway.app/v1",
      api_key="YOUR_MIFR_API_KEY",
  )

  completion = client.chat.completions.create(
      model="qwen3-4b",
      messages=[{"role": "user", "content": "Reply with the single word pong."}],
  )

  print(completion.choices[0].message.content)
  ```

  ```typescript TypeScript theme={null}
  import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
  import { generateText } from "ai";

  const mifr = createOpenAICompatible({
    name: "mifr",
    apiKey: process.env.MIFR_API_KEY,
    baseURL: "https://mifr-gateway-production.up.railway.app/v1",
    includeUsage: true,
  });

  const { text } = await generateText({
    model: mifr("qwen3-4b"),
    prompt: "Reply with the single word pong.",
  });
  ```

  ```bash cURL theme={null}
  curl https://mifr-gateway-production.up.railway.app/v1/chat/completions \
    -H "Authorization: Bearer $MIFR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "qwen3-4b",
      "messages": [{"role": "user", "content": "Reply with the single word pong."}]
    }'
  ```
</CodeGroup>

<Columns cols={2}>
  <Card title="Get a key" icon="key" href="/quickstart">
    Sign in, mint a `sk-mifr_` key, and send a prompt to an attested Mac.
  </Card>

  <Card title="See what ran" icon="file-check" href="/api-reference/chat-completions">
    Every successful completion includes a signed `mifr_receipt` bound to your request.
  </Card>

  <Card title="Pick a Mac" icon="server" href="/models">
    List live providers at the hardware floor, or pin one by id on the next call.
  </Card>

  <Card title="What you can check" icon="shield" href="/privacy">
    Apple-attested hardware and a signed receipt for the Mac that ran the request.
  </Card>
</Columns>

## Origin

```text theme={null}
https://mifr-gateway-production.up.railway.app
```

SDKs want that origin plus `/v1`. The coordinator (`wss://mifr-coord-…`) and the website are different hosts. Mint keys at [Settings](https://mifr-website-production.up.railway.app/settings); they start with `sk-mifr_`.

There is no first-party SDK and no `/v1/responses`. AI SDK 5's `createOpenAI()(id)` hits `/v1/responses`, so use `createOpenAICompatible` (or `openai.chat(id)`).

## Next steps

* Follow the [quickstart](/quickstart) to mint a key and get a completion.
* [Client](/authentication) is the hosted API: auth, models, privacy, and the endpoint reference.
* [Provider](/provider) is for running a Mac on the network.
