Environment variables
The Zak_ai HTTP client is configured exclusively through environment variables.
ZAKAI_API_KEY
-
- Type
- string
- Default
- (empty)
The API key issued by Zak_ai after a successful registration. When empty, all authenticated API calls throw a
\RuntimeException.Obtain the key by completing the registration wizard in the backend module.
ZAKAI_SECRET
-
- Type
- string
- Default
- (empty)
The secret associated with your Zak_ai account. Together with
ZAKAI_API_KEYit forms the HTTP Basic Auth header sent with every authenticated request.
API base URL
The Zak_ai API base URL is defined in Configuration/.
To override it in a specific environment, rebind the service argument in your project's
Services.:
Wegewerk\Ai3Core\Api\ZakAiClient:
arguments:
$baseUrl: 'https://staging.zak-ai.com/api/v1/'
Or define to use another env-var:
Wegewerk\Ai3Core\Api\ZakAiClient:
arguments:
$baseUrl: '%env(ZAK_AI_BASE_URL)%'
Default model
The default inference model is mistral-small3.2:latest, defined as the
DEFAULT_MODEL constant in
\Wegewerk\. It is appended automatically to
every POST payload.
It is not detemined yet if this should be user configurable in the future.