gcui-art / suno-api

Use API to call the music generation AI of suno.ai, and easily integrate it into agents like GPTs.
https://suno.gcui.ai
GNU Lesser General Public License v3.0
1.47k stars 340 forks source link

404 error when running generation endpoint #162

Closed pablocpz closed 2 months ago

pablocpz commented 2 months ago

Hello guys, after having used a bunch of times this great tool, i'm having troubles when trying to run the song generation endpoint. I get 404 error code.

I don't think it is a cookie problem since It worked before, and I even tryed with another suno ai accounts and it retrieved the same response. I don't think is because of credits lack neither

In fact, i have: image

The full response I get is below:

b'<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack.js"/><script src="/_next/static/chunks/main-app.js" async=""></script><script src="/_next/static/chunks/app-pages-internals.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-error" content="not-found"/><title>suno api</title><meta name="description" content="Use API to call the music generation ai of suno.ai"/><meta name="keywords" content="suno,suno api,suno.ai,api,music,generation,ai"/><meta name="creator" content="@gcui.ai"/><script src="/_next/static/chunks/polyfills.js" noModule=""></script></head><body><script src="/_next/static/chunks/webpack.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\\"/_next/static/css/app/layout.css?v=1727208185780\\",\\"style\\"]\\n0:\\"$L2\\"\\n"])</script><script>self.__next_f.push([1,"3:I[\\"(app-pages-browser)/./node_modules/next/dist/client/components/app-router.js\\",[\\"app-pages-internals\\",\\"static/chunks/app-pages-internals.js\\"],\\"\\"]\\n6:I[\\"(app-pages-browser)/./node_modules/next/dist/client/link.js\\",[\\"app/layout\\",\\"static/chunks/app/layout.js\\"],\\"\\"]\\n7:I[\\"(app-pages-browser)/./node_modules/next/dist/client/image-component.js\\",[\\"app/layout\\",\\"static/chunks/app/layout.js\\"],\\"Image\\"]\\n8:I[\\"(app-pages-browser)/./node_modules/next/dist/client/components/layout-router.js\\",[\\"app-pages-internals\\",\\"static/chunks/app-pages-internals.js\\"],\\"\\"]\\n9:I[\\"(app-pages-browser)/./node_modules/next/dist/client/components/render-from-template-context.js\\",[\\"app-pages-internals\\",\\"static/chunks/app-pages-internals.js\\"],\\"\\"]\\na:I[\\"(app-pages-browser)/./node_modules/@vercel/analytics/dist/react/index.mjs\\",[\\"app/layout\\",\\"static/chunks/app/layout.js\\"],\\"Analytics\\"]\\nc:I[\\"(app-pages-browser)/./node_modules/next/dist/client/components/error-boundary.js\\",[\\"app-pages-internals\\",\\"static/chunks/app-pages-internals.js\\"],\\"\\"]\\nd:[\\"children\\"]\\n"])</script><script>self.__next_f.push([1,"2:[[[\\"$\\",\\"link\\",\\"0\\",{\\"rel\\":\\"stylesheet\\",\\"href\\":\\"/_next/static/css/app/layout.css?v=1727208185780\\",\\"precedence\\":\\"next_static/css/app/layout.css\\",\\"crossOrigin\\":\\"$undefined\\"}]],[\\"$\\",\\"$L3\\",null,{\\"buildId\\":\\"development\\",\\"assetPrefix\\":\\"\\",\\"initialCanonicalUrl\\":\\"/custom_generate\\",\\"initialTree\\":[\\"\\",{\\"children\\":[\\"__DEFAULT__\\",{}]},\\"$undefined\\",\\"$undefined\\",true],\\"initialSeedData\\":[\\"\\",{\\"children\\":[\\"__DEFAULT__\\",{},[\\"$L4\\",\\"$L5\\",null]]},[null,[\\"$\\",\\"html\\",null,{\\"lang\\":\\"en\\",\\"children\\":[\\"$\\",\\"body\\",null,{\\"className\\":\\"__className_36bd41 overflow-y-scroll\\",\\"children\\":[[\\"$\\",\\"nav\\",null,{\\"className\\":\\" flex w-full justify-center py-4 items-center border-b border-gray-300 backdrop-blur-2xl font-mono text-sm px-4 lg:px-0\\",\\"children\\":[\\"$\\",\\"div\\",null,{\\"className\\":\\"max-w-3xl flex w-full items-center justify-between\\",\\"children\\":[[\\"$\\",\\"div\\",null,{\\"className\\":\\"font-medium text-xl text-indigo-900 flex items-center gap-2\\",\\"children\\":[[\\"$\\",\\"span\\",null,{\\"className\\":\\" bg-indigo-900 rounded-full p-2\\",\\"children\\":[\\"$\\",\\"svg\\",null,{\\"xmlns\\":\\"http://www.w3.org/2000/svg\\",\\"width\\":\\"24\\",\\"height\\":\\"24\\",\\"viewBox\\":\\"0 0 24 24\\",\\"className\\":\\"w-4 h-4\\",\\"fill\\":\\"none\\",\\"stroke\\":\\"#ffffff\\",\\"strokeWidth\\":\\"1\\",\\"strokeLinecap\\":\\"round\\",\\"strokeLinejoin\\":\\"round\\",\\"children\\":[\\"$\\",\\"path\\",null,{\\"d\\":\\"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3\\"}]}]}],[\\"$\\",\\"$L6\\",null,{\\"href\\":\\"/\\",\\"children\\":\\"Suno API\\"}]]}],[\\"$\\",\\"div\\",null,{\\"className\\":\\"flex items-center justify-center gap-1 text-sm font-light text-indigo-900/90\\",\\"children\\":[[\\"$\\",\\"p\\",null,{\\"className\\":\\"p-2 lg:px-6 lg:py-3 rounded-full flex justify-center items-center lg:hover:bg-indigo-300 duration-200 \\",\\"children\\":[\\"$\\",\\"$L6\\",null,{\\"href\\":\\"/\\",\\"children\\":\\"Get Started\\"}]}],[\\"$\\",\\"p\\",null,{\\"className\\":\\"p-2 lg:px-6 lg:py-3 rounded-full flex justify-center items-center lg:hover:bg-indigo-300 duration-200 \\",\\"children\\":[\\"$\\",\\"$L6\\",null,{\\"href\\":\\"/docs\\",\\"children\\":\\"API Docs\\"}]}],[\\"$\\",\\"p\\",null,{\\"className\\":\\"p-2 lg:px-6 lg:py-3 rounded-full flex justify-center items-center lg:hover:bg-indigo-300 duration-200 \\",\\"children\\":[\\"$\\",\\"a\\",null,{\\"href\\":\\"https://github.com/gcui-art/suno-api/\\",\\"target\\":\\"_blank\\",\\"className\\":\\"flex items-center justify-center gap-1\\",\\"children\\":[[\\"$\\",\\"span\\",null,{\\"className\\":\\"\\",\\"children\\":[\\"$\\",\\"$L7\\",null,{\\"src\\":\\"/github-mark.png\\",\\"alt\\":\\"GitHub Logo\\",\\"width\\":20,\\"height\\":20}]}],[\\"$\\",\\"span\\",null,{\\"children\\":\\"Github\\"}]]}]}]]}]]}]}],[\\"$\\",\\"main\\",null,{\\"className\\":\\"flex flex-col items-center m-auto w-full\\",\\"children\\":[\\"$\\",\\"$L8\\",null,{\\"parallelRouterKey\\":\\"children\\",\\"segmentPath\\":[\\"children\\"],\\"loading\\":\\"$undefined\\",\\"loadingStyles\\":\\"$undefined\\",\\"loadingScripts\\":\\"$undefined\\",\\"hasLoading\\":false,\\"error\\":\\"$undefined\\",\\"errorStyles\\":\\"$undefined\\",\\"errorScripts\\":\\"$undefined\\",\\"template\\":[\\"$\\",\\"$L9\\",null,{}],\\"templateStyles\\":\\"$undefined\\",\\"templateScripts\\":\\"$undefined\\",\\"notFound\\":[[\\"$\\",\\"title\\",null,{\\"children\\":\\"404: This page could not be found.\\"}],[\\"$\\",\\"div\\",null,{\\"style\\":{\\"fontFamily\\":\\"system-ui,\\\\\\"Segoe UI\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\"Apple Color Emoji\\\\\\",\\\\\\"Segoe UI Emoji\\\\\\"\\",\\"height\\":\\"100vh\\",\\"textAlign\\":\\"center\\",\\"display\\":\\"flex\\",\\"flexDirection\\":\\"column\\",\\"alignItems\\":\\"center\\",\\"justifyContent\\":\\"center\\"},\\"children\\":[\\"$\\",\\"div\\",null,{\\"children\\":[[\\"$\\",\\"style\\",null,{\\"dangerouslySetInnerHTML\\":{\\"__html\\":\\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\\"}}],[\\"$\\",\\"h1\\",null,{\\"className\\":\\"next-error-h1\\",\\"style\\":{\\"display\\":\\"inline-block\\",\\"margin\\":\\"0 20px 0 0\\",\\"padding\\":\\"0 23px 0 0\\",\\"fontSize\\":24,\\"fontWeight\\":500,\\"verticalAlign\\":\\"top\\",\\"lineHeight\\":\\"49px\\"},\\"children\\":\\"404\\"}],[\\"$\\",\\"div\\",null,{\\"style\\":{\\"display\\":\\"inline-block\\"},\\"children\\":[\\"$\\",\\"h2\\",null,{\\"style\\":{\\"fontSize\\":14,\\"fontWeight\\":400,\\"lineHeight\\":\\"49px\\",\\"margin\\":0},\\"children\\":\\"This page could not be found.\\"}]}]]}]}]],\\"notFoundStyles\\":[],\\"styles\\":null}]}],[\\"$\\",\\"footer\\",null,{\\"className\\":\\" flex w-full justify-center py-4 items-center bg-indigo-900 text-white/60 backdrop-blur-2xl font-mono text-sm px-4 lg:px-0 \\",\\"children\\":[[\\"$\\",\\"p\\",null,{\\"className\\":\\"px-6 py-3 rounded-full flex justify-center items-center gap-2 hover:text-white duration-200 \\"}],[\\"$\\",\\"p\\",null,{\\"className\\":\\"px-6 py-3 rounded-full flex justify-center items-center gap-2 hover:text-white duration-200 \\",\\"children\\":[[\\"$\\",\\"span\\",null,{\\"children\\":\\"\xc2\xa9 2024\\"}],[\\"$\\",\\"$L6\\",null,{\\"href\\":\\"https://github.com/gcui-art/suno-api/\\",\\"children\\":\\"gcui-art/suno-api\\"}]]}]]}],[\\"$\\",\\"$La\\",null,{}]]}]}],null]],\\"initialHead\\":[[\\"$\\",\\"meta\\",null,{\\"name\\":\\"robots\\",\\"content\\":\\"noindex\\"}],\\"$Lb\\"],\\"globalErrorComponent\\":\\"$c\\",\\"missingSlots\\":\\"$Wd\\"}]]\\n"])</script><script>self.__next_f.push([1,"5:E{\\"digest\\":\\"NEXT_NOT_FOUND\\",\\"message\\":\\"NEXT_NOT_FOUND\\",\\"stack\\":\\"Error: NEXT_NOT_FOUND\\\\n at notFound (webpack-internal:///(rsc)/./node_modules/next/dist/client/components/not-found.js:23:19)\\\\n at ParallelRouteDefault (webpack-internal:///(rsc)/./node_modules/next/dist/client/components/parallel-route-default.js:23:28)\\\\n at eR (C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:263006)\\\\n at C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:275808\\\\n at Array.toJSON (C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:280578)\\\\n at stringify (\\u003canonymous\\u003e)\\\\n at C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:266934\\\\n at eW (C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:267013)\\\\n at ez (C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:267413)\\\\n at Timeout._onTimeout (C:\\\\\\\\Users\\\\\\\\pablo\\\\\\\\Desktop\\\\\\\\ai-agents\\\\\\\\projects\\\\\\\\project2-\\\\\\\\suno-api\\\\\\\\node_modules\\\\\\\\next\\\\\\\\dist\\\\\\\\compiled\\\\\\\\next-server\\\\\\\\app-page.runtime.dev.js:35:263912)\\\\n at listOnTimeout (node:internal/timers:581:17)\\\\n at process.processTimers (node:internal/timers:519:7)\\"}\\n"])</script><script>self.__next_f.push([1,"b:[[\\"$\\",\\"meta\\",\\"0\\",{\\"name\\":\\"viewport\\",\\"content\\":\\"width=device-width, initial-scale=1\\"}],[\\"$\\",\\"meta\\",\\"1\\",{\\"charSet\\":\\"utf-8\\"}],[\\"$\\",\\"title\\",\\"2\\",{\\"children\\":\\"suno api\\"}],[\\"$\\",\\"meta\\",\\"3\\",{\\"name\\":\\"description\\",\\"content\\":\\"Use API to call the music generation ai of suno.ai\\"}],[\\"$\\",\\"meta\\",\\"4\\",{\\"name\\":\\"keywords\\",\\"content\\":\\"suno,suno api,suno.ai,api,music,generation,ai\\"}],[\\"$\\",\\"meta\\",\\"5\\",{\\"name\\":\\"creator\\",\\"content\\":\\"@gcui.ai\\"}]]\\n4:null\\n"])</script><script>self.__next_f.push([1,""])</script></body></html>'