Every model you add is reachable at <your api>/ai/v1, in OpenAI’s formats. The SDKs wrap it as pawabase.ai.
Servers use a secret key and can call any model. A browser can use only the public key, and only models set to Signed-in users or Anyone. See Providers and models.

Ask a model

Stream the answer

A failure before the first word is raised as an error with the provider’s reason. A failure partway through ends the stream with an error.

Tools and JSON

Pass tools in OpenAI’s format to let a model ask you to call a function, and responseFormat: { type: "json_object" } (response_format= in Python) to ask for JSON. Anthropic’s native format is translated for you, so the same request works for every provider.
Pawabase does not run the tool loop for you: you call the function and send its result back in the next request.

Any OpenAI client

Errors

Gateway errors use OpenAI’s shape, { "error": { "message", "type", "code" } }, and the SDKs raise them with the message and code kept.