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)..
Brug OpenAI Responses API til samtaler. Responses API er det nyeste OpenAI API-format med mere fleksibelt input.
Bearer YOUR_API_KEY| Parameter | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| model | string | Påkrævet | Modelnavn, f.eks. deepseek-v4.1-flash, qwen3.8-max |
| input | string | Påkrævet | Inputtekst eller samtaleindhold |
| max_tokens | integer | Valgfri | Maksimalt antal output-tokens |
| temperature | float | Valgfri | Samplingtemperatur, styrer tilfældighed (0-2) |
| stream | boolean | Valgfri | Aktivér streaming-svar, sæt til true for SSE |
| Parameter | Type | Beskrivelse |
|---|---|---|
| id | string | Unik svaridentifikator |
| model | string | Faktisk anvendt model |
| output | string | Genereret tekstoutput |
| usage | object | Tokenforbrugsstatistik inklusive 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
}'