Poll a job

June 3, 2026 (November 16, 2026)

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

Fetch one job record by its jobid. Use it to poll an async request of POST /music until status is completed or failed. It also works for a sync request that answered with a job because the result was not ready in time. A sync song waits up to 7 minutes, and most sync edits up to 2 minutes. A job whose result never reaches us is marked failed with error.code timeout when you fetch it more than 20 minutes after it started.

https://api.useapi.net/v1/flowmusic/jobs/jobid

  • jobid is required. The jobid of a POST /music or /music/edit answer, URL-encoded (it holds : and @).

Request Headers

Authorization: Bearer {API token}

Responses

  • 200 OK

    The job record. status is pending, completed with its clips, or failed with error.code and error.message.

    {
      "jobid": "job:2b11b3cd-e5c9-4abf-b63e-9a6311ce099b-user:[email protected]:flowmusic",
      "email": "[email protected]",
      "status": "completed",
      "created_at": "2026-11-28T22:53:30.383Z",
      "completed_at": "2026-11-28T22:55:44.041Z",
      "duration_ms": 133658,
      "clips": [
        {
          "clip": "user:[email protected]:6e6d7abd-2a7f-4f4a-8390-b2a158ac10ec",
          "title": "Home Again (Classic Take)",
          "duration_s": 181.90933333333334,
          "lyrics": "[Verse 1]\nRain on the window,\nTea's in the cup,\nWatching the gray sky,\nJust waking up.\nOld photographs in a box on the floor,\nTaking me back to the places I've known before.\n\n[Chorus]\nHome again,\nWhere my heart wants to be,\nSafe in the memories,\nHolding onto me.\nHome again,\nLight in the hall,\nFinding my peace here,\nAfter it all.\n\n[Verse 2]\nDust on the bookshelf,\nBooks that I've read,\nStories and dreams that still live in my head.\nClock on the mantle is ticking so slow,\nSinging a song of the long, long ago.\nThe fire's just an ember, the shadows are tall,\nBut I feel so safe here, inside of these walls.\n\n[Chorus]\nHome again,\nWhere my heart wants to be,\nSafe in the memories,\nHolding onto me.\nHome again,\nLight in the hall,\nFinding my peace here,\nAfter it all.\n\n[Chorus]\nHome again,\nWhere my heart wants to be,\nSafe in the memories,\nHolding onto me.\nHome again,\nLight in the hall,\nFinding my peace here,\nAfter it all.\n\n[Outro]\nHome again,\n(Home again),\n(Ooh, ooh).",
          "seed": null,
          "lyrics_timing": null,
          "created_at": "2026-11-28T22:53:56.722450Z",
          "audio_url": "https://storage.googleapis.com/producer-app-public/clips/6e6d7abd-2a7f-4f4a-8390-b2a158ac10ec.m4a",
          "wav_url": "https://storage.googleapis.com/producer-app-public/clips/6e6d7abd-2a7f-4f4a-8390-b2a158ac10ec.wav",
          "image_url": "https://storage.googleapis.com/producer-app-public/assets/a98870b9-c77e-5fdc-95c2-f14cecdb5c17.jpg"
        }
      ],
      "request": {
        "prompt": "calm acoustic pop",
        "lyrics": "[Verse]\nRain on the window\n[Chorus]\nHome again",
        "model": "lyria-3.5"
      }
    }
    
  • 400 Bad Request

    The request itself is wrong, or no usable Google Flow Music account is added. The error text says what to change.

    {
      "error": "Please configure at least one account at https://useapi.net/docs/api-flowmusic-v1/post-flowmusic-accounts",
      "code": 400
    }
    
    {
      "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON",
      "code": 400
    }
    
  • 401 Unauthorized

    The useapi.net API token is missing or wrong.

    {
      "error": "useapi.net ⁝ Unauthorized",
      "code": 401
    }
    
  • 402 Payment Required

    The useapi.net subscription is not active.

    {
      "error": "useapi.net ⁝ Your account has no subscription, please subscribe to our services before submitting requests",
      "code": 402
    }
    
  • 403 Forbidden

    The id belongs to another API token.

    {
      "error": "jobid does not belong to authenticated operator (parsed user:12346, calling user:12345)",
      "code": 403
    }
    
  • 404 Not Found

    The account, job or clip does not exist, or is no longer there.

    {
      "error": "no job with id job:2c9a1e3f-6b8d-4f0a-9e7c-1d2b3c4d5e6f-user:[email protected]:flowmusic",
      "code": 404
    }
    
  • 500 Internal Server Error

    Something failed on our side.

    {
      "error": "Cannot read properties of undefined (reading 'email')",
      "code": 500
    }
    

