Documentation Index
Fetch the complete documentation index at: https://docs.elumenta.ru/llms.txt
Use this file to discover all available pages before exploring further.
Python SDK
from elumenta import Elumenta
nb = Elumenta(api_key="nb_ВАШ_КЛЮЧ")
# Генерация текста
response = nb.generate(model="gpt-5", prompt="Привет!")
print(response.result_text)
# Генерация изображения
img = nb.generate(
model="flux-1.1-pro",
prompt="Футуристический город",
params={"size": "1024x1024", "format": "webp"}
)
print(img.result_url)
# Стриминг
for chunk in nb.stream(model="claude-sonnet-4.5", prompt="Напиши рассказ"):
print(chunk.delta, end="", flush=True)
JavaScript / TypeScript
import { Elumenta } from "@elumenta/sdk";
const nb = new Elumenta({ apiKey: "nb_ВАШ_КЛЮЧ" });
const response = await nb.generate({
model: "gpt-5",
prompt: "Привет!",
});
console.log(response.resultText);
Прямые HTTP-запросы
SDK необязателен — API работает с любым HTTP-клиентом:
// Go
req, _ := http.NewRequest("POST", "https://elumenta.ru/api/v2/generate", body)
req.Header.Set("Authorization", "Bearer nb_ВАШ_КЛЮЧ")
req.Header.Set("Content-Type", "application/json")
// PHP
$ch = curl_init("https://elumenta.ru/api/v2/generate");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer nb_ВАШ_КЛЮЧ"]);
Полезные ссылки