# Quickstart

Get from signup to your first API call in under 5 minutes.

***

## Step 1: Create Your Account

1. Go to [app.tensorix.ai/register](https://app.tensorix.ai/register)
2. Enter your email and password
3. Check your inbox for a verification email
4. Click the verification link

***

## Step 2: Generate an API Key

1. Go to your [Dashboard](https://app.tensorix.ai/dashboard)
2. Navigate to **API Keys**
3. Click **Generate New Key**
4. Enter a name (e.g., "My First Key")
5. Click **Create**

{% hint style="warning" %}
**Copy your key immediately!** The full API key is only shown once. Store it somewhere safe.
{% endhint %}

***

## Step 3: Make Your First API Call

Test that everything works with a simple curl command:

```bash
curl https://api.tensorix.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"
```

You should see a JSON list of available models. 🎉

***

## Step 4: Chat with a Model

Now let's have a conversation:

{% tabs %}
{% tab title="curl" %}

```bash
curl https://api.tensorix.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek/deepseek-chat-v3.1",
    "messages": [
      {"role": "user", "content": "Hello! What can you help me with?"}
    ]
  }'
```

{% endtab %}

{% tab title="Python" %}

```python
from openai import OpenAI

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

response = client.chat.completions.create(
    model="deepseek/deepseek-chat-v3.1",
    messages=[
        {"role": "user", "content": "Hello! What can you help me with?"}
    ]
)

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

{% endtab %}

{% tab title="JavaScript" %}

```javascript
import OpenAI from 'openai';

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

const response = await client.chat.completions.create({
  model: 'deepseek/deepseek-chat-v3.1',
  messages: [
    { role: 'user', content: 'Hello! What can you help me with?' }
  ]
});

console.log(response.choices[0].message.content);
```

{% endtab %}
{% endtabs %}

***

## Step 5: Check Your Usage

1. Go to [Dashboard → Usage](https://app.tensorix.ai/dashboard/usage)
2. See your request history with timestamps, models, tokens, and costs
3. Export to CSV if needed

***

## That's It! ✅

You're now ready to build with Tensorix. Here's what to explore next:

| Next Step                    | Link                                                   |
| ---------------------------- | ------------------------------------------------------ |
| Browse available models      | [Models](/api-reference/models.md)                     |
| Learn about chat completions | [Chat API](/api-reference/chat-completions.md)         |
| Add function calling         | [Function Calling](/api-reference/function-calling.md) |
| Set up streaming             | [Streaming](/api-reference/streaming.md)               |
| Connect your favorite tool   | [Integrations](/readme.md#integrations)                |

***

## Already Using OpenAI?

Tensorix is a **drop-in replacement**. Just change two things:

```python
# Before (OpenAI)
client = OpenAI(api_key="sk-...")

# After (Tensorix)
client = OpenAI(
    api_key="YOUR_TENSORIX_KEY",
    base_url="https://api.tensorix.ai/v1"
)
```

That's it! All your existing code works unchanged.

***

## Common Issues

| Problem                | Solution                                                                          |
| ---------------------- | --------------------------------------------------------------------------------- |
| "Insufficient balance" | Add credits to your account in the [Dashboard](https://app.tensorix.ai/dashboard) |
| "401 Unauthorized"     | Check your API key is correct and complete                                        |
| "404 Not Found"        | Base URL must include `/v1`: `https://api.tensorix.ai/v1`                         |
| Key not working        | Make sure you copied the full key including `sk-tensorix-` prefix                 |

***

## Need Help?

* 📧 **Email**: <support@tensorix.ai>
* 📚 **Docs**: [docs.tensorix.ai](https://docs.tensorix.ai)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tensorix.ai/quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
