Configure a Google Flow Music account
June 3, 2026 (December 1, 2026)
Table of contents
Configure a Google Flow Music account for API access using its refresh token. See Setup Flow Music for how to obtain the token.
Each useapi.net subscription lets you connect 3 Google Flow Music accounts, up to 100 in total. To change how many jobs an account runs at once, send email and maxJobs again without a token. The Request Body below shows both.
https://api.useapi.net/v1/flowmusic/accounts
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Or send the same fields as multipart/form-data:
# Content-Type: multipart/form-data
API tokenis required. Setup useapi.net shows where to get it.
Request Body
To add or refresh an account, send its refresh_token. Setup Flow Music shows where to find it.
We read the plan from Google Flow Music each time you add or refresh the account. The Google Flow Music plan included with Google AI Plus, Google AI Pro or Google AI Ultra reads as starter, plus or member. The plan is read again about every hour while the account is in use, and the default maxJobs follows a plan change. GET /accounts/email picks up a change at once.
To change maxJobs on an account you already added, send email and maxJobs only, with no refresh_token. Nothing else changes, and the sign-in is not refreshed.
-
{ "refresh_token": "bdykxtrr5eaf...", "maxJobs": 12 } -
{ "email": "[email protected]", "maxJobs": 4 }
refresh_tokenis optional. The Google Flow Music refresh token (see Setup Google Flow Music): required to add or refresh an account. The plan is read from Google Flow Music each time.emailis required withoutrefresh_token. Only to changemaxJobsof an added account: sendemailandmaxJobsalone, withoutrefresh_token.maxJobsis required withoutrefresh_token. How many jobs the account runs at once, 1 to 16. Left out, the plan’s own limit: Free 2, Starter 8, Plus 12, Member 16. To change it on an added account, sendemailandmaxJobswithoutrefresh_token.
Range:1to16.
Responses
-
The saved account, without its tokens. When you send
refresh_token, the plan intieris read from Google Flow Music.{ "email": "[email protected]", "tier": "plus", "subscription_plan": "plus-monthly", "provider": "g1_entitlement", "user_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "maxJobs": 12, "added": "2026-06-01T12:00:00.000Z", "refreshed_at": "2026-06-01T12:00:00.000Z", "refreshed_count": 0, "access_token": "eyJ…redacted…zmQ", "access_token_expires_at": "2026-06-01T13:00:00.000Z", "refresh_token": "l6e…redacted…z4v", "session_id": "f0e1d2c3-b4a5-4768-9a0b-1c2d3e4f5a6b" } -
The request itself is wrong, or no usable Google Flow Music account is added. The error text says what to change.
{ "error": "Provide refresh_token to add an account, or email + maxJobs to update its concurrency limit", "code": 400 }{ "error": "maxJobs is required when updating an account by email", "code": 400 }{ "error": "When updating by email, send email + maxJobs only", "code": 400 }{ "error": "email is not accepted with refresh_token — the account email is read from the token; send email + maxJobs alone to update maxJobs", "code": 400 }{ "error": "Failed to verify refresh_token: malformed JWT", "code": 400 }{ "error": "refresh_token is missing an email claim", "code": 400 }{ "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON", "code": 400 } -
The useapi.net API token is missing or wrong.
{ "error": "useapi.net ⁝ Unauthorized", "code": 401 } -
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 } -
The account, job or clip does not exist, or is no longer there.
{ "error": "Account [email protected] not found", "code": 404 } -
Something failed on our side.
{ "error": "Cannot read properties of undefined (reading 'email')", "code": 500 } -
Google Flow Music answered with an error, or did not answer. The error text says what happened.
{ "error": "Upstream network failure after 4 attempts: Network connection lost.", "code": 502 }{ "error": "Upstream fetch produced no response", "code": 502 } -
The Google Flow Music sign-in service did not answer, or another request is renewing the account’s sign-in right now. The account is unchanged. Retry in a minute, or after Retry-After when it is sent. On any call, it can also mean our service was busy for a moment.
{ "error": "Another request is refreshing the Google Flow Music sign-in of [email protected] right now. Retry in a few seconds.", "code": 503 }{ "error": "Google Flow Music's sign-in service did not answer (500). Retry in a minute.", "code": 503 } -
596 Account Error
The account is in an error state. Add it again with POST /accounts.
{ "error": "Account [email protected] in error state: Google Flow Music signed out [email protected]: its sign-in can no longer be refreshed (refresh_token_already_used), usually because it was refreshed somewhere else. Add the account again: https://useapi.net/docs/start-here/setup-flowmusic", "code": 596 }{ "error": "Google Flow Music signed out [email protected]: its sign-in can no longer be refreshed (refresh_token_already_used), usually because it was refreshed somewhere else. Add the account again: https://useapi.net/docs/start-here/setup-flowmusic", "code": 596 }
Model
200 returns the account record, for a new account and for an update alike.
The account
{ // TypeScript, fields marked ? may be absent
email: string // the Google Flow Music account's email
tier: "free" | "starter" | "plus" | "member" | "unknown" // the account's Google Flow Music plan, read on each call
subscription_plan?: string // the plan Google Flow Music names, on a paid plan only
provider?: string // where the plan was bought, on a paid plan only
user_id: string // the account's Google Flow Music user id
maxJobs: number // how many songs and edits may run on the account at once
added: string // when the account was added, ISO 8601
refreshed_at: string // when its sign-in was last refreshed, ISO 8601
refreshed_count: number // how many times its sign-in was refreshed
access_token: string // the sign-in token, redacted
access_token_expires_at: string // when the sign-in token expires, ISO 8601
refresh_token: string // the refresh token, redacted
session_id: string // the account's session id
error?: string // why the account cannot be used. Present only when it needs to be added again
}
Examples
-
curl -X POST "https://api.useapi.net/v1/flowmusic/accounts" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"refresh_token":"bdykxtrr5eaf...","maxJobs":12}' -
const response = await fetch('https://api.useapi.net/v1/flowmusic/accounts', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'application/json' }, body: JSON.stringify({ "refresh_token": "bdykxtrr5eaf...", "maxJobs": 12 }) }) console.log(response.status, await response.json()) -
import requests response = requests.post( 'https://api.useapi.net/v1/flowmusic/accounts', headers={'Authorization': 'Bearer YOUR_API_TOKEN'}, json={ 'refresh_token': 'bdykxtrr5eaf...', 'maxJobs': 12 }, ) print(response.status_code, response.json())