> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rawchunks.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Create or upload artwork

> Generate artwork from JSON or upload one image.

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

<ParamField body="prompt" type="string" required>
  Minimum length: `1`.
</ParamField>

<ParamField body="title" type="string" />

<ParamField body="style" type="string" />

## Multipart body

<ParamField body="file" type="file" required />

## Response (200)

Success.

<ResponseField name="imageUrl" type="string" required />

## Errors

Failed JSON responses contain an `error` string. Check the HTTP status before reading a successful result. See [job handling](/dev/guides/jobs) for interrupted or uncertain submissions.

| Status | Meaning |
| - | - |
| `400` | Invalid request. |
| `500` | Request failed. |

<RequestExample>
  ```bash cURL theme={null}
  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"
  }')"
  ```
</RequestExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.