Environment variables 

The Zak_ai HTTP client is configured exclusively through environment variables.

ZAKAI_API_KEY

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

ZAKAI_SECRET
Type
string
Default
(empty)

The secret associated with your Zak_ai account. Together with ZAKAI_API_KEY it forms the HTTP Basic Auth header sent with every authenticated request.

API base URL 

The Zak_ai API base URL is defined in Configuration/Services.yaml. To override it in a specific environment, rebind the service argument in your project's Services.yaml:

config/services.yaml (project level)
Wegewerk\Ai3Core\Api\ZakAiClient:
    arguments:
        $baseUrl: 'https://staging.zak-ai.com/api/v1/'
Copied!

Or define to use another env-var:

config/services.yaml (project level)
Wegewerk\Ai3Core\Api\ZakAiClient:
    arguments:
        $baseUrl: '%env(ZAK_AI_BASE_URL)%'
Copied!

Default model 

The default inference model is mistral-small3.2:latest, defined as the DEFAULT_MODEL constant in \Wegewerk\Ai3Core\Api\ZakAiClient. It is appended automatically to every POST payload.

It is not detemined yet if this should be user configurable in the future.