Model

The job record. It has the same shape as the answer of POST /music and POST /music/edit. operation is present only for edit jobs, clips appears once completed, and error appears when failed.

The job record and the types it uses (SongJob, Clip, SongRequest, EditJob, EditRequest)
// TypeScript, fields marked ? may be absent
SongJob | EditJob

SongJob:

{ // TypeScript, fields marked ? may be absent
  jobid: string  // the job's id, `job:<uuid>-user:[email protected]:flowmusic`. Read the job with GET /jobs/{jobid}
  email: string  // the Google Flow Music account the job runs on
  status: "pending" | "completed" | "failed"  // pending: Google Flow Music is still making it. completed: the clips are ready. failed: error says why
  created_at: string  // when the job started, ISO 8601
  completed_at?: string  // when the job ended, ISO 8601. Present once the job has completed or failed. A cancelled job has none
  duration_ms?: number  // how long the job took, in milliseconds. Present once it is completed
  cancelled_at?: string  // when DELETE /jobs/{jobid} cancelled the job, ISO 8601
  clips?: Clip[]  // the result clips. Present once the job is completed
  error?: {
    code: string  // why the job failed, such as `user_cancelled` or `timeout`
    message: string  // the failure in words
    detail?: string  // more on the failure, when there is more
    raw?: string  // the start of Google Flow Music's own reply, when it made no audio
  }  // why the job failed. Present when status is failed
  request: SongRequest  // the request body you sent, echoed back
}

Clip:

{ // TypeScript, fields marked ? may be absent
  clip: string  // the encoded clip id, `user:[email protected]:<uuid>`: use it with GET /music/download and POST /music/edit
  title: string | null  // the song title Google Flow Music gave the clip
  duration_s: number | null  // the clip length in seconds, or null while Google Flow Music has not finished measuring it
  lyrics: string | null  // the lyrics, [Verse] / [Chorus] tagged, or "[Instrumental]" for an instrumental
  seed: number | null  // the seed the clip was made with, when Google Flow Music states one
  lyrics_timing: number[][] | null  // the timing markers of the sung lyrics, each [start, end] in seconds, or null when Google Flow Music sends none, which also happens for sung songs
  created_at: string  // when Google Flow Music made the clip, ISO 8601
  audio_url: string  // the m4a file, a public link (no token needed)
  wav_url: string  // the wav file, a public link (no token needed)
  image_url: string | null  // the artwork Google Flow Music made for the clip, when there is one
}

SongRequest:

{ // TypeScript, fields marked ? may be absent
  prompt: string  // the song description, as sent
  email?: string  // the account, as sent
  instrumental?: boolean  // true when an instrumental was asked for
  lyrics?: string  // your own lyrics, as sent
  ghostwriter?: "standard" | "pro"  // the lyrics writer, as sent
  model?: "lyria-3.5" | "lyria-3-pro"  // the model the request named
  mode?: "sync" | "async"  // sync or async, as sent
  replyUrl?: string  // the webhook URL, as sent
  replyRef?: string  // the webhook reference, as sent
  refImage1?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage2?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage3?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage4?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage5?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage6?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage7?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage8?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage9?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refImage10?: string  // an image asset id from POST /files or POST /files/generate, as sent
  refAudio1?: string  // an audio asset id from POST /files, as sent
  refAudio2?: string  // an audio asset id from POST /files, as sent
  refAudio3?: string  // an audio asset id from POST /files, as sent
  refAudio4?: string  // an audio asset id from POST /files, as sent
  refAudio5?: string  // an audio asset id from POST /files, as sent
  refAudio6?: string  // an audio asset id from POST /files, as sent
  refAudio7?: string  // an audio asset id from POST /files, as sent
  refAudio8?: string  // an audio asset id from POST /files, as sent
  refAudio9?: string  // an audio asset id from POST /files, as sent
  refAudio10?: string  // an audio asset id from POST /files, as sent
}

