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)..
Használd az OpenAI Responses API-t beszélgetésekhez. A Responses API az OpenAI legújabb API-formátuma, rugalmasabb bemenettel.
Bearer YOUR_API_KEY| Paraméter | Típus | Kötelező | Leírás |
|---|---|---|---|
| model | string | Kötelező | Modell neve, pl. deepseek-v4.1-flash, qwen3.8-max |
| input | string | Kötelező | Bemeneti szöveg vagy beszélgetés tartalma |
| max_tokens | integer | Opcionális | Kimeneti tokenek maximális száma |
| temperature | float | Opcionális | Mintavételi hőmérséklet, a véletlenszerűséget szabályozza (0-2) |
| stream | boolean | Opcionális | Streaming válasz engedélyezése, SSE-hez állítsd true-ra |
| Paraméter | Típus | Leírás |
|---|---|---|
| id | string | Egyedi válaszazonosító |
| model | string | Ténylegesen használt modell |
| output | string | Generált szöveges kimenet |
| usage | object | Tokenhasználati statisztikák, beleértve a prompt_tokens, completion_tokens, total_tokens értékeket |
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
}'