Use this pre-built prompt to get an agent calling the MakeSeamless API correctly.
What do I need before I start?
Before you start, you’ll need:- A pattern tile: a PNG, JPEG or WebP image of at least 64 x 64 px
- For the fix, a MakeSeamless API key
Guide
1
Check the tile
Send the image as the multipart field The answer holds a verdict for each repeat type, and
file. No account and no key.satisfied lists
the ones the tile already passes. If yours is there, you are done.
Check a tile explains every field.2
Create an API key
Sign in at makeseamless.com, open
Account, and select Create API key under API keys. The key
is shown once. Keep it in an environment variable:
.env
3
Start a fix
Send the same file and the repeat type you need: The answer is
straight,
half_drop or half_brick.202 with a job in queued. Keep its id. The same file
with the same repeat type, fixed before, comes back as a job that has
already succeeded, at no charge.4
Follow the job
Ask for the job until
status is succeeded or failed, waiting the
seconds that Retry-After gives between two calls. Reading a job needs
no key.5
Download the result
A succeeded job has the fixed PNG at A failed job carries
result.image_url, with the exact
width and height of your upload.error.code instead. A failure with
no_seamless_candidate, service_unavailable or interrupted costs
nothing.The whole loop
The same steps in one script.What does a fix cost?
A fix costs credits, and every account gets one free fix each UTC day, used first. Credits and plans has the numbers.Next steps
The seam report
Repeat types, verdicts and visible change.
Fix and jobs
Stages, results, other images, ratings.
Errors
Every code and when a retry helps.
Connect an agent
Let an agent run these calls for you.