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_KEYheader on every request. Create a key in the console, details in Authentication. - Idempotency:
POST /generationsrequires anIdempotency-Keyheader: a repeat with the same key and body returns the same generation without a second charge. See Idempotency. - Getting the result:
POST /generationsanswers202with the generation in statusqueued. PollGET /generations/{id}untilstatusisdoneorfailed, or passwebhook_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.
- GET
/account· Plan, credit balance and limits of the key - GET
/models· Models you can use, with their limits - GET
/models/{id}· One model with its capabilities - POST
/estimate· Price of a generation without starting it - GET
/generations· Generations made with API keys, newest first - POST
/generations· Start a generation - GET
/generations/{id}· Status and result of one generation - POST
/references· Upload a reference file for later generations
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.