Skip to main content
PydanticAI is an agent framework created by the Pydantic team to simplify building production-grade generative AI applications. It brings the ergonomic design philosophy of FastAPI to AI agent development, offering a familiar and type-safe approach to working with language models.

Installing Libraries

Set your Together AI API key:

Example

Output

Next Steps

PydanticAI - Together AI Notebook

Learn more about building agents using PydanticAI with Together AI in our notebook.