All endpoints are accessed through the current site domain (proxied). The domain in the examples below is generated dynamically by the page — no manual replacement needed.
echo exaiv.com;; *) echo https://exaiv.com;; esac)Auth: send an Authorization: Bearer YOUR_API_KEY header; for sub-sites also send x-site-id (credits are isolated per site)..
Użyj OpenAI Responses API do konwersacji. Responses API to najnowszy format API OpenAI z bardziej elastycznymi danymi wejściowymi.
Bearer YOUR_API_KEY| Parametr | Typ | Wymagane | Opis |
|---|---|---|---|
| model | string | Wymagane | Nazwa modelu, np. deepseek-v4.1-flash, qwen3.8-max |
| input | string | Wymagane | Tekst wejściowy lub treść konwersacji |
| max_tokens | integer | Opcjonalne | Maksymalna liczba tokenów wyjściowych |
| temperature | float | Opcjonalne | Temperatura próbkowania, kontroluje losowość (0-2) |
| stream | boolean | Opcjonalne | Włącz strumieniowanie odpowiedzi, ustaw na true dla SSE |
| Parametr | Typ | Opis |
|---|---|---|
| id | string | Unikalny identyfikator odpowiedzi |
| model | string | Faktycznie użyty model |
| output | string | Wygenerowany tekst wyjściowy |
| usage | object | Statystyki użycia tokenów, w tym prompt_tokens, completion_tokens, total_tokens |
curl echo exaiv.com;; *) echo https://exaiv.com;; esac)/api/ai/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "deepseek-v4.1-flash",
"input": "Hello, who are you?",
"max_tokens": 1000
}'