Docs / Frameworks & integrations

Pydantic AI

Type-safe agent framework — point its OpenAI-compatible provider at the gateway.

Install

Add the package to your project:

bash
pip install pydantic-ai

Configure

Point the client at the gateway base URL with your key:

Python
from pydantic_ai import Agent
from pydantic_ai.models.openai import OpenAIModel
from pydantic_ai.providers.openai import OpenAIProvider

model = OpenAIModel(
    "qwen/qwen3.8-max",
    provider=OpenAIProvider(
        base_url="https://api.jackz.ai/v1",
        api_key="JACKZ_API_KEY",
    ),
)
agent = Agent(model)
result = agent.run_sync("Hello")
print(result.output)

Notes

Any model slug from the catalog works. Refer to the tool's own documentation for advanced configuration.

Official docs: ai.pydantic.dev ↗