Suno API: Official Status, API Keys and a Python Example
Suno's own API is invite-only. Here is what still works today.
On this page
- Short answer
- Is there an official Suno API?
- What are your options today?
- How do you make your first song in Python?
- Should you use Suno v4.5 or v6?
- What should you know before your first requests?
- What if a request fails?
- Can you use the songs commercially?
- Conclusion
- Common questions
- Is there a free Suno API?
- How do I get a Suno API key?
- How long does one song take?
Say you want your app to write a short song for every user, and Suno is the model you want. You can call it from code, but not through Suno yet: as of October 17, 2026, Suno's own API is open only to invited partners.
Without an invite, a third-party API gets you a finished song in about a minute and a half, and the Python below runs as is.
Short answer
- Suno's own API exists, but you cannot sign up: no public docs, prices or self-serve keys.
- The best-known unofficial wrapper runs through your own Suno account, which Suno's Terms do not allow.
- A third-party API such as OmniaKey gives you a key today. Our songs came back in 70 to 105 seconds.
- Before you sell anything you make with it, read Suno's Terms on commercial use.
Is there an official Suno API?
Yes, but it is invite-only. Suno's developer page, platform.suno.com, says "Make music with the Suno API" and offers just one thing: a sign-in for existing API accounts. Its /docs and /pricing addresses show the same sign-in box (checked October 17, 2026).
| What you look for | Status |
|---|---|
| Public sign-up | No |
| Public docs | No |
| Public prices | No |
| How to get in | An invite |
The invites go back to July. Music Business Worldwide reported on July 2, 2026 that Suno's chief product officer, Jack Brody, posted an intake form for "a curated group of partners". Suno has not announced a date for wider access.
What are your options today?
If you need songs from code this week, a third-party API is the practical choice. Here is how the three options compare:
| Option | What you need | The catch |
|---|---|---|
| Suno's own API | An invite from Suno | Closed to most developers |
| Unofficial GitHub wrapper | Your Suno cookie, a paid captcha solver, a server | Suno's Terms ban bots and scraping |
| Third-party API, such as OmniaKey | An API key | Not Suno's own service |
The unofficial wrapper is gcui-art/suno-api: 3,259 stars on GitHub and no new code since March 6, 2026. Its README asks you to copy the cookie from your own Suno account, pay for 2Captcha to get past Suno's captchas, and run a scripted browser. Suno's Terms of Service (revised August 10, 2026) ban "robots, scraping" and getting content "through any means not intentionally made available", so read them before you build on it.
A third-party API is what we used. OmniaKey is a third-party platform, not Suno. It sells API access to Suno v4.5 and Suno v6 with its own key, and each request returns one finished song. To make a song without code, both models are also in the AI Audio Generator.
How do you make your first song in Python?
Three calls:
- Create the job with
POST /v1/media/tasks. - Check it with
GET /v1/media/tasks/{id}every 5 seconds. Ours were ready in 70 to 105 seconds. - Download the MP3 from
assets[0].url. The link expires in about an hour.
Put your key in an environment variable, save the script as suno_song.py, and run it:
export OMNIAKEY_API_KEY="your-key"
python3 suno_song.py
import os
import time
import uuid
import requests
API = "https://api.omniakey.com/v1/media/tasks"
HEADERS = {"Authorization": f"Bearer {os.environ['OMNIAKEY_API_KEY']}"}
# 1. Create the job. Reuse the same Idempotency-Key only when retrying this exact request.
job = requests.post(
API,
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "suno-v4.5",
"type": "audio",
"operation": "generate",
"input": {"prompt": "calm lo-fi beat for late-night coding, soft piano, vinyl crackle"},
"parameters": {"title": "Late Build", "instrumental": True},
},
timeout=30,
)
job.raise_for_status()
task = job.json()
print("task:", task["id"], task["status"])
# 2. Poll on status, not on progress.percent, until the job finishes.
while task["status"] in ("queued", "processing"):
time.sleep(5)
task = requests.get(f"{API}/{task['id']}", headers=HEADERS, timeout=30).json()
if task["status"] != "succeeded":
raise SystemExit(f"job ended {task['status']}: {task.get('error')}")
# 3. Download the MP3 now: the signed URL expires in about an hour.
asset = task["assets"][0]
with open("late-build.mp3", "wb") as f:
f.write(requests.get(asset["url"], timeout=120).content)
print("saved late-build.mp3", asset["byte_size"], "bytes")
When we ran it on October 17, 2026, it printed this and saved the file 82 seconds after it started:
task: task_VDvzdpfABcqDOIpo9I1p7CXHg99elSuK queued
saved late-build.mp3 3506516 bytes
You get a 2:55 instrumental: a 48 kHz stereo MP3 of 3.5 MB. Our four test songs came back the same way, one MP3 per request:
| Model | Input | Ready in | Length |
|---|---|---|---|
| v4.5 | prompt | 105 s | 3:23 |
| v6 | prompt | 92 s | 3:07 |
| v4.5 | own lyrics | 70 s | 1:03 |
| v6 | own lyrics | 86 s | 0:45 |
Should you use Suno v4.5 or v6?
Start with v6. Suno calls it its flagship model and announced the v6 family on September 9, 2026. On suno.com, v6 is for paid plans only. Through the API, both took about the same time in our tests.
Pick v4.5 when you want to pin an older Suno version with parameters.mv, such as chirp-v4. OmniaKey's suno-v4.5 ID does not say which v4.5 variant it maps to.
To hear the difference, our Suno v6 review runs the same three prompts through both models, with a clip of every song.
What should you know before your first requests?
- A description gives a full song. Ours ran about three minutes. Your own lyrics give a song about as long as the words: our eight lines came back at 45 to 63 seconds.
- Check
status, not the percentage.progress.percentcan sit at 0 while the song is being made. - Download within the hour. The MP3 link expires; poll the task again for a fresh one. Task records stay for 24 hours.
- Retries never charge twice if you resend the same body with the same
Idempotency-Key. - Only
generateworks. Extending a song, lyrics on their own and speech fail with503 no_available_channel, and you get the charge back.
For reusable prompts for vocals, lyrics and instrumentals, see our Suno prompt guide.
| Field | What it does |
|---|---|
input.prompt | Describe the song you want |
input.lyrics | Your own words; switches to custom lyrics |
parameters.style / parameters.tags | The style when you send lyrics |
parameters.title | The song title |
parameters.instrumental | true drops the vocal |
parameters.mv | Pins a v4.5 version: chirp-v4-5, chirp-v4, chirp-v3-5, chirp-bluejay |
parameters.n | Must be 1: one request, one song |
What if a request fails?
Read the error code, and know that a job that fails, is cancelled or never reaches Suno is refunded automatically.
| Code | What it means | What to do |
|---|---|---|
400 invalid_request | Malformed body, or neither prompt nor lyrics | Fix the body, use a new Idempotency-Key |
400 missing_idempotency_key | No Idempotency-Key header | Add one unique key per job |
400 model_price_error | No price set for this model and operation | Check the Dashboard or the model page |
403 model_not_allowed | Your key or group does not include the model | Check the key's model access |
404 task_not_found | Unknown task ID | Check the ID; records last 24 hours |
409 idempotency_key_reused | Same key, different body | Send the original body or a new key |
409 task_state_conflict | The job cannot move to that state | Read the task's current status |
503 no_available_channel | No channel serves the model or operation now | Use generate, or try later |
provider_submit_uncertain | Operation not served, or parameters rejected before sending | Read error.message; the charge is refunded |
provider_failed | Suno rejected the job or it timed out in the queue | Read error.message; the charge is refunded |
If creating the job times out, resend the identical body with the same key. Once you have a task ID, keep polling it instead of starting over.
Can you use the songs commercially?
Read Suno's Terms first, because they are strict. Songs made on Suno's free plan are for personal, non-commercial use only. Pro and Premier subscribers get the rights to their songs, and Suno allows commercial use only for songs "downloaded by you through an approved channel".
Songs from a third-party API are no exception, so check Suno's Terms before you put a generated song in a paid product.
Conclusion
Suno's own API is closed for now. If you need songs from code today, a third-party API is the simplest way that works: one key, three calls, a finished song in under two minutes. Check platform.suno.com every so often, and switch when Suno opens its own door.
Common questions
Is there a free Suno API?
Not from Suno: platform.suno.com has no free API tier. The free plans live in the suno.com app, where v6-mini is open to everyone and v4.5-all has been free since October 21, 2025. Songs from the free tier are for personal use only.
How do I get a Suno API key?
If Suno has already given you an API account, sign in at platform.suno.com. Otherwise there is no form on the page today. A third-party platform such as OmniaKey issues its own key, separate from any Suno login.
How long does one song take?
Our five songs took 70 to 105 seconds each. OmniaKey's audio docs give a range of twenty seconds to two minutes.
Models in this article
Related articles
Gemini image API relay guide
Choose the right API contract, generate an image, and recover safely when a request times out.
Seedream 5.0 Pro vs GPT Image 2: Same-Prompt Test and Price
Six jobs, the same prompts, three models: what each made and what it cost.
Best AI video API models in 2026
There is no single best video model. The right route depends on whether you need a long shot, a faithful first frame, reference images, predictable cost, or a faster production queue.