EditJob:

{ // TypeScript, fields marked ? may be absent
  jobid: string  // the job's id, `job:<uuid>-user:[email protected]:flowmusic`. Read the job with GET /jobs/{jobid}
  email: string  // the Google Flow Music account the job runs on
  operation: "effect" | "extend" | "replace" | "cover" | "remix"  // the edit
  sub_operation?: "Trim" | "Fade" | "Gain" | "Reverb" | "Pan" | "Equalizer"  // with operation effect: the effect
  status: "pending" | "completed" | "failed"  // pending: Google Flow Music is still making it. completed: the clips are ready. failed: error says why
  created_at: string  // when the job started, ISO 8601
  completed_at?: string  // when the job ended, ISO 8601. Present once the job has completed or failed. A cancelled job has none
  duration_ms?: number  // how long the job took, in milliseconds. Present once it is completed
  cancelled_at?: string  // when DELETE /jobs/{jobid} cancelled the job, ISO 8601
  clips?: Clip[]  // the result clips. Present once the job is completed
  error?: {
    code: string  // why the job failed, such as `user_cancelled` or `timeout`
    message: string  // the failure in words
    detail?: string  // more on the failure, when there is more
    raw?: string  // the start of Google Flow Music's own reply, when it made no audio
  }  // why the job failed. Present when status is failed
  request: EditRequest  // the request body you sent, echoed back
}

EditRequest:

{ // TypeScript, fields marked ? may be absent
  operation: "effect" | "extend" | "replace" | "cover" | "remix" | "stems"  // the edit, as sent
  clip: string  // the clip edited, as sent
  effect?: "Trim" | "Fade" | "Gain" | "Reverb" | "Pan" | "Equalizer"  // with operation effect: the effect, as sent
  gain_db?: number  // `gain_db`, as sent
  mix?: number  // `mix`, as sent
  room_size?: number  // `room_size`, as sent
  pan?: number  // `pan`, as sent
  bass_db?: number  // `bass_db`, as sent
  mid_db?: number  // `mid_db`, as sent
  treble_db?: number  // `treble_db`, as sent
  fade_in_s?: number  // `fade_in_s`, as sent
  fade_out_s?: number  // `fade_out_s`, as sent
  start_s?: number  // `start_s`, as sent
  end_s?: number  // `end_s`, as sent
  extend_s?: number  // `extend_s`, as sent
  extend_from_s?: number  // `extend_from_s`, as sent
  mask_start_s?: number  // `mask_start_s`, as sent
  mask_end_s?: number  // `mask_end_s`, as sent
  strength?: number  // `strength`, as sent
  instruction?: string  // what to make (extend, replace) or the style direction (cover), as sent
  title?: string  // the title asked for, as sent
  seed?: number  // the seed asked for, as sent
  lyrics?: string  // remix: the new lyrics, as sent
  prompt?: string  // remix: the sound prompt, as sent
  model?: "lyria-3.5" | "lyria-3-pro"  // the model the request named
  mode?: "sync" | "async"  // sync or async, as sent
  replyUrl?: string  // the webhook URL, as sent
  replyRef?: string  // the webhook reference, as sent
}

Examples

  • curl "https://api.useapi.net/v1/flowmusic/jobs/job:2c9a1e3f-6b8d-4f0a-9e7c-1d2b3c4d5e6f-user:[email protected]:flowmusic" \
         -H "Authorization: Bearer YOUR_API_TOKEN"
    
  • const response = await fetch('https://api.useapi.net/v1/flowmusic/jobs/job:2c9a1e3f-6b8d-4f0a-9e7c-1d2b3c4d5e6f-user:[email protected]:flowmusic', {
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN'
      }
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.get(
        'https://api.useapi.net/v1/flowmusic/jobs/job:2c9a1e3f-6b8d-4f0a-9e7c-1d2b3c4d5e6f-user:[email protected]:flowmusic',
        headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
    )
    print(response.status_code, response.json())
    

Try It