Skip to content

Overview

API reference ​

The Synesta API generates images, video, music, voice and 3D with one method. Here are the methods and a page for every model: what it accepts, what it costs and what the response looks like.

  • Base URL: https://api.synesta.ai/v1
  • Authentication: Authorization: Bearer $SYNESTA_API_KEY header on every request. Create a key in the console, details in Authentication.
  • Idempotency: POST /generations requires an Idempotency-Key header: a repeat with the same key and body returns the same generation without a second charge. See Idempotency.
  • Getting the result: POST /generations answers 202 with the generation in status queued. Poll GET /generations/{id} until status is done or failed, or pass webhook_url. See Polling and Webhooks.

Starting a generation ​

One call starts every model: POST /generations with type and model, the other fields depend on the model. Each model page lists its fields.

bash
curl -X POST https://api.synesta.ai/v1/generations \
  -H "Authorization: Bearer $SYNESTA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"type":"image","model":"MODEL_ID","prompt":"A lighthouse at dawn"}'

Methods ​

Every operation with parameters and responses · All operations.

Models ​

56 models in total. The model pages are built from the API catalog when the docs are built; GET /models returns the current list and prices.

Next ​