added docs
This commit is contained in:
		
							parent
							
								
									8cf877f657
								
							
						
					
					
						commit
						95b7a773f0
					
				@ -124,6 +124,7 @@ Suno API currently mainly implements the following APIs:
 | 
				
			|||||||
    If no IDs are provided, all music will be returned.
 | 
					    If no IDs are provided, all music will be returned.
 | 
				
			||||||
- `/api/get_limit`: Get quota Info
 | 
					- `/api/get_limit`: Get quota Info
 | 
				
			||||||
- `/api/extend_audio`: Extend audio length
 | 
					- `/api/extend_audio`: Extend audio length
 | 
				
			||||||
 | 
					- `/api/concat`: Generate the whole song from extensions
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
For more detailed documentation, please check out the demo site:
 | 
					For more detailed documentation, please check out the demo site:
 | 
				
			||||||
@ -170,6 +171,13 @@ def get_quota_information():
 | 
				
			|||||||
    return response.json()
 | 
					    return response.json()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def generate_whole_song(clip_id):
 | 
				
			||||||
 | 
					    payloyd = {"clip_id": clip_id}
 | 
				
			||||||
 | 
					    url = f"{base_url}/api/concat"
 | 
				
			||||||
 | 
					    response = requests.post(url, json=payload)
 | 
				
			||||||
 | 
					    return response.json()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
    data = generate_audio_by_prompt({
 | 
					    data = generate_audio_by_prompt({
 | 
				
			||||||
        "prompt": "A popular heavy metal song about war, sung by a deep-voiced male singer, slowly and melodiously. The lyrics depict the sorrow of people after the war.",
 | 
					        "prompt": "A popular heavy metal song about war, sung by a deep-voiced male singer, slowly and melodiously. The lyrics depict the sorrow of people after the war.",
 | 
				
			||||||
 | 
				
			|||||||
@ -29,6 +29,7 @@ export default function Docs() {
 | 
				
			|||||||
    ids.  If no IDs are provided, all music will be returned.
 | 
					    ids.  If no IDs are provided, all music will be returned.
 | 
				
			||||||
- \`/api/get_limit\`: Get quota Info
 | 
					- \`/api/get_limit\`: Get quota Info
 | 
				
			||||||
- \`/api/extend_audio\`: Extend audio length
 | 
					- \`/api/extend_audio\`: Extend audio length
 | 
				
			||||||
 | 
					- \`/api/concat\`: Generate the whole song from extensions
 | 
				
			||||||
\`\`\`
 | 
					\`\`\`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Feel free to explore the detailed API parameters and conduct tests on this page.
 | 
					Feel free to explore the detailed API parameters and conduct tests on this page.
 | 
				
			||||||
 | 
				
			|||||||
@ -106,6 +106,7 @@ Suno API currently mainly implements the following APIs:
 | 
				
			|||||||
- \`/api/get?ids=\`: Get music Info by id, separate multiple id with ",".
 | 
					- \`/api/get?ids=\`: Get music Info by id, separate multiple id with ",".
 | 
				
			||||||
- \`/api/get_limit\`: Get quota Info
 | 
					- \`/api/get_limit\`: Get quota Info
 | 
				
			||||||
- \`/api/extend_audio\`: Extend audio length
 | 
					- \`/api/extend_audio\`: Extend audio length
 | 
				
			||||||
 | 
					- \`/api/concat\`: Generate the whole song from extensions
 | 
				
			||||||
\`\`\`
 | 
					\`\`\`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
For more detailed documentation, please check out the demo site:
 | 
					For more detailed documentation, please check out the demo site:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user