---
title: "Agent Y2"
description: "API-key streams for the preconfigured Y2 Agent and compatibility endpoint"
canonical: https://y2.dev/docs/api/reference/agent-y2/
---

Endpoint Reference

# Agent Y2

API-key streams for the preconfigured Y2 Agent and compatibility endpoint

[POST /agent-y2/chat/stream](https://y2.dev/docs/api/reference/agent-y2/streamAgentY2Chat): Stream a Y2 Agent response

[POST /chat/completions](https://y2.dev/docs/api/reference/agent-y2/createY2OpenAIChatCompletion): OpenAI-compatible Agent Y2 chat stream
