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

# Quick Start

> Get started with Mixroute Api in just three simple steps

## Step 1: Create your Account

Access [**MixRoute**](https://api.mixroute.ai) or click \[Get Started] in the top right corner to create your account.

* **Step 1:** Click **"Sign Up"** in the top right corner.
* **Step 2:** Enter your email address, set a password, and complete the verification.
* **Step 3:** Go to **"Wallet Management"** and complete your top-up (Stripe supported).

<Info>
  New users receive a \$1 bonus upon registration
</Info>

## Step 2: Create API Key

1. Click "Token Management" in the navigation
2. Click "Add Token"
3. Click "Submit" to generate a key

## Step 3: Start Calling

### 3.1 Connection Info

| Config             | Value                        |
| ------------------ | ---------------------------- |
| API URL (Base URL) | `https://api.mixroute.ai/v1` |
| API Key            | Your created key             |
| Request Format     | Fully OpenAI API compatible  |

### 3.2 Test Call

Quick test with curl:

```bash theme={null}
curl https://api.mixroute.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-5.5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
```

### 3.3 Code Examples

<Tabs>
  <Tab title="Python">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(
        api_key="YOUR_API_KEY",
        base_url="https://api.mixroute.ai/v1"
    )

    response = client.chat.completions.create(
        model="gpt-5.5",
        messages=[
            {"role": "user", "content": "Hello!"}
        ]
    )

    print(response.choices[0].message.content)
    ```
  </Tab>

  <Tab title="Node.js">
    ```javascript theme={null}
    import OpenAI from 'openai';

    const openai = new OpenAI({
      apiKey: 'YOUR_API_KEY',
      baseURL: 'https://api.mixroute.ai/v1'
    });

    const response = await openai.chat.completions.create({
      model: 'gpt-5.5',
      messages: [{ role: 'user', content: 'Hello!' }]
    });

    console.log(response.choices[0].message.content);
    ```
  </Tab>

  <Tab title="Java">
    ```java theme={null}
    OpenAiService service = new OpenAiService(
        "YOUR_API_KEY", 
        Duration.ofSeconds(60), 
        "https://api.mixroute.ai/v1"
    );

    ChatCompletionRequest request = ChatCompletionRequest.builder()
        .model("gpt-5.5")
        .messages(List.of(
            new ChatMessage(ChatMessageRole.USER, "Hello!")
        ))
        .build();

    ChatCompletionResult result = service.createChatCompletion(request);
    System.out.println(result.getChoices().get(0).getMessage().getContent());
    ```
  </Tab>
</Tabs>

## Next Steps

Congratulations! You've successfully set up MixRoute API. Then you can:

<CardGroup cols={2}>
  <Card title="View API Docs" icon="book" href="https://mixroute.ai" cta="Learn more">
    Learn about complete API specifications
  </Card>

  <Card title="Integration" icon="puzzle-piece" href="https://mixroute.ai" cta="Learn more">
    Integrate MixRoute API with various tools
  </Card>
</CardGroup>

<Tip>
  Save your API key safely and regularly check usage logs in the console to optimize costs. Happy coding!
</Tip>
