REST API
Stuur de argumenten van een tool als JSON met POST. Lange taken geven een job_id terug dat je opvraagt met check_job.
curl -X POST https://vercanto.com/api/v1/tools/generate_image \
-H "Authorization: Bearer mp_your_key" \
-H "Content-Type: application/json" \
-d '{"prompt": "a lighthouse at dawn, 35mm film", "aspect_ratio": "16:9", "num_images": 2}'curl -X POST https://vercanto.com/api/v1/tools/check_job \
-H "Authorization: Bearer mp_your_key" \
-H "Content-Type: application/json" \
-d '{"job_id": "job_...", "wait_seconds": 40}'




