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)..
Koristite OpenAI Responses API za razgovore. Responses API je najnoviji OpenAI API format s fleksibilnijim unosom.
Bearer YOUR_API_KEY| Parametar | Tip | Obavezno | Opis |
|---|---|---|---|
| model | string | Obavezno | Naziv modela, npr. deepseek-v4.1-flash, qwen3.8-max |
| input | string | Obavezno | Ulazni tekst ili sadržaj razgovora |
| max_tokens | integer | Opcionalno | Maksimalan broj izlaznih tokena |
| temperature | float | Opcionalno | Temperatura uzorkovanja, kontrolira slučajnost (0-2) |
| stream | boolean | Opcionalno | Omogući streaming odgovor, postavite na true za SSE |
| Parametar | Tip | Opis |
|---|---|---|
| id | string | Jedinstveni identifikator odgovora |
| model | string | Stvarno korišteni model |
| output | string | Generirani tekstualni izlaz |
| usage | object | Statistika korištenja tokena uključujući 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
}'