andreasjansson/text-to-imagemagick

Claude + Imagemagick as a service

Public
25 runs

Run andreasjansson/text-to-imagemagick with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Describe the image you want to create with ImageMagick
image
string
Optional input image to use as a base
width
integer
Width of output image (required if no image provided)
height
integer
Height of output image (required if no image provided)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "image",
    "command"
  ],
  "properties": {
    "image": {
      "type": "string",
      "title": "Image",
      "format": "uri"
    },
    "command": {
      "type": "string",
      "title": "Command"
    }
  }
}
Example API response
View prediction
{'command': 'convert /tmp/input_image.png -resize 350x350! -flip '
            '/tmp/output.png',
 'image': 'https://replicate.delivery/xezq/6SHVJaQgxVI2FZzMm7J6MA7i4h2OLDrsQOa7K53se4uKgV0KA/output.png'}