curl --fail-with-body -X POST "$RAWCHUNKS_API/api/generation/cover" \
-H "Content-Type: application/json" \
--data "$(jq -nc '{
"prompt": "Green waveform on black",
"title": "Night circuit"
}')"
{
"imageUrl": "<string>"
}Generation
Create or upload artwork
Generate artwork from JSON or upload one image.
POST
/
api
/
generation
/
cover
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/generation/cover" \
-H "Content-Type: application/json" \
--data "$(jq -nc '{
"prompt": "Green waveform on black",
"title": "Night circuit"
}')"
{
"imageUrl": "<string>"
}For an upload, send one
image/* file as multipart/form-data instead of JSON. Maximum 50 MiB. Returned imageUrl can be used as generation image or song PATCH image. Audio Restyle uses a different endpoint.
JSON body
string
required
Minimum length:
1.string
string
Multipart body
file
required
Response (200)
Success.string
required
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.
| Status | Meaning |
|---|---|
400 | Invalid request. |
500 | Request failed. |
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/generation/cover" \
-H "Content-Type: application/json" \
--data "$(jq -nc '{
"prompt": "Green waveform on black",
"title": "Night circuit"
}')"
⌘I