## Basic model info - Model name: suno/suno suno-v4.5-relay - Model description: Suno v4.5 music generation via relay gateway. Supports lyrics generation, custom and inspire music creation, cover, extend, clip, inpainting, and upload. - Endpoint name: upload ## Model schema The model schema is defined in the OpenAPI schema: [OpenAPI Schema](https://oapi.sunra.ai/main/suno/suno-v4.5-relay/latest.json) ### Model input schema The model input schema is: ```json { "properties": { "url": { "description": "Audio URL to upload (for use in extend or concat operations)", "title": "Url", "type": "string", "x-sr-order": 300 } }, "required": [ "url" ], "title": "UploadInput", "type": "object" } ``` ### Model output schema The model output schema is: ```json { "properties": { "clips": { "anyOf": [ { "items": { "properties": { "image_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Image Url" }, "audio_url": { "title": "Audio Url", "type": "string" }, "clip_id": { "title": "Clip Id", "type": "string" }, "duration": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Duration" }, "lyrics": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lyrics" }, "styles": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Styles" }, "task_id": { "title": "Task Id", "type": "string" }, "title": { "title": "Title", "type": "string" } }, "required": [ "task_id", "clip_id", "title", "audio_url" ], "title": "MusicClip", "type": "object" }, "type": "array" }, { "type": "null" } ], "title": "Clips" }, "lyrics": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lyrics" }, "title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Title" } }, "title": "SunoOutput", "type": "object" } ``` ## Example inputs and outputs Use the following example inputs and outputs to understand the model. ### Input example ```json { "url": "" } ``` ### Output example ```json { } ``` ## Model code examples ### JavaScript ```javascript import { sunra } from "@sunra/client"; const result = await sunra.subscribe("suno/suno-v4.5-relay/upload", { input: { url: '' }, logs: true, onQueueUpdate: (update) => { console.log(`Status Update: ${update.status}, Request ID: ${update.request_id}`); }, }); console.log(result.data); console.log(result.requestId); ``` ### Python ```python import sunra_client result = sunra_client.subscribe( "suno/suno-v4.5-relay/upload", arguments={ "url": "" }, with_logs=True, on_enqueue=print, on_queue_update=print, ) print(result) ``` ### Java ```java import ai.sunra.client.*; import java.util.Map; import com.google.gson.JsonObject; var client = SunraClient.withEnvCredentials(); var response = client.subscribe( "suno/suno-v4.5-relay/upload", SubscribeOptions.builder() .input(Map.of( "url", "")) .resultType(JsonObject.class) .onQueueUpdate(update -> System.out.printf( "\nStatus Update: %s, Request ID: %s%n", update.getStatus(), update.getRequestId() )) .logs(true) .build() ); System.out.println("Completed!"); System.out.println(response.getData()); ``` ### Kotlin ```kotlin import ai.sunra.client.kt.* import com.google.gson.JsonObject val client = createSunraClient() val response = client.subscribe( endpointId = "suno/suno-v4.5-relay/upload", input = mapOf( "url" to ""), options = ai.sunra.client.kt.SubscribeOptions(logs = true), onUpdate = { update -> println("\nStatus Update: ${update.status}, Request ID: ${update.requestId}") } ) println("Completed!") println(response.data) ``` ### Curl ```bash curl --request POST \ --url https://api.sunra.ai/v1/queue/suno/suno-v4.5-relay/upload \ --header "Authorization: Key $SUNRA_KEY" \ --header "Content-Type: application/json" \ --data '{"url":""}' ``` ## Model readme >