Upload an image
upload_imageUpload a PNG or JPEG (at most 4 MB) to this InkChamps account and get back an s3Key to pass in a book order — a character's picture (characterDetails[].referenceImage), a character sheet (characterReferenceSheet), a page template (pageTemplateImage), a coloring book's style template (styleReferenceImage) or cover art (frontCoverImage / backCoverImage). Upload once and reuse the key in as many orders as you like. Costs no credits. Every image field also accepts the picture inline as data, so this step is optional. Each image must be under 4 MB (a request limit), which for a print-size photo or painting means JPEG; PNG is fine when it fits. A cover side must have the shape of the book's cover side (the trim plus KDP's 0.125in bleed on its outer edges, e.g. 8.625x11.25in for 8.5x11) at 300 dpi or more (2588x3375 pixels for 8.5x11); see frontCoverImage on create_cover_photo for every trim.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"purpose": "<purpose>",
"data": "<data>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The PNG or JPEG bytes, base64, optionally as a data: URI. | |
| purpose | Yes | Where the key will be used: character (one character's picture in characterDetails), character_sheet (characterReferenceSheet), page_template (pageTemplateImage), style_template (styleReferenceImage on create_coloring_book), cover (frontCoverImage or backCoverImage). A key only works in the field its purpose names. | |
| fileName | No | Original file name. |