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

# Boost music style: Create task

> Synchronous endpoint: `model` picks the endpoint and the parameters go in `input`; the result comes back in `data` of the response, with nothing to poll. Every response has HTTP status 200; check `code`.



## OpenAPI

````yaml /openapi/en/suno-boost-style.json post /api/v1/jobs/createTask
openapi: 3.1.0
info:
  description: >-
    Expand a short style description into a detailed music style text ready to
    use, returned synchronously.
  title: Suno Boost music style
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno Boost music style
paths:
  /api/v1/jobs/createTask:
    post:
      tags:
        - Suno Boost music style
      summary: Create task
      description: >-
        Synchronous endpoint: `model` picks the endpoint and the parameters go
        in `input`; the result comes back in `data` of the response, with
        nothing to poll. Every response has HTTP status 200; check `code`.
      operationId: sunoCreateTask
      requestBody:
        content:
          application/json:
            examples:
              Boost a style description:
                description: >-
                  Pass a short style description; the expanded style text comes
                  back in the response.
                summary: Boost a style description
                value:
                  model: ai-music-api/boost-music-style
                  callBackUrl: https://your-domain.com/api/callback
                  input:
                    content: Pop, Mysterious
              Without a callback:
                description: Read only the synchronous response, without `callBackUrl`.
                summary: Without a callback
                value:
                  model: ai-music-api/boost-music-style
                  input:
                    content: Lo-fi hip hop, rainy night, warm vinyl crackle
            schema:
              $ref: '#/components/schemas/SunoCreateTaskRequestSunoBoostStyleInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                Created:
                  description: The result is returned at once; `data` is the result.
                  summary: Created
                  value:
                    code: 200
                    data:
                      createTime: 1795015848000
                      errorCode: null
                      errorMsg: null
                      param: Pop, Mysterious
                      result: >-
                        Mysterious pop with a restrained, late-night pulse:
                        muted electronic kick, crisp rim-click snare, and
                        syncopated sub-bass beneath glassy synth plucks and a
                        detuned piano motif. Close, breathy vocals sit in a
                        narrow, dry space, then gain doubled harmonies and short
                        reverse-reverb tails. Sparse verses open into a wider
                        chorus with pulsing pads and filtered percussion.
                      successFlag: '1'
                      taskId: 7d3f0a9c41e85b2f6a1c9e04b8d27f53
                    msg: success
                Invalid request (422):
                  description: The request is invalid; no task is created or charged.
                  summary: Invalid request (422)
                  value:
                    code: 422
                    msg: input.content is required.
                    data: null
                Unauthorized (401):
                  description: Missing or invalid API Key.
                  summary: Unauthorized (401)
                  value:
                    code: 401
                    msg: >-
                      Unauthorized - Authentication credentials are missing or
                      invalid
                    data: null
                Insufficient balance (402):
                  description: The balance does not cover the task.
                  summary: Insufficient balance (402)
                  value:
                    code: 402
                    msg: >-
                      Insufficient Credits - Account does not have enough
                      credits to perform the operation
                    data: null
                Rate limited (429):
                  description: Rate limit exceeded; retry later.
                  summary: Rate limited (429)
                  value:
                    code: 429
                    msg: >-
                      Rate Limited - Request limit has been exceeded for this
                      resource
                    data: null
                Server error (500):
                  description: >-
                    The service is temporarily unavailable; retry later. Not
                    charged.
                  summary: Server error (500)
                  value:
                    code: 500
                    msg: >-
                      Server Error - An unexpected error occurred while
                      processing the request
                    data: null
              schema:
                $ref: '#/components/schemas/SunoSyncCreateResponse'
          description: >-
            Always HTTP 200. With `code` `200` the task was created and
            `data.taskId` is its ID; any other `code` is an error with the
            reason in `msg` and `data` `null`.
          headers:
            X-Request-Id:
              description: ID of this request; include it when reporting issues.
              schema:
                type: string
components:
  schemas:
    SunoCreateTaskRequestSunoBoostStyleInput:
      additionalProperties: false
      description: Request body of createTask.
      properties:
        model:
          default: ai-music-api/boost-music-style
          description: |-
            Endpoint name; it decides the fields of `input`.

            **Allowed values:**
            - `ai-music-api/boost-music-style`: Suno Boost music style
          enum:
            - ai-music-api/boost-music-style
          type: string
        callBackUrl:
          description: >-
            Optional URL that receives a callback when the task finishes
            (success or failure); it must be a public `http` / `https` URL.
            Recommended in production; you can also just poll the query
            endpoint. See Task callback for the body and signature.
          type: string
        input:
          $ref: '#/components/schemas/SunoBoostStyleInput'
          description: Task parameters; the fields depend on `model`.
      required:
        - model
        - input
      type: object
    SunoSyncCreateResponse:
      additionalProperties: false
      description: >-
        Response of createTask for a synchronous endpoint; `data` is the result.
        Always HTTP 200.
      properties:
        code:
          description: >-
            Result code:

            - `200`: success

            - `401`: missing or invalid API Key

            - `402`: insufficient balance

            - `404`: the model does not exist or is not enabled

            - `405`: wrong HTTP method

            - `422`: invalid request, with the reason in `msg`; no task is
            created or charged

            - `429`: too many requests; retry later

            - `455`: service under maintenance

            - `500`: server error; retry later

            - `501`: generation failed

            - `505`: feature disabled
          format: int64
          type: integer
        msg:
          description: 'Message: `success`, or the English reason of an error.'
          type: string
        data:
          $ref: '#/components/schemas/SunoBoostStyleSyncData'
          description: The result on success; `null` on error.
      required:
        - code
        - msg
        - data
      type: object
    SunoBoostStyleInput:
      additionalProperties: false
      description: Parameters of `ai-music-api/boost-music-style`.
      properties:
        content:
          description: >-
            Required. Style description: describe the music style you expect in
            concise, clear words, e.g. `Pop, Mysterious`.
          type: string
      required:
        - content
      type: object
    SunoBoostStyleSyncData:
      additionalProperties: false
      description: The boost result.
      properties:
        taskId:
          description: >-
            Task ID (issued by DreamTo); use it with the query endpoint to read
            the result again.
          type: string
        param:
          description: The style description of the request (`input.content`).
          type: string
        result:
          description: >-
            The expanded music style text, ready to use as `style` in music
            generation.
          type: string
        successFlag:
          description: Execution result flag (returned on success).
          type: string
        errorCode:
          description: Error code; `null` on success.
          format: int64
          type:
            - integer
            - 'null'
        errorMsg:
          description: Error message; `null` on success.
          type:
            - string
            - 'null'
        createTime:
          description: Creation time (Unix timestamp in milliseconds).
          format: int64
          type: integer
      required:
        - taskId
        - param
        - result
        - successFlag
        - errorCode
        - errorMsg
        - createTime
      type: object
  securitySchemes:
    bearerAuth:
      description: >-
        API Key created in the DreamTo console, sent as `Authorization: Bearer
        <API Key>`.
      scheme: bearer
      type: http

````

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