---
title: "SSE 状态流（免费）/ Server-sent events (free)"
method: GET
path: "/v1/generations/{id}/events"
tags: ["Generate"]
---

# SSE 状态流（免费）/ Server-sent events (free)

`GET /v1/generations/{id}/events`

## Request

- Base URL: `https://api.musicsforyou.com`
- URL: `https://api.musicsforyou.com/v1/generations/{id}/events`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://www.musicsforyou.com/oauth/authorize`, token URL `https://api.musicsforyou.com/oauth/token`, scopes: `music`)
  - none

`text/event-stream`，每 3 秒一条 `event: status`（data 为 Generation JSON），终态后关闭，最长 10 分钟；出错时 `event: error`。

Emits `status` events every 3 s with the Generation JSON until finished/failed (max 10 min); `error` event on failure.

## Path parameters

- `id` string, required

## Response `200`

事件流 / Event stream

---

[API](https://skmtc.dev/musicsforyou/apis/taoyuan-music-api.md) · [All operations](https://skmtc.dev/musicsforyou/apis/taoyuan-music-api/llms.txt) · [OpenAPI document](https://skmtc.dev/musicsforyou/apis/taoyuan-music-api/revisions/65b8919a4d82?raw)
