> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# संगीत जनरेशन प्राप्त करें

> Phaseo अनुरोध ID का उपयोग करके संगीत जनरेशन प्राप्त करें।

`POST /music/generate` से बनाया गया संगीत परिणाम प्राप्त करें。 प्रदाता का काम पूरा होने पर यह एंडपॉइंट संग्रहीत सामान्यीकृत परिणाम लौटाता है; जॉब अब भी एसिंक्रोनस होने पर अपस्ट्रीम प्रदाता की जाँच करता है।

## प्रतिक्रिया का स्वरूप

```json theme={null}
{
  "id": "req_01JY6MUSIC123",
  "object": "music",
  "status": "completed",
  "provider": "suno",
  "model": "V4_5PLUS",
  "nativeResponseId": "task_123",
  "output": [
    {
      "index": 0,
      "id": "clip_1",
      "audio_url": "https://...",
      "stream_audio_url": "https://...",
      "image_url": "https://...",
      "title": "Midnight Blue",
      "tags": "jazz, piano",
      "duration": 8
    }
  ],
  "usage": {
    "output_audio_count": 1,
    "output_audio_seconds": 8
  }
}
```

## नोट्स

* `status` इनमें से हो सकता है: `queued`, `in_progress`, `completed`, `failed`।
* जनरेशन पूरा होने पर `usage` शामिल होता है।
* `nativeResponseId` के बजाय `POST /music/generate` द्वारा लौटाया गया Phaseo `id` दें।
* प्रदाता-विशिष्ट स्थिति और पुनर्प्राप्ति API इस एंडपॉइंट के पीछे संभाली जाती हैं।


## OpenAPI

````yaml hi/openapi/v1/openapi.localized.yaml GET /music/generate/{music_id}
openapi: 3.0.3
info:
  title: Phaseo Gateway API
  description: >-
    OpenAI-संगत एंडपॉइंट के माध्यम से विभिन्न AI मॉडल तक पहुँचने के लिए एक गेटवे
    API।
  version: 1.0.0
  contact:
    name: Phaseo
    url: https://phaseo.app
    email: danielbutler500@gmail.com
servers:
  - url: https://api.phaseo.app/v1
    description: वैश्विक रूटिंग
security:
  - BearerAuth: []
tags:
  - name: Gateway
    description: Core Phaseo Gateway operations.
paths:
  /music/generate/{music_id}:
    get:
      tags:
        - Gateway
      summary: संगीत जनरेशन स्थिति प्राप्त करें
      description: >-
        POST /music/generate से मिले Phaseo अनुरोध ID का उपयोग करके सामान्यीकृत
        संगीत परिणाम प्राप्त करता है। प्रदाता-विशिष्ट स्थिति API आंतरिक रूप से
        संभाली जाती हैं।
      operationId: getMusicGeneration
      parameters:
        - name: music_id
          in: path
          required: true
          description: POST /music/generate से लौटाया गया स्थिर Phaseo अनुरोध ID।
          schema:
            type: string
      responses:
        '200':
          description: संगीत जनरेशन स्थिति प्रतिक्रिया
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MusicGenerateResponse'
components:
  schemas:
    MusicGenerateResponse:
      type: object
      required:
        - id
        - object
        - status
        - model
        - provider
      properties:
        id:
          type: string
          description: >-
            स्थिर Phaseo अनुरोध ID, जिसका उपयोग GET /music/generate/{music_id}
            के साथ किया जाता है।
        object:
          type: string
          enum:
            - music
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
            - failed
        model:
          type: string
        provider:
          type: string
        nativeResponseId:
          type: string
          nullable: true
          description: सहसंबंध और सहायता के लिए upstream प्रदाता पहचानकर्ता।
        audio_url:
          type: string
          format: uri
        audio_base64:
          type: string
        result:
          description: Phaseo द्वारा सामान्यीकृत प्रदाता परिणाम मेटाडेटा।
        output:
          type: array
          items:
            type: object
            additionalProperties: true
        usage:
          type: object
          additionalProperties: true
      additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer टोकन से प्रमाणीकरण

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.