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

# Начать за три клика

> Быстрая инструкция для подключения

OpenAI-совместимый API без изменений в коде

## Шаг 1: Получите API ключ

1. Зарегистрируйтесь на [speshu.ai](https://speshu.ai)
2. Пополните баланс в личном кабинете
3. Создайте API-ключ в разделе [API-ключи](https://speshu.ai/profile)

## Шаг 2: Используйте API

<CodeGroup>
  ```typescript TypeScript theme={null} theme={null}
  import OpenAI from 'openai';

  const openai = new OpenAI({
    baseURL: 'https://speshu.ai/api/v1',
    apiKey: '<SPESHU_AI_API_KEY>'
  });

  async function main() {
    const completion = await openai.chat.completions.create({
      model: 'openai/gpt-5.5',
      messages: [{
        role: 'user',
        content: 'Что думаешь об этой жизни?',
      }],
    });
    console.log(completion.choices[0].message);
  }

  main();
  ```

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

  client = OpenAI(
    base_url="https://speshu.ai/api/v1",
    api_key="<SPESHU_AI_API_KEY>",
  )

  completion = client.chat.completions.create(
    model="openai/gpt-5.5",
    messages=[{
      "role": "user",
      "content": "Что думаешь об этой жизни?"
    }]
  )

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

  ```bash cURL theme={null} theme={null}
  curl -X POST "https://speshu.ai/api/v1/chat/completions" \
    -H "Authorization: Bearer <SPESHU_AI_API_KEY>" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "openai/gpt-5.5",
      "messages": [{"role": "user", "content": "Привет!"}]
    }'
  ```
</CodeGroup>

## Шаг 3: Выберите модель

Полный каталог моделей доступен через API:

```bash theme={null} theme={null}
curl https://speshu.ai/api/v1/models
```

### Популярные модели

| Модель            | ID                            | Описание                  |
| ----------------- | ----------------------------- | ------------------------- |
| GPT-5.4           | `openai/gpt-5.5`              | Флагманская модель OpenAI |
| Claude Sonnet 4.6 | `anthropic/claude-sonnet-4.6` | Лучший баланс Anthropic   |
| Gemini 3.1 Pro    | `google/gemini-3.1-pro`       | Продвинутая модель Google |

Чтобы всё работало корректно, проверьте: API-ключ, баланс, корректность модели

<Card title="Подключить API" icon="plug" type="tip" href="https://speshu.ai/profile">
  Работает в России без VPN
</Card>

## Следующие шаги

<CardGroup cols={2}>
  <Card title="API Справочник" icon="code" href="/docs/api-reference/chat/completions">
    Изучите полную документацию API
  </Card>

  <Card title="Интеграции" icon="plug" href="/docs/gaidy/claude-code">
    Подключите к вашим инструментам
  </Card>
</CardGroup>

***
