Files
iishko-public/site/pages/docs.html
T
reformandClaude Opus 5.5 0ee6fb843b
checks / pytest (push) Has been cancelled
checks / moderation (push) Has been cancelled
checks / node (push) Has been cancelled
IISHKO: Telegram bot, Mini App and gateway
Initial public release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 21:51:30 +03:00

43 lines
19 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="ru" class="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Документация и быстрый старт — IISHKO GATEWAY</title>
<meta name="description" content="Как получить ключ, указать base URL и выполнить первый запрос к чату или генерации изображений через OpenAI-совместимый API шлюза IISHKO GATEWAY.">
<link rel="canonical" href="https://your-domain.com/docs">
<meta property="og:type" content="website">
<meta property="og:site_name" content="IISHKO GATEWAY">
<meta property="og:title" content="Документация и быстрый старт — IISHKO GATEWAY">
<meta property="og:description" content="Как получить ключ, указать base URL и выполнить первый запрос к чату или генерации изображений через OpenAI-совместимый API шлюза IISHKO GATEWAY.">
<meta property="og:url" content="https://your-domain.com/docs">
<meta property="og:locale" content="ru_RU">
<meta name="twitter:card" content="summary">
<meta name="theme-color" content="#0b1a1f">
<link rel="alternate" hreflang="ru" href="https://your-domain.com/docs">
<link rel="home" href="https://your-domain.com/"> <link rel="stylesheet" href="/site-assets/assets/main-D1LzJ0TE.css">
</head>
<body>
<div id="root" data-page="docs"><div class="flex min-h-screen flex-col bg-background text-foreground"><header class="sticky top-0 z-40 w-full border-b border-border/70 bg-background/80 backdrop-blur"><div class="container-x flex h-16 items-center justify-between gap-4"><a href="/" class="flex items-center gap-2.5" aria-label="IISHKO GATEWAY"><span class="grid h-8 w-8 place-items-center rounded-lg bg-primary/15 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send h-4 w-4" aria-hidden="true"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg></span><span class="text-sm font-semibold tracking-tight">IISHKO GATEWAY</span></a><nav class="hidden items-center gap-8 md:flex" aria-label="Основная навигация"><a href="/" class="text-sm transition-colors hover:text-foreground text-muted-foreground">Главная</a><a href="/pricing" class="text-sm transition-colors hover:text-foreground text-muted-foreground">Тарифы</a><a href="/docs" class="text-sm transition-colors hover:text-foreground text-foreground font-medium">Документация</a><a href="/about" class="text-sm transition-colors hover:text-foreground text-muted-foreground">О сервисе</a></nav><div class="hidden md:block"><a href="/auth/telegram/start" rel="nofollow" class="inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 bg-primary text-primary-foreground hover:bg-primary/88 h-9 rounded-md px-3 text-sm"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send" aria-hidden="true"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg>Войти через Telegram</a></div><div class="md:hidden"><button class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground h-10 w-10" aria-label="Открыть меню" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg></button></div></div></header><main class="flex-1"><div class="container-x py-14 sm:py-20"><header class="max-w-2xl"><div class="inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none border-transparent bg-secondary text-secondary-foreground">Быстрый старт</div><h1 class="mt-4 text-4xl font-semibold tracking-tight">Документация</h1><p class="mt-3 text-base leading-relaxed text-muted-foreground">Как получить ключ, указать base URL и выполнить первый запрос к чату или генерации изображений через OpenAI-совместимый API шлюза IISHKO GATEWAY.</p></header><section class="mt-12 grid gap-4 lg:grid-cols-2"><div class="rounded-xl border border-border bg-card text-card-foreground shadow-sm min-w-0"><div class="flex flex-col space-y-1.5 p-6"><h3 class="font-semibold tracking-tight text-base">Чат (OpenAI-совместимый)</h3><p class="text-sm text-muted-foreground">Пример запроса через шлюз.</p></div><div class="p-6 pt-0"><pre class="overflow-x-auto rounded-lg border border-border bg-background p-4 text-xs leading-relaxed"><code>POST https://your-domain.com/v1/chat/completions
Authorization: Bearer $GATEWAY_KEY
Content-Type: application/json
{
&quot;model&quot;: &quot;&lt;модель-из-/api/pricing&gt;&quot;,
&quot;messages&quot;: [
{ &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;Ты полезный ассистент.&quot; },
{ &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Кратко объясни, что такое API-шлюз.&quot; }
]
}</code></pre></div></div><div class="rounded-xl border border-border bg-card text-card-foreground shadow-sm min-w-0"><div class="flex flex-col space-y-1.5 p-6"><h3 class="font-semibold tracking-tight text-base">Генерация изображений</h3><p class="text-sm text-muted-foreground">Пример запроса через шлюз.</p></div><div class="p-6 pt-0"><pre class="overflow-x-auto rounded-lg border border-border bg-background p-4 text-xs leading-relaxed"><code>POST https://your-domain.com/v1/images/generations
Authorization: Bearer $GATEWAY_KEY
Content-Type: application/json
{
&quot;model&quot;: &quot;&lt;модель-генерации-из-/api/pricing&gt;&quot;,
&quot;prompt&quot;: &quot;Фотореалистичный закат над горами&quot;,
&quot;n&quot;: 1
}</code></pre></div></div></section><section class="mt-12 max-w-3xl"><h2 class="text-2xl font-semibold tracking-tight">Шаги подключения</h2><ol class="mt-4 list-decimal space-y-3 pl-5 text-sm leading-relaxed text-muted-foreground"><li>Откройте бота и получите API-ключ: <a href="https://t.me/iishkogatewaybot?start=site" class="text-primary hover:underline" target="_blank" rel="noopener noreferrer">https://t.me/iishkogatewaybot?start=site</a>.</li><li>В клиенте укажите base URL <code class="break-all rounded bg-muted px-1.5 py-0.5 text-foreground">https://your-domain.com/v1</code> и заголовок <code class="rounded bg-muted px-1.5 py-0.5 text-foreground">Authorization: Bearer …</code>.</li><li>Возьмите имя модели из ответа <code class="break-all rounded bg-muted px-1.5 py-0.5 text-foreground">/api/pricing</code> или со страницы «Тарифы».</li><li>Отправьте запрос к нужному эндпоинту и проверьте расход в консоли.</li></ol></section><section class="mt-12 max-w-3xl"><h2 class="text-2xl font-semibold tracking-tight">Частые вопросы</h2><div class="mt-4" data-orientation="vertical"><div data-state="closed" data-orientation="vertical" class="border-b"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_6i_" class="flex flex-1 items-center justify-between gap-4 py-4 text-left text-base font-medium transition-all hover:text-primary [&amp;[data-state=open]&gt;svg]:rotate-180" data-radix-collection-item="">Где взять API-ключ?<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></h3><div data-state="closed" id="radix-_R_16i_" hidden="" role="region" aria-labelledby="radix-_R_6i_" data-orientation="vertical" class="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div><div data-state="closed" data-orientation="vertical" class="border-b"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_ai_" class="flex flex-1 items-center justify-between gap-4 py-4 text-left text-base font-medium transition-all hover:text-primary [&amp;[data-state=open]&gt;svg]:rotate-180" data-radix-collection-item="">Какой base URL указывать?<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></h3><div data-state="closed" id="radix-_R_1ai_" hidden="" role="region" aria-labelledby="radix-_R_ai_" data-orientation="vertical" class="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div><div data-state="closed" data-orientation="vertical" class="border-b"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_ei_" class="flex flex-1 items-center justify-between gap-4 py-4 text-left text-base font-medium transition-all hover:text-primary [&amp;[data-state=open]&gt;svg]:rotate-180" data-radix-collection-item="">Как узнать цену модели?<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></h3><div data-state="closed" id="radix-_R_1ei_" hidden="" role="region" aria-labelledby="radix-_R_ei_" data-orientation="vertical" class="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div><div data-state="closed" data-orientation="vertical" class="border-b"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_ii_" class="flex flex-1 items-center justify-between gap-4 py-4 text-left text-base font-medium transition-all hover:text-primary [&amp;[data-state=open]&gt;svg]:rotate-180" data-radix-collection-item="">Какие форматы запросов поддерживаются?<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></h3><div data-state="closed" id="radix-_R_1ii_" hidden="" role="region" aria-labelledby="radix-_R_ii_" data-orientation="vertical" class="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div><div data-state="closed" data-orientation="vertical" class="border-b"><h3 data-orientation="vertical" data-state="closed" class="flex"><button type="button" aria-expanded="false" data-state="closed" data-orientation="vertical" id="radix-_R_mi_" class="flex flex-1 items-center justify-between gap-4 py-4 text-left text-base font-medium transition-all hover:text-primary [&amp;[data-state=open]&gt;svg]:rotate-180" data-radix-collection-item="">Что если цены не загрузились?<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button></h3><div data-state="closed" id="radix-_R_1mi_" hidden="" role="region" aria-labelledby="radix-_R_mi_" data-orientation="vertical" class="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down" style="--radix-accordion-content-height:var(--radix-collapsible-content-height);--radix-accordion-content-width:var(--radix-collapsible-content-width)"></div></div></div></section><div class="mt-16"><section class="rounded-2xl border border-border bg-card p-8 sm:p-10"><div class="flex flex-col gap-6 sm:flex-row sm:items-center sm:justify-between"><div class="max-w-xl"><h2 class="text-2xl font-semibold tracking-tight">Подключитесь за минуту</h2><p class="mt-2 text-sm leading-relaxed text-muted-foreground">Откройте Telegram-бота, получите API-ключ и начните отправлять запросы через единый шлюз.</p></div><div class="flex shrink-0 flex-col gap-3 sm:flex-row"><a href="/auth/telegram/start" rel="nofollow" class="inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 bg-primary text-primary-foreground hover:bg-primary/88 h-11 rounded-md px-7 text-base"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send" aria-hidden="true"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg>Войти через Telegram</a><a href="https://t.me/iishkogatewaybot?start=site" target="_blank" rel="noopener noreferrer" class="inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:size-4 [&amp;_svg]:shrink-0 border border-input bg-transparent hover:bg-accent hover:text-accent-foreground h-11 rounded-md px-7 text-base">Открыть бота</a></div></div></section></div></div></main><footer class="border-t border-border/70 bg-card/40"><div class="container-x flex flex-col gap-8 py-12 sm:flex-row sm:justify-between"><div class="max-w-sm"><div class="flex items-center gap-2.5"><span class="grid h-8 w-8 place-items-center rounded-lg bg-primary/15 text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send h-4 w-4" aria-hidden="true"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg></span><span class="text-sm font-semibold tracking-tight">IISHKO GATEWAY</span></div><p class="mt-3 text-sm leading-relaxed text-muted-foreground">OpenAI-совместимый API-шлюз к моделям разных вендоров. Подключение, ключи и поддержка — через Telegram-бота.</p></div><nav class="flex flex-col gap-3" aria-label="Ссылки в подвале"><a href="/" class="text-sm text-muted-foreground hover:text-foreground">Главная</a><a href="/pricing" class="text-sm text-muted-foreground hover:text-foreground">Тарифы</a><a href="/docs" class="text-sm text-muted-foreground hover:text-foreground">Документация</a><a href="/about" class="text-sm text-muted-foreground hover:text-foreground">О сервисе</a></nav><div class="flex flex-col gap-3"><a href="/auth/telegram/start" rel="nofollow" class="text-sm text-primary hover:underline">Войти через Telegram</a><a href="https://t.me/iishkogatewaybot?start=site" target="_blank" rel="noopener noreferrer" class="text-sm text-muted-foreground hover:text-foreground">Telegram-бот</a><a href="/api/pricing" class="text-sm text-muted-foreground hover:text-foreground">Цены (JSON)</a></div></div><div class="container-x border-t border-border/60 py-6"><p class="text-xs text-muted-foreground">© <!-- -->IISHKO GATEWAY<!-- -->. Цены и модели — актуальные данные из /api/pricing.</p></div></footer></div></div>
<script type="module" src="/site-assets/assets/main-q3GI4PiK.js"></script>
</body>
</html>