# auray-ai/minimax-music-3/text-to-audio `POST https://queue.auray.run/auray-ai/minimax-music-3/text-to-audio` submits; the response carries a `request_id` and the three URLs to use next. `POST https://auray.run/auray-ai/minimax-music-3/text-to-audio` is the same request run synchronously: the connection is held and the response is the model's OUTPUT, the same document the result URL would have answered. A request that usually takes longer than a run may hold its connection is refused `400 model_not_synchronous` there before anything is charged, naming `expected_seconds` and `wait_ceiling_seconds` — submit it to the queue instead. Past the deadline a run is `504 run_timed_out` with `X-Auray-Request-Timeout-Type: user` — the request is still alive, running and charged or, while it waits to start, not yet charged (`charged` says which) — so poll `status_url` rather than resending, or resend with the same `idempotency_key` to be handed this request again instead of a second one. A run holds one of the connections this platform, this product and your account may keep waiting; with all of them in use it is refused `429 wait_capacity` with `Retry-After` before anything is charged (`charged: false`), and retrying after that pause is safe. One of the models behind Auray's apps. Price: A flat base per job plus one credit for each block of seconds of audio you ask for; GET /v1/plans serves the base and the seconds a credit buys in force as `price_keys` (`music.base`, `music.seconds_per_credit`), the submit quotes the credits, and the part for audio that comes back short is refunded. Fields read from https://api.auray.ai/v1/openapi.json on 2026-08-31. Every error code is explained at https://auray.ai/docs/api/errors. Address: auray-ai/minimax-music-3/text-to-audio Servers: https://queue.auray.run · https://auray.run Scope: audio:write Auth: Authorization: Bearer auray_sk_… API enabled: yes ## Input - prompt (string, required) — The song to write — genre, mood, instruments, voice. Shares the model's 5,000-token budget with the lyrics. Documented range: up to 5,000 characters. - duration_seconds (integer, required) — Ten seconds to five minutes. Outside 10–300 the request is refused with 422 duration_out_of_range, before any charge. An instrumental runs at least 90% of it. A song with lyrics ends when its lyrics do, so a long one needs enough of them. Seconds that do not arrive are refunded. Documented range: 10 to 300. - lyrics (string, optional) — Omit for an instrumental. The prompt and the lyrics together may come to at most 5,000 tokens of the model's own tokenizer, counted with the few it adds around them. English lyrics fit at the full 10,000 characters; Chinese, Japanese or Korean lyrics, or a long prompt beside long lyrics, reach the token budget first. Past it the request is refused with 422 prompt_and_lyrics_too_long, which says how many tokens it came to, before any charge. Documented range: up to 10,000 characters. - seed (integer, optional) — Reuse one to get the same song back. Outside the range it is refused with 422 seed_out_of_range, before any charge. Documented range: 0 to 2,147,483,647. - idempotency_key (string, optional) — Your own name for this request. Send the same one twice and the second call is answered with the first request rather than charged again. `Idempotency-Key:` as a header is accepted as an alias — that is the spelling a retrying proxy replays, and the one to use when running a model on `auray.run`, where a request that outlives its connection is answered 504 and recovered by replay. Omit it and the platform mints one. ## Response A submit answers the status document (`status`: IN_QUEUE, IN_PROGRESS or COMPLETED; `request_id`; `queue_position` while queued; `logs`; `metrics`) and then, beside it: - product (string) — Which of this platform's products ran it. - provider_job_id (string) — The id the job runs under, once it has been handed to its model — possibly while still `queued`; null before. Quote it to support. - model (string) — The address that ran it, echoed back. - engine (string) — The service's own name for the model that ran, where it reports one — a catalogue model's is its `id` on GET /v1/models; null otherwise. What `model` carried before it carried the address. - attribution (string) — The credit line the model's licence requires you to show; null where none is required. - credits_charged (integer) — What this job cost. 0 on a replay, or when a pass or a promotion paid for it (`coverage` says which). - credits_quoted (integer) — What this job costs, in credits: the price it was quoted at submit. Equal to `credits_charged` once it has been charged; while it waits in the queue to start, `credits_charged` is 0 and this is what it will be charged when it starts (a cancel before then costs nothing) — and a replay of a job still waiting quotes the body that job was queued with, which is the one it runs, not the replay's. For a catalogue model it is the hold, and the settle may give part of it back — a settled read's `credits_charged` says what it finally cost. - coverage (object) — Present when a pass or a promotion paid for this job — `{"by": "pass", "pass": "seedance-2-5"}` or `{"by": "promotion"}`, and `credits_charged` is 0 — or when you hold a pass for this model that did not cover this job: `{"by": null, "miss": {"pass": "video", "why": "door"}}`, `why` being `door` (the pass does not work here) or `shape` (it does not cover this kind of job). Absent otherwise. Send `X-Auray-Covered-Only: 1` to run a job only if a pass or a promotion pays for it. - credits_remaining (integer) — The balance after it. - expected_seconds (integer) — A rough render time, for a progress bar; 0 where nothing is published. - give_up_after_seconds (integer) — The longest this job may take from its submit: the longest it may wait to start (your X-Auray-Request-Timeout, or the product's queue deadline) plus the longest it may run before it is stopped and refunded. Waiting longer is waiting for nothing; the official clients wait this long by default. For a catalogue model the part it may run is its own reap as its registry row states it (`lifecycle.stall_ceiling_seconds` on GET /v1/models); otherwise these are the published limits: we may lengthen them during an incident, never shorten them. - replayed (boolean) — `true` when your `idempotency_key` matched a job this platform already had. Nothing was charged and nothing was rendered twice. - waited (boolean) — Present when `wait` was asked for. The rest of this group comes with it. - timed_out (boolean) — The wait ran out before the job settled. Still a 2xx, never a 408 or 504 — a library that retries on those would resubmit and you would pay twice. Poll `status_url`. - wait_declined (string) — No seat was free to hold the connection with, so the request was answered at once. `platform_busy`: no product would have helped. `product_busy`: another product's queue might. `account_busy`: you are already waiting on every seat your plan's lanes allow. The job is running either way; poll it. - status_url (string) — Poll this. - response_url (string) — Fetch the result from this once the status is COMPLETED. - cancel_url (string) — `PUT` to this to ask for a cancellation. Poll `status_url`, fetch `response_url` once COMPLETED, `PUT` `cancel_url` to stop it. ## Price Price: A flat base per job plus one credit for each block of seconds of audio you ask for; GET /v1/plans serves the base and the seconds a credit buys in force as `price_keys` (`music.base`, `music.seconds_per_credit`), the submit quotes the credits, and the part for audio that comes back short is refunded. ## Paths POST https://queue.auray.run/auray-ai/minimax-music-3/text-to-audio Run auray-ai/minimax-music-3/text-to-audio GET https://queue.auray.run/auray-ai/minimax-music-3/text-to-audio/requests/{request_id} The result GET https://queue.auray.run/auray-ai/minimax-music-3/text-to-audio/requests/{request_id}/status The status PUT https://queue.auray.run/auray-ai/minimax-music-3/text-to-audio/requests/{request_id}/cancel Ask for a cancellation ## Example ```bash curl -X POST https://queue.auray.run/auray-ai/minimax-music-3/text-to-audio \ -H 'Authorization: Bearer auray_sk_…' \ -H 'Content-Type: application/json' \ -d '{"prompt":"a brass orrery on a walnut desk, morning light from a window to the left","duration_seconds":10}' ``` ## Full contract https://api.auray.ai/v1/models/auray-ai/minimax-music-3/text-to-audio/openapi.json