# Synesta API · full documentation (English) Source: https://docs.synesta.ai/en/ # Synesta API Synesta generates images, video, music, voice and 3D models. The same models as on the site are available through the REST API for your code. MCP for AI agents (Claude, ChatGPT) is a separate product on a subscription: [synesta.ai/mcp](https://synesta.ai/mcp). - [Run your first request](https://docs.synesta.ai/en/quickstart): Key, balance and a first generation in five minutes. - [Get an API key](https://open.synesta.ai/api-keys): Keys, API balance and top-ups in the console. ## Make a request Every model starts the same way: `POST /generations` with an `Idempotency-Key` header. The body depends on the type and the model; take the model `id` from `GET /models`. **curl** ```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","max_credits":20}' ``` **JavaScript** ```js const res = await fetch('https://api.synesta.ai/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID(), }, body: JSON.stringify({ type: 'image', model: 'MODEL_ID', prompt: 'A lighthouse at dawn', max_credits: 20 }), }); const { data } = await res.json(); ``` **Python** ```python import os, uuid, requests res = requests.post( "https://api.synesta.ai/v1/generations", headers={ "Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={"type": "image", "model": "MODEL_ID", "prompt": "A lighthouse at dawn", "max_credits": 20}, ) data = res.json()["data"] ``` The answer is `202` with the generation in its initial status. Success is an object in `data`: ```json { "data": { "id": 123, "status": "running", "cost_credits": 8 } } ``` Then call `GET /generations/{id}` until `status` is `done` or `failed`. On `done` the file links are in `outputs[].url`. ## Choose your path - [Your code over REST](https://docs.synesta.ai/en/how-it-works): Price, launch, polling, result. - [Before production](https://docs.synesta.ai/en/concepts/requests): Lifecycle, idempotency, errors and limits. - [Your own input files](https://docs.synesta.ai/en/concepts/file-uploads): An image, video or audio into reference_ids. > **Note** A failed generation is refunded. Results are stored by Synesta; links in outputs lead there, not to the model provider. ## What you can do - **Models.** A list with the lowest price and what each model accepts: `GET /models`, `GET /models/{id}`. See [Models](https://docs.synesta.ai/en/api-reference/models). - **Price before launch.** `POST /estimate` returns the price in credits and in dollars and charges nothing. - **Launch.** `POST /generations` with an `Idempotency-Key` header: a repeated request is never charged twice. - **Result.** `GET /generations/{id}` until `done` or `failed`. A failed generation is refunded. - **References.** `POST /references`: a file, a link or base64, then the id goes into `reference_ids`. ## Related topics - [How the API works](https://docs.synesta.ai/en/how-it-works): price, launch, polling, result. - [API reference](https://docs.synesta.ai/en/api-reference): every operation from the OpenAPI specification. - [Console](https://open.synesta.ai): keys, API balance, top-ups. - [llms.txt](https://docs.synesta.ai/llms.txt) and [llms-full.txt](https://docs.synesta.ai/llms-full.txt): these docs for AI agents. - [Terms of use](https://synesta.ai/terms): sections «API» and «API balance». --- # Quickstart From a key to a finished image over REST. You need a Synesta account and `curl`. ## 1. Create a key Open the [console, «API keys»](https://open.synesta.ai/api-keys) and create a key. You accept the API terms and confirm with your password. The key is shown once: copy it right away. ```bash export SYNESTA_API_KEY="syn_live_..." ``` > **Keep the key in an environment variable** Do not put the key into code or links. The API reads it only from the `Authorization` header. ## 2. Top up the API balance REST is paid from a separate API balance in US dollars, no plan needed. Top up in the [console, «Billing»](https://open.synesta.ai/billing): from $5 to $1000. See [Billing and storage](https://docs.synesta.ai/en/concepts/billing). ## 3. Check access ```bash curl https://api.synesta.ai/v1/account \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` The response has the plan, the credit balance, `api_balance_usd`, the credit price `usd_per_credit` and the key limits. ## 4. Pick a model ```bash curl "https://api.synesta.ai/v1/models?type=image" \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` The model `id` goes into the `model` field. What a model accepts (aspect ratios, resolutions, references) is in `capabilities` of `GET /models/{id}`. ## 5. Get the price ```bash curl -X POST https://api.synesta.ai/v1/estimate \ -H "Authorization: Bearer $SYNESTA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"type":"image","model":"MODEL_ID","prompt":"A lighthouse at dawn"}' ``` `credits` is the price in credits, `cost_usd` is what the API balance will be charged. Nothing is charged now. ## 6. Start the generation ```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","max_credits":20}' ``` The answer is `202` with the generation in its initial status. `max_credits` is your price cap: a more expensive run is refused. `Idempotency-Key` is required, see [Idempotency](https://docs.synesta.ai/en/concepts/idempotency). ## 7. Fetch the result ```bash curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` Repeat until `status` is `done` or `failed`. On `done` the file links are in `outputs[].url`. How often to ask: [Polling](https://docs.synesta.ai/en/concepts/polling). ## The same in JavaScript and Python **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ type: 'image', model: 'MODEL_ID', prompt: 'A lighthouse at dawn', max_credits: 20 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={"type": "image", "model": "MODEL_ID", "prompt": "A lighthouse at dawn", "max_credits": 20}, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` ## Next - [Errors and retries](https://docs.synesta.ai/en/concepts/errors): what to do with each code. - [Uploading references](https://docs.synesta.ai/en/concepts/file-uploads): your own image or video as input. - MCP for AI agents by subscription: [synesta.ai/mcp](https://synesta.ai/mcp). --- # Authentication ## API key Every REST request carries the key in a header: ```http Authorization: Bearer syn_live_... ``` - Only the `Authorization` header is read. A key in the query string (`?key=`) and an `X-Api-Key` header are not accepted: they end up in logs. - Create a key in the [console](https://open.synesta.ai/api-keys), section «API keys». You confirm with your password and accept the API terms. - The key is shown once. Lost it · revoke it and create a new one. - Up to 5 keys per account by default. More · 422 `api_key_limit_reached`. - The first characters of the key (`prefix` in `GET /account`) tell keys apart; the key itself is not stored. ## Key settings | Setting | What it does | |---|---| | Daily limit | credits the key may spend per day, 300 by default. Resets at 00:00 UTC | | Expiry | after `expires_at` the key stops working | | Revoke | the key stops working at once | Current values are in `GET /account`, object `key`: `daily_limit`, `daily_spent`, `max_credits_per_call`, `expires_at`. ## Refusals | Situation | HTTP | Code | |---|---|---| | No key, a wrong, revoked or expired key | 401 | `unauthenticated` | | Many failed attempts from one IP | 429 | `rate_limit_exceeded` | | Account blocked or scheduled for deletion | 403 | `account_blocked`, `account_pending_deletion` | | API is not enabled for the account yet | 403 | `api_not_enabled` | | REST is closed for the account | 403 | `rest_not_included` | | Keys suspended after content filter rejections | 403 | `api_key_suspended` | | Account in team mode | 403 | `team_not_supported` | All four «the key did not match» cases give the same 401: the answer does not tell whether the key ever existed. ## Response language Error messages follow `Accept-Language` (`ru` or `en`). Without the header · the account language, otherwise English. Codes do not depend on the language. MCP for AI agents by subscription: [synesta.ai/mcp](https://synesta.ai/mcp). --- # How the API works Generation is asynchronous: a launch returns an id at once, the result comes later. Video takes minutes, an image is usually faster. ```text GET /models ──► POST /estimate ──► POST /generations ──► GET /generations/{id} … ──► done / failed (what exists) (price, free) (charge, 202) (polling) (outputs / refund) ``` ## Steps 1. **Model.** `GET /models` returns the models open in the API with the lowest price and `capabilities`. A model switched off right now stays in the list with `available: false`, a reason and alternatives. 2. **Price.** `POST /estimate` with the same body as the launch. Answer: `credits`, `cost_usd` (REST), `applied` (parameters the price was calculated for) and `exceeds_daily_limit`. 3. **Launch.** `POST /generations` with `Idempotency-Key`. Money is charged when the launch is accepted. Answer `202` with the generation. 4. **Polling.** `GET /generations/{id}` until `status` is `done` or `failed`. 5. **Result.** On `done` · `outputs`: file link, kind, MIME, preview and thumbnail. On `failed` · `error` with a code and `retryable`; the price is refunded. ## Strict request body The API never adjusts anything silently: - an unknown field or a wrong type · 422 `invalid_parameters`; - a known field that does not apply to the type or model (`duration` for music, `upscale_factor` on a model without upscaling) · 422 `unsupported_input`; - in both cases `error.details.param` names the field. Each type takes only its own fields: | Type | Fields besides `type`, `model`, `prompt`, `max_credits` | |---|---| | `image` | `aspect`, `resolution`, `upscale_factor`, `reference_ids`, `mask_target`, `negative`, `seed` | | `video` | `aspect`, `resolution`, `duration`, `sound`, `upscale_factor`, `video_mode`, `reference_ids`, `negative`, `seed` | | `music` | `mode`, `instrumental`, `style`, `title`, `vocal_gender` | | `voice` | `voice_id`, `speed` | | `3d` | `reference_ids`, `seed` | ## Money - Paid from the API balance in dollars: the price in credits as on the site, without plan discounts and promos, times the API credit price. - `max_credits` in a request is your cap: a more expensive run is refused and nothing is charged. - A failed generation is fully refunded (`refunded: true`). When the model delivers fewer results than ordered, the difference is refunded (`partial_refund`). See [Billing and storage](https://docs.synesta.ai/en/concepts/billing). ## Response format Success · the object in `data`, lists also have `meta`: ```json { "data": { "id": 123, "status": "running", "cost_credits": 8 } } ``` Error · always an `error` object: ```json { "error": { "code": "max_credits_exceeded", "message": "The price 12 is above your max_credits 10. Nothing was charged.", "retryable": false, "details": { "price": 12, "max_credits": 10 } } } ``` Values of your input are never echoed in errors. The codes are in [Errors and retries](https://docs.synesta.ai/en/concepts/errors). --- # Requests and lifecycle ## Base URL ```text https://api.synesta.ai/v1 ``` All requests go over HTTPS with a JSON body (`Content-Type: application/json`). The exception is a file upload to `POST /references` as `multipart/form-data`. ## Operations | Method | Path | What it does | |---|---|---| | GET | `/account` | plan, credits, API balance, key limits | | GET | `/models` | models open in the API | | GET | `/models/{id}` | one model and what it accepts | | POST | `/estimate` | price of a generation without starting it | | POST | `/references` | upload a reference | | POST | `/generations` | start a generation | | GET | `/generations` | API generations, newest first | | GET | `/generations/{id}` | status and result of one generation | Fields and responses of each operation are in the [API reference](https://docs.synesta.ai/en/api-reference/methods). ## Generation lifecycle | Stage | What the response shows | |---|---| | Accepted | `202`, the generation in its initial status, `cost_credits` charged, `queue.queued_at` | | Queued and running | intermediate statuses, empty `outputs` | | Done | `status: done`, `outputs[]` with links, `finished_at` | | Failed | `status: failed`, `error` with a code, `refunded: true`, `credits_refunded` | Intermediate statuses may change; rely only on the two final ones: `done` and `failed`. `applied` in a generation lists the parameters it actually ran with: aspect, resolution, duration, number of references. A field you did not send shows its default. ## Result Each item of `outputs`: | Field | What it is | |---|---| | `url` | link to the result file | | `kind` | `image`, `video`, `audio`, `model` (3D) or `file` | | `mime` | file type | | `preview_url` | a lighter copy for display, when present | | `thumb_url` | a thumbnail, when present | Files are stored by Synesta, not by the model provider. The generation is also visible in your account on the site. ## Listing generations `GET /generations` returns generations started through the REST API, newest first. - `type` · one type only; - `limit` · page size, 20 by default, 50 at most; - `before` · cursor: pass `meta.next_before` of the previous page. On the last page `next_before` is `null`. ```bash curl "https://api.synesta.ai/v1/generations?type=video&limit=20" \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` --- # Idempotency Networks drop, timeouts fire before the answer. To make sure a repeated launch is never charged twice, `POST /generations` requires an `Idempotency-Key` header. ```http Idempotency-Key: 6f1c2b0e-3f7a-4d1e-9b8a-2a4c5e7d9f10 ``` ## Rules - The key is a string of printable ASCII characters without spaces, 1 to 80 long. A UUID works well. - One key · one logical operation. A new generation · a new key. - The key is remembered for 24 hours, per API key. - Without the header the request is refused before any charge: 422 `invalid_parameters`, `details.param = "Idempotency-Key"`. ## What a repeat returns | Repeat | Answer | |---|---| | Same key, same body | `200`, the same generation, `meta.replayed: true`, no second charge | | Same key, different body | `409 idempotency_conflict` | | The first request is still running | `409 idempotency_in_progress`, `retryable: true`: retry in a few seconds | ## How to retry 1. Create the key **before** the first attempt and keep it with the task. 2. On a timeout, a dropped connection, `429` or `5xx`, retry with the **same** key and the same body. 3. A `200` with `replayed: true` is your first generation; poll it from there. ```python key = str(uuid.uuid4()) for attempt in range(5): try: res = requests.post(f"{BASE}/generations", headers={**headers, "Idempotency-Key": key}, json=body, timeout=30) except requests.RequestException: time.sleep(2 ** attempt) continue if res.status_code in (200, 202): break err = res.json()["error"] if not err["retryable"]: raise RuntimeError(err["code"]) time.sleep(err.get("retry_after_seconds", 2 ** attempt)) ``` `POST /estimate` charges nothing and needs no key. --- # Polling Fetch the result by polling `GET /generations/{id}`, or receive it with a [webhook](https://docs.synesta.ai/en/concepts/webhooks) instead of polling. ```bash curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` ## When to stop Poll until `status` is `done` or `failed`. There are no other final statuses. - `done` · `outputs` is filled. - `failed` · `error.code` explains why, `error.retryable` tells whether a repeat helps, the price is refunded. ## How often Our recommendation: | Type | First check | Interval | |---|---|---| | Image, voice | after 2–3 s | 2–3 s | | Music, 3D | after 10 s | 5 s | | Video | after 20–30 s | 10 s | Add an overall timeout per task and a growing pause after a few unchanged answers. Reads (`GET`) share one per-minute limit for the whole account, see [Rate limits](https://docs.synesta.ai/en/concepts/rate-limits). ## Many tasks at once Do not poll every generation separately. One `GET /generations?limit=50` returns the statuses of the latest generations in a single request. ## 429 while polling This is the request limit, not a generation error. Wait `Retry-After` seconds and continue: the generation keeps running. --- # Webhooks Receive generation results without continuous polling. Pass an HTTPS endpoint in `webhook_url` when you start a generation, and Synesta sends it a POST once the generation becomes `done` or `failed`. ## Set up 1. Create a signing secret in the [API console](https://open.synesta.ai/webhooks). It starts with `whsec_` and is shown once. One secret covers the whole account: it signs deliveries for every key. 2. Pass `webhook_url` when you start a generation: ```bash curl -X POST https://api.synesta.ai/v1/generations \ -H "Authorization: Bearer $SYNESTA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{"type":"image","model":"MODEL_ID","prompt":"Editorial portrait in soft daylight","webhook_url":"https://example.com/webhooks/synesta"}' ``` Your endpoint must be publicly reachable over HTTPS (port 443), accept a JSON body and respond within five seconds. Without a secret, a request with `webhook_url` returns `422 webhook_secret_required`. ## Payload All deliveries use the same envelope. `data` holds the same object that [`GET /generations/{id}`](https://docs.synesta.ai/en/concepts/polling) returns. ```json { "type": "generation.completed", "timestamp": "2026-12-02T12:05:12Z", "data": { "id": 3680, "type": "image", "status": "done", "outputs": [ { "url": "https://cdn.synesta.ai/labs/outputs/image/2026/12/....png", "kind": "image", "mime": "image/png" } ], "cost_usd": 0.48, "refunded": false } } ``` `type` is `generation.completed` or `generation.failed`. For `generation.failed`, `data.error` explains why, and the price is already refunded to the API balance. ## Verify signatures Deliveries are signed using the [Standard Webhooks](https://www.standardwebhooks.com/) specification. Verify every delivery before trusting it: anyone who knows your endpoint URL can send it a request. Each delivery has three headers: | Header | Value | |---|---| | `webhook-id` | Event identifier. It stays the same across retries of the same event. | | `webhook-timestamp` | Unix time in seconds when the delivery was signed. | | `webhook-signature` | One or more space-separated signatures in the form `v1,`. | ### With a library The official Standard Webhooks library checks the signature and rejects timestamps outside a five-minute tolerance. Verify the raw request body before parsing JSON: re-serialized JSON does not match the signature. **Python** ```python import os from standardwebhooks import Webhook, WebhookVerificationError webhook = Webhook(os.environ["SYNESTA_WEBHOOK_SECRET"]) try: event = webhook.verify(raw_body, headers) except WebhookVerificationError: return Response(status=400) ``` **TypeScript** ```ts import { Webhook } from 'standardwebhooks'; const webhook = new Webhook(process.env.SYNESTA_WEBHOOK_SECRET!); try { const event = webhook.verify(rawBody, headers); } catch { return new Response(null, { status: 400 }); } ``` Install with `pip install standardwebhooks` or `npm install standardwebhooks`. Libraries for other languages are listed in the [Standard Webhooks repository](https://github.com/standard-webhooks/standard-webhooks). ### Manually 1. Remove the `whsec_` prefix from the secret and base64-decode the rest to get the HMAC key. 2. Build the signed content `{webhook-id}.{webhook-timestamp}.{raw body}`. 3. Compute HMAC-SHA256 of the signed content with the key and base64-encode the result. 4. Compare it with each `v1,` entry of `webhook-signature` using a constant-time comparison. Accept the delivery if any entry matches. 5. Reject deliveries whose `webhook-timestamp` is more than five minutes from your current time. ## Rotate the secret Reissue the secret in the console if it may have been exposed. The new secret takes effect immediately, and the previous one keeps signing for 24 hours. During that window `webhook-signature` carries one signature per secret, so update your server before the previous secret expires. At most two secrets are valid at the same time. ## Delivery and retries - Return any 2xx after durably recording the event. We don't read the response body, keep it short. - 5xx, 408 and 429 responses, timeouts and network failures are retried: up to 6 attempts in total with growing pauses (30 s, 2 min, 8 min, 32 min, 1 h). - Other 4xx responses are treated as permanent and are not retried. - Redirects are not followed, and we never send to private or internal addresses. - Duplicate deliveries are possible. Deduplicate by `webhook-id`. - If delivery fails permanently, retrieve the result by [polling](https://docs.synesta.ai/en/concepts/polling). The last 50 deliveries are visible in the API console. --- # Uploading references Your own image, video or audio as model input: upload it to the reference library first, then pass the id in `reference_ids` of a launch. ## Three ways **File (multipart)** ```bash curl -X POST https://api.synesta.ai/v1/references \ -H "Authorization: Bearer $SYNESTA_API_KEY" \ -F "file=@photo.jpg" ``` **Link** ```bash curl -X POST https://api.synesta.ai/v1/references \ -H "Authorization: Bearer $SYNESTA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://example.com/photo.jpg"}' ``` **base64** ```bash curl -X POST https://api.synesta.ai/v1/references \ -H "Authorization: Bearer $SYNESTA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"file_base64":"iVBORw0KGgo...","mime":"image/png","name":"photo.png"}' ``` | Way | Accepts | |---|---| | `file` (multipart) | image, video, audio | | `url` | image only; a public `https` link up to 2048 characters | | `file_base64` + `mime` | image only: `image/jpeg`, `image/png`, `image/webp`, `image/gif`; up to 14 MB by default | Video and audio are accepted as a file only. A file that is too large · 422 `upload_too_large`, the ceiling is in `details.max_mb`. ## Response `201` and the reference: ```json { "data": { "id": 9182, "type": "image", "width": 1024, "height": 1536, "duration_seconds": null, "url": "https://...", "face_status": "pending" } } ``` ## Faces on references Some models do not take references with a recognisable person. After upload a reference is checked; `face_status` shows the state: | `face_status` | Meaning | |---|---| | `not_applicable` | no check needed (for example, audio) | | `pending` | the check is running | | `clear` | no recognisable faces | | `face_detected` | a face is present: models that do not take faces refuse it | A launch with a reference whose check is not finished · 422 `reference_not_analyzed` with `retryable: true`: retry in a minute. A reference with a face on such a model · 422 `reference_not_allowed`: use another file or model. ## Using it ```json { "type": "video", "model": "MODEL_ID", "prompt": "Slow pan", "reference_ids": [9182] } ``` - How many references a model takes is in `capabilities.max_reference_images`; whether one is required · `requires_reference_image`. - Up to 50 ids per request, the model decides the rest. - Someone else's or a deleted id · 404 `not_found` with `details.param = "reference_ids"`. ## Limits - 20 uploads per minute per account by default. - Up to 2 link downloads run at once per account, the rest wait. - The reference library is shared with the site. Full · 422 `reference_library_full`, delete some references on the site. - A link that does not open or returns something else · 422 `reference_fetch_failed`. --- # Errors and retries ## Error shape Every refusal of REST has one shape: ```json { "error": { "code": "rate_limit_exceeded", "message": "Too many requests. Retry after 12 seconds.", "retryable": true, "retry_after_seconds": 12 } } ``` | Field | What it is | |---|---| | `code` | a stable code; build your logic on it | | `message` | text for a person in the `Accept-Language` language (`ru` or `en`); may change | | `retryable` | whether repeating the same request can help | | `retry_after_seconds` | how long to wait; the same value is in the `Retry-After` header | | `details.param` | which field or header was rejected | | `details.model`, `details.max_mb`, `details.unknown_fields`, `details.price`, `details.max_credits` | context of specific codes | Values of your input are never echoed in an error. ## When to retry - `retryable: false` · a repeat will not help. Fix the request, the key or the balance. - `retryable: true` · retry after `retry_after_seconds`, or without it with a growing pause (1, 2, 4, 8 s). - Retry a launch · always with the same `Idempotency-Key`, so there is no second charge. See [Idempotency](https://docs.synesta.ai/en/concepts/idempotency). - `500 internal_error` · a failure on our side that we already know about. Retry later. ## Request error codes This table is built from the service code on every docs build. | Code | HTTP | Retry helps | Message | |---|---|---|---| | `unauthenticated` | 401 | no | The API key is missing or invalid. | | `account_blocked` | 403 | no | This account is blocked. | | `account_pending_deletion` | 403 | no | This account is scheduled for deletion. | | `api_access_required` | 403 | no | Your plan does not include API access. Choose a plan that does. | | `api_not_enabled` | 403 | no | API access is not enabled for this account yet. | | `rest_not_included` | 403 | no | REST is closed for this account right now. The same key works over MCP. | | `api_key_suspended` | 403 | no | API keys of this account are suspended after the content filter rejected several requests. Support can lift the suspension. | | `team_not_supported` | 403 | no | The API is not available in team mode. Switch to your personal account. | | `plan_required` | 403 | no | This model is not available on your plan. | | `invalid_parameters` | 422 | no | Some parameters are invalid or not supported by this model. See details. | | `unsupported_input` | 422 | no | This model does not accept this input through the API. See details. | | `invalid_webhook_url` | 422 | no | The webhook URL was not accepted. It must be an https link on port 443, reachable from the internet, up to 2048 characters. | | `webhook_secret_required` | 422 | no | To receive webhooks, create a signing secret in your profile, API section. | | `webhooks_disabled` | 503 | no | Webhooks are switched off right now. Start without webhook_url and fetch the result with a request. | | `unknown_model` | 404 | no | No model with this id. Take the id from list_models. | | `not_found` | 404 | no | Not found. | | `reference_not_allowed` | 422 | no | This reference cannot be used: it shows a real or recognisable person. Use another file. | | `reference_not_analyzed` | 422 | yes | This reference is still being checked. Retry in a minute. | | `moderation_blocked` | 422 | no | The request was rejected by the content filter. Rephrase the prompt. | | `pricing_not_configured` | 422 | no | No price is set for these settings. Pick other settings or another model. | | `max_credits_exceeded` | 422 | no | The price :price is above your max_credits :max. Nothing was charged. | | `api_key_limit_reached` | 422 | no | You have reached the limit of :limit API keys. Revoke one first. | | `reference_fetch_failed` | 422 | no | Could not download a file from this link. Check the link or upload the file. | | `upload_too_large` | 422 | no | The file is larger than the :mb MB limit. | | `reference_library_full` | 422 | no | The reference library is full. Delete some references first. | | `upload_failed` | 503 | yes | The file could not be saved. Retry. | | `method_not_allowed` | 405 | no | This method is not supported here. | | `insufficient_credits` | 402 | no | Not enough credits: need :need, have :have. | | `insufficient_api_balance` | 402 | no | Not enough API balance: need $:need, have $:have. Top it up in your profile, «API and MCP». | | `idempotency_conflict` | 409 | no | This Idempotency-Key was already used with different parameters. | | `idempotency_in_progress` | 409 | yes | A request with this Idempotency-Key is still running. Retry in a few seconds. | | `rate_limit_exceeded` | 429 | yes | Too many requests. Retry after :seconds seconds. | | `concurrency_limit` | 429 | yes | Too many generations running at once. Wait for one to finish. | | `daily_limit_exceeded` | 429 | yes | This key has used its daily limit of :limit credits. It resets at 00:00 UTC. | | `model_unavailable` | 503 | yes | This model is switched off in the API right now: :reason | | `model_busy` | 503 | yes | The model is at capacity. Retry later or pick another model. | | `service_unavailable` | 503 | yes | The service is temporarily unavailable. | | `internal_error` | 500 | no | Something went wrong on our side. Retry later. | `:price`, `:limit` and other words with a colon are replaced with numbers from the request. ## Why a generation failed The launch was accepted but the generation ended `failed`. Then the generation has an `error` field with a code from this list, and the price is refunded. | Code | Retry helps | Message | |---|---|---| | `content_rejected` | no | The request was rejected by the content filter. Remove real artist names and copyrighted lyrics, or rephrase the prompt. | | `reference_rejected` | no | A reference file was rejected: it shows a real or recognisable person or a child, or it could not be processed. Use another file. | | `invalid_input` | no | The model did not accept these settings. Change them and retry. | | `no_result` | yes | The model returned no result for this prompt. | | `result_unavailable` | yes | The result could not be saved. Retry. | | `temporary_error` | yes | A temporary error occurred. Retry in a minute. | | `timeout` | yes | The generation took too long and was cancelled. | | `model_busy` | yes, wait 60 s | The model is at capacity. Retry later or pick another model. | | `service_unavailable` | yes, wait 300 s | The service is temporarily unavailable. | ## Common cases | Code | What to do | |---|---| | `insufficient_api_balance` | top up the API balance in the [console](https://open.synesta.ai/billing) | | `max_credits_exceeded` | raise `max_credits` or pick cheaper settings; `details.price` is the price | | `daily_limit_exceeded` | wait until 00:00 UTC or raise the daily limit of the key | | `concurrency_limit` | wait for one of the running generations to finish | | `model_unavailable` | use a model from `alternatives` in `GET /models` | | `unsupported_input` | remove the field named in `details.param`: the model does not take it | --- # Rate limits Limits are per account, not per key: five keys do not give five limits. The numbers below are defaults; the service may change them without a new API version. ## Requests per minute | Group | Operations | Limit | |---|---|---| | Read | `GET /account`, `/models`, `/models/{id}`, `/generations`, `/generations/{id}` | 120 | | Price | `POST /estimate` | 60 | | Launch | `POST /generations` | 6 | | Upload | `POST /references` | 20 | Over the limit · `429 rate_limit_exceeded` with a `Retry-After` header. ## Concurrent generations How many generations of one type may run at once: | Type | At once | |---|---| | `image` | 4 | | `video` | 3 | | `music` | 2 | | `voice` | 2 | | `3d` | 1 | All unfinished generations of the account of that type count, including ones started on the site. Over the limit · `429 concurrency_limit`: wait for one to finish. ## Money per key | Limit | Default | |---|---| | Daily key limit | 300 credits, resets at 00:00 UTC; change it in the console | | Daily limit ceiling | 5000 credits | | Ceiling of one launch | 2000 credits | | `max_credits` in a request | your cap for that launch | Daily limit used up · `429 daily_limit_exceeded`. `POST /estimate` answers `exceeds_daily_limit: true` in advance when a launch will not fit into what is left. Current `daily_limit` and `daily_spent` are in `GET /account`. ## Request size - A JSON request body is up to 2 MB by default. - `POST /references` has its own ceiling per file type. - Over it · `422 upload_too_large`, the ceiling is in `details.max_mb`. ## Keys - Up to 5 keys per account. - Failed sign-in attempts are limited per IP: after a series of `401` from one address the answer becomes `429`. --- # Billing and storage ## Who pays with what | Entry point | Paid with | Plan | |---|---|---| | REST `/api/v1` | API balance in US dollars | not needed | ## REST price The price of a REST generation = its price in credits on the site, **without** plan discounts, vouchers and promos, × the API credit price. - The API credit price is **$0.0625** now. The current value is `usd_per_credit` in `GET /account`. - `POST /estimate` returns the price in credits (`credits`) and in dollars (`cost_usd`) before launch. - A generation carries `cost_credits` and `cost_usd`. - Not enough balance · `402 insufficient_api_balance`, the generation does not start and plan credits are not used instead. Example: a 16-credit generation costs 16 × $0.0625 = $1.00. ## Top-up - In the [console, «Billing»](https://open.synesta.ai/billing), by card through Stripe. - Any amount from **$5** to **$1000**, one-cent steps. - The balance is credited right after payment. - There is no auto top-up yet. The API balance does not expire while the account exists. It is spent only on REST generations and cannot be withdrawn or transferred. A top-up is non-refundable once credited, except for cases in the Refund Policy. Exact terms · [Terms of use](https://synesta.ai/terms), sections «API» and «API balance». ## Refunds for generations - A generation ended `failed` · the full price goes back where it was charged from (API balance or credits): `refunded: true`, `credits_refunded`. - The model delivered fewer results than ordered · the difference is refunded, details in `partial_refund`: `expected`, `delivered`, `refund_credits`. ## Storing results - Results are stored by Synesta; links in `outputs` lead there, not to the model provider. - API generations are visible in your account on the site together with the rest. - Uploaded references live in the account reference library, shared with the site. Generations from Claude and ChatGPT are separate, on a subscription: [synesta.ai/mcp](https://synesta.ai/mcp). --- # Client libraries > **Coming soon** There are no official SDKs yet. This section will appear together with them. Until then, send requests with any HTTP client. JavaScript and Python examples are in the [Quickstart](https://docs.synesta.ai/en/quickstart), every operation is in the [API reference](https://docs.synesta.ai/en/api-reference). --- # Organizations > **Coming soon** Using the API on behalf of a team will come later. This section will describe it at launch. For now an API key belongs to a single account. An account in team mode gets `403 team_not_supported`, see [Authentication](https://docs.synesta.ai/en/authentication). --- # FAQ ## What pays for REST? A separate API balance in dollars, no plan needed. For AI agents (Claude, ChatGPT) there is MCP on a subscription: [synesta.ai/mcp](https://synesta.ai/mcp). ## Do I need a plan? No. REST is paid from the API balance. ## How much does a REST generation cost? The price in credits as on the site, without plan discounts and promos, × $0.0625 per credit. `POST /estimate` returns the exact amount in `cost_usd` before launch. ## I was charged and the generation failed. Do I get it back? Yes, in full: `refunded: true` on the generation. When fewer results came than ordered, the difference is refunded. ## Can I cap spending? Yes, three ways: the daily credit limit of the key, `max_credits` on every launch and the size of the API balance itself. ## The response failed with a network error. Did the launch go through? Repeat the request with the same `Idempotency-Key`. If it went through, you get the same generation with `replayed: true` and no second charge. See [Idempotency](https://docs.synesta.ai/en/concepts/idempotency). ## How do I know a generation is ready? Poll `GET /generations/{id}` until `done` or `failed`. Webhooks are coming soon. ## Where do I get a model id? `GET /models`. The docs have no list: it depends on the account and changes. ## Can I upload my own photo? Yes, through `POST /references` as a file, a link or base64. Some models do not take recognisable people on references, see [Uploading references](https://docs.synesta.ai/en/concepts/file-uploads). ## Is there an SDK? Not yet. The [API reference](https://docs.synesta.ai/en/api-reference) is built from an OpenAPI specification you can generate a client from. ## What language are the errors in? The `Accept-Language` language: `ru` or `en`. Codes are the same. ## Why 403 `rest_not_included`? REST is closed for your account right now. Contact support if you need REST. ## Where are the API terms? [Terms of use](https://synesta.ai/terms), sections «API» and «API balance». --- # Support A question about the API or billing · write to the [support chat on the site](https://synesta.ai/support). To speed things up, include the generation `id` and the `error.code` from the response, if you have them. Never send the API key itself. Before writing, check the [FAQ](https://docs.synesta.ai/en/resources/faq) and [Errors and retries](https://docs.synesta.ai/en/concepts/errors): every code is described there with what to do about it. --- # Status > **Coming soon** A service status page will appear later. For now, `available` and `reason` in `GET /models` tell whether a model works right now. --- # 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](https://open.synesta.ai/api-keys), details in [Authentication](https://docs.synesta.ai/en/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](https://docs.synesta.ai/en/concepts/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](https://docs.synesta.ai/en/concepts/polling) and [Webhooks](https://docs.synesta.ai/en/concepts/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](https://docs.synesta.ai/en/api-reference/methods). - [GET `/account`](https://docs.synesta.ai/en/api-reference/methods#get_account) · Plan, credit balance and limits of the key - [GET `/models`](https://docs.synesta.ai/en/api-reference/methods#list_models) · Models you can use, with their limits - [GET `/models/{id}`](https://docs.synesta.ai/en/api-reference/methods#get_model) · One model with its capabilities - [POST `/estimate`](https://docs.synesta.ai/en/api-reference/methods#estimate_cost) · Price of a generation without starting it - [GET `/generations`](https://docs.synesta.ai/en/api-reference/methods#list_generations) · Generations made with API keys, newest first - [POST `/generations`](https://docs.synesta.ai/en/api-reference/methods#generate) · Start a generation - [GET `/generations/{id}`](https://docs.synesta.ai/en/api-reference/methods#get_generation) · Status and result of one generation - [POST `/references`](https://docs.synesta.ai/en/api-reference/methods#upload_reference) · 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.
Images31 models Video15 models Music3 models Voice6 models 3D1 model
## Next - [Quickstart](https://docs.synesta.ai/en/quickstart) - [Requests and lifecycle](https://docs.synesta.ai/en/concepts/requests) - [Errors and retries](https://docs.synesta.ai/en/concepts/errors) --- # Models Every model available in the REST API. The dollar price is the lowest one; `POST /estimate` gives the exact price for your parameters. What the model fields mean · [Model fields](https://docs.synesta.ai/en/api-reference/model-capabilities). ## Images ### Flux Flux sticks to the prompt and holds fine detail at high resolution. Schnell is for drafts, Pro and Flex for final work.
Flux 2 Flexfrom $0.57 per run Flux 2 Profrom $0.44 per run
### GPT Image GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame.
GPT Image 2 Highfrom $1.25 per run GPT Image 2 Lowfrom $0.13 per run GPT Image 2 Mediumfrom $0.38 per run GPT Image 2 · Inpaintfrom $0.38 per run GPT Image 2.5 Highfrom $0.23 per run GPT Image 2.5 Lowfrom $0.03 per run GPT Image 2.5 Mediumfrom $0.06 per run
### Grok Imagine Grok Imagine makes stills and short videos fast, in a looser, meme-friendly style.
Grok Imaginefrom $0.13 per run Grok Imagine Img2Imgfrom $0.13 per run Grok Imagine Profrom $0.20 per run
### Nano Banana Nano Banana edits an existing shot instead of drawing from scratch. It keeps one character recognisable across a series.
Nano Banana Profrom $0.44 per run
### Qwen Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction.
Qwen 2.0from $0.19 per run Qwen 2.0 Profrom $0.25 per run Qwen Editfrom $0.13 per run Qwen Edit Maxfrom $0.25 per run Qwen Edit Plusfrom $0.19 per run Qwen Maxfrom $0.31 per run Qwen Plusfrom $0.19 per run
### Recraft Recraft cuts out backgrounds and upscales images with clean edges. Handy for product shots and layouts.
Crisp Upscalefrom $0.02 per run Remove Backgroundfrom $0.04 per run
### Seedream Seedream makes photographic scenes and product shots in 2K and 4K. It takes up to 14 references.
Seedream 4.0from $0.13 per run Seedream 4.5from $0.19 per run Seedream 5 Profrom $0.31 per run Seedream 5.0 Litefrom $0.25 per run
### Topaz Topaz repairs rather than generates: it upscales images and video and cleans compression artefacts.
Topaz Image Upscalefrom $0.75 per run
### Wan Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills.
Wan 2.5from $0.19 per run Wan 2.7from $0.19 per run Wan 2.7 Profrom $0.25 per run
### Z-Image Z-Image Turbo gives a usable frame in seconds at the lowest price. Try a composition on it before a heavier model.
Z-Image Turbofrom $0.13 per run
## Video ### Grok Imagine Grok Imagine makes stills and short videos fast, in a looser, meme-friendly style.
Grok Videofrom $0.11 per second
### HappyHorse
HappyHorse 1.0from $1.14 per second HappyHorse 1.1from $0.88 per second
### Runway Runway gives controlled camera moves and clean transitions from a still or text. A safe pick when a clip must cut into real footage.
Runwayfrom $0.49 per run
### Seedance Seedance animates a still or builds a clip from text with steady camera motion. New versions add sound and reference video.
Seedance 1.0 Fastfrom $0.06 per second Seedance 1.5 Profrom $0.13 per second Seedance 2 Fastfrom $0.25 per second Seedance 2 Minifrom $0.44 per second Seedance 2 Profrom $0.38 per second Seedance 2.5from $1.63 per second
### Wan Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills.
Wan 2.5from $1.13 per run Wan 2.6from $0.50 per second Wan 2.6 Flashfrom $0.31 per second Wan 2.7from $0.63 per second Wan 2.7from $0.63 per second
## Music ### Suno Suno writes full songs with vocals from a style description. Bring your own lyrics or let the model write them.
Suno V6from $0.31 per run Suno V6 Minifrom $0.31 per run Suno V6 Wildfrom $0.31 per run
## Voice ### other
Eleven v3from $0.44 per character Eleven v4from $0.44 per character Eleven v4 Turbofrom $0.22 per character Flash v2.5from $0.22 per character Multilingual v2from $0.44 per character Turbo v2.5from $0.22 per character
## 3D ### Rodin
Rodin Gen-2from $2.19 per run
--- # Model fields The model catalog changes without a new API version: the model pages in this reference are built at docs build time, while `GET /models` and `GET /models/{id}` return the current list, prices and limits. All model pages · [All models](https://docs.synesta.ai/en/api-reference/models). An overview with examples · [synesta.ai/models](https://synesta.ai/models). ## Types | `type` | What it does | |---|---| | `image` | images, edits and upscaling | | `video` | video from text and from references | | `music` | songs and instrumentals | | `voice` | text to speech | | `3d` | 3D models | ## List ```bash curl "https://api.synesta.ai/v1/models?type=video" \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` | Field | What it is | |---|---| | `id` | value for the `model` field | | `name`, `brand` | model name and developer | | `credits_from` | lowest price in credits | | `available` | whether it can run right now | | `reason` | why the model is switched off now | | `alternatives` | ids of replacement models, up to three | | `capabilities` | what the model accepts | ## What a model accepts `GET /models/{id}` returns `capabilities`. A missing key means the setting does not apply to the model. | Field | Meaning | |---|---| | `aspects`, `default_aspect` | aspect ratios for `aspect` | | `resolutions`, `image_resolutions`, `default_resolution` | resolutions for `resolution` | | `duration_options`, `duration_min`, `duration_max`, `fixed_duration`, `default_duration` | video duration in seconds | | `has_sound` | video with sound, field `sound` | | `max_prompt_length`, `text_optional` | prompt limit and whether it can be empty | | `allow_reference_images`, `requires_reference_image`, `max_reference_images` | references | | `supports_seed`, `supports_negative_prompt`, `max_negative_prompt_length` | `seed` and `negative` | | `upscale_factors` | values of `upscale_factor` | | `requires_mask` | the edit needs a mask, field `mask_target` | | `voices`, `default_voice` | voices for `voice_id` | | `speed_min`, `speed_max` | `speed` range of a voice | A value outside these lists · 422 `invalid_parameters` with the field in `details.param`. A field the model does not take at all · 422 `unsupported_input`. ## Model switched off A model may stop taking launches for a while. Then `available: false`, `reason` explains why (maintenance, overload, update, provider incident, the model's daily cap, paused in the API) and `alternatives` suggests a replacement. Launching it · 503 `model_unavailable`. A model at capacity during a launch · 503 `model_busy` with `retry_after_seconds`. ## Price `credits_from` is a guide. The exact price for your settings comes from `POST /estimate`, in dollars too for REST. The price in credits matches the site; how it converts to dollars is in [Billing and storage](https://docs.synesta.ai/en/concepts/billing). --- # API reference Every REST operation with its parameters, body and responses. This page is built from the OpenAPI specification on every docs build. - **Base URL:** `https://api.synesta.ai/v1` - **Authentication:** `Authorization: Bearer ` header on every request, see [Authentication](https://docs.synesta.ai/en/authentication). - **Specification:** OpenAPI 1.0.0 Error codes and what to do with them · [Errors and retries](https://docs.synesta.ai/en/concepts/errors). ## Account ### Plan, credit balance and limits of the key GET `/account` **Responses** | Code | Description | Type | |---|---|---| | `200` | Account of the key owner. | `data`: [Account](#schema-account) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ## Models ### Models you can use, with their limits GET `/models` **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `type` | query | [GenerationType](#schema-generationtype) | | Return models of one type only. | **Responses** | Code | Description | Type | |---|---|---| | `200` | List of models. | `data`: array of [Model](#schema-model) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `422` | The request is wrong or cannot be priced. `error.details.param` names the field. Codes: `invalid_parameters`, `unsupported_input`, `reference_not_allowed`, `reference_not_analyzed`, `moderation_blocked`, `pricing_not_configured`, `max_credits_exceeded`, `api_key_limit_reached`, `reference_fetch_failed`, `upload_too_large`, `reference_library_full`, `invalid_webhook_url`, `webhook_secret_required`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ### One model with its capabilities GET `/models/{id}` **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | string | yes | Model id from `GET /models`. | **Responses** | Code | Description | Type | |---|---|---| | `200` | The model. | `data`: [Model](#schema-model) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `404` | Unknown model or an object that is not yours. Codes: `unknown_model`, `not_found`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ## Generations ### Price of a generation without starting it POST `/estimate` Takes the same body as `POST /generations`. Nothing is charged and no `Idempotency-Key` is needed. **Request body** · `application/json` Type: [GenerationInput](#schema-generationinput) **Responses** | Code | Description | Type | |---|---|---| | `200` | Price in credits. | `data`: [Estimate](#schema-estimate) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `404` | Unknown model or an object that is not yours. Codes: `unknown_model`, `not_found`. | [ApiError](#schema-apierror) | | `422` | The request is wrong or cannot be priced. `error.details.param` names the field. Codes: `invalid_parameters`, `unsupported_input`, `reference_not_allowed`, `reference_not_analyzed`, `moderation_blocked`, `pricing_not_configured`, `max_credits_exceeded`, `api_key_limit_reached`, `reference_fetch_failed`, `upload_too_large`, `reference_library_full`, `invalid_webhook_url`, `webhook_secret_required`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ### Generations made with API keys, newest first GET `/generations` **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `type` | query | [GenerationType](#schema-generationtype) | | | | `limit` | query | integer | | Page size. The default is 20, the maximum is set by the service. *min 1* | | `before` | query | integer | | Return generations with an id below this one. Use `meta.next_before` of the previous page. *min 1* | **Responses** | Code | Description | Type | |---|---|---| | `200` | A page of generations. | `data`: array of [Generation](#schema-generation) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `422` | The request is wrong or cannot be priced. `error.details.param` names the field. Codes: `invalid_parameters`, `unsupported_input`, `reference_not_allowed`, `reference_not_analyzed`, `moderation_blocked`, `pricing_not_configured`, `max_credits_exceeded`, `api_key_limit_reached`, `reference_fetch_failed`, `upload_too_large`, `reference_library_full`, `invalid_webhook_url`, `webhook_secret_required`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ### Start a generation POST `/generations` Charges credits when accepted and answers 202 with the generation in its initial status. Poll `GET /generations/{id}` for the result. A repeat with the same `Idempotency-Key` and the same body returns the same generation with HTTP 200 and `meta.replayed: true`, without a second charge. The same key with a different body gives 409 `idempotency_conflict`. Optional `webhook_url` makes the service call you when the generation is finished (see the `generation_finished` webhook); it needs a signing secret created in your profile (API section), otherwise 422 `webhook_secret_required`. `webhook_url` is not part of the idempotency check: a replay keeps the address of the first request. **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `Idempotency-Key` | header | string | yes | Unique string for one logical request (for example a UUID). Without it the request is rejected with 422 `invalid_parameters` before any charge. The key is remembered for 24 hours. *min length 1, max length 255* | **Request body** · `application/json` Type: [GenerationInput](#schema-generationinput) **Responses** | Code | Description | Type | |---|---|---| | `200` | Replay of an earlier request with the same `Idempotency-Key`. | [GenerationStarted](#schema-generationstarted) | | `202` | Accepted. | [GenerationStarted](#schema-generationstarted) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `402` | Not enough credits (`insufficient_credits`) or, for REST, not enough API balance (`insufficient_api_balance`). | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `404` | Unknown model or an object that is not yours. Codes: `unknown_model`, `not_found`. | [ApiError](#schema-apierror) | | `409` | Codes: `idempotency_conflict` (same key, different body), `idempotency_in_progress` (the first request is still running, retry). | [ApiError](#schema-apierror) | | `422` | The request is wrong or cannot be priced. `error.details.param` names the field. Codes: `invalid_parameters`, `unsupported_input`, `reference_not_allowed`, `reference_not_analyzed`, `moderation_blocked`, `pricing_not_configured`, `max_credits_exceeded`, `api_key_limit_reached`, `reference_fetch_failed`, `upload_too_large`, `reference_library_full`, `invalid_webhook_url`, `webhook_secret_required`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ### Status and result of one generation GET `/generations/{id}` **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | *min 1* | **Responses** | Code | Description | Type | |---|---|---| | `200` | The generation. `outputs` is filled when `status` is `done`. | `data`: [Generation](#schema-generation) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `404` | Unknown model or an object that is not yours. Codes: `unknown_model`, `not_found`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ## References ### Upload a reference file for later generations POST `/references` Send one of: multipart field `file`; JSON `url` (public https link); JSON `file_base64` with `mime`. The returned `id` goes into `reference_ids` of a generation. Video and audio references are accepted through multipart only. **Request body** · `multipart/form-data` | Field | Type | Required | Description | |---|---|---|---| | `file` | string (binary) | yes | | **Request body** · `application/json` **Variant 1** | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | *max length 2048* | **Variant 2** | Field | Type | Required | Description | |---|---|---|---| | `file_base64` | string | yes | | | `mime` | string | yes | *one of: `image/jpeg`, `image/png`, `image/webp`, `image/gif`* | | `name` | string | | *max length 255* | **Responses** | Code | Description | Type | |---|---|---| | `201` | Reference stored. | `data`: [Reference](#schema-reference) | | `401` | No key, a wrong key, a revoked or expired key. Code `unauthenticated`. Headers: `WWW-Authenticate`. | [ApiError](#schema-apierror) | | `403` | The account or the key cannot use the API. Codes: `account_blocked`, `account_pending_deletion`, `api_access_required`, `api_not_enabled`, `rest_not_included`, `api_key_suspended`, `team_not_supported`, `plan_required`. | [ApiError](#schema-apierror) | | `422` | The request is wrong or cannot be priced. `error.details.param` names the field. Codes: `invalid_parameters`, `unsupported_input`, `reference_not_allowed`, `reference_not_analyzed`, `moderation_blocked`, `pricing_not_configured`, `max_credits_exceeded`, `api_key_limit_reached`, `reference_fetch_failed`, `upload_too_large`, `reference_library_full`, `invalid_webhook_url`, `webhook_secret_required`. | [ApiError](#schema-apierror) | | `429` | Too many requests, too many running generations or the daily credit limit of the key is reached. Retry after `Retry-After` seconds. Codes: `rate_limit_exceeded`, `concurrency_limit`, `daily_limit_exceeded`. Headers: `Retry-After`. | [ApiError](#schema-apierror) | | `503` | Temporary problem, safe to retry with the same `Idempotency-Key`. Codes: `upload_failed`, `model_unavailable`, `model_busy`, `service_unavailable`, `webhooks_disabled`. A plain 500 `internal_error` is also possible. Headers: `Retry-After`. | [ApiError](#schema-apierror) | ## Schemas Objects the operations refer to. ### GenerationType `image` · `video` · `music` · `voice` · `3d` ### ErrorCode Public error code. `retryable` in the error tells if a repeat can help. `unauthenticated` · `account_blocked` · `account_pending_deletion` · `api_access_required` · `api_not_enabled` · `rest_not_included` · `api_key_suspended` · `team_not_supported` · `plan_required` · `invalid_parameters` · `unsupported_input` · `invalid_webhook_url` · `webhook_secret_required` · `webhooks_disabled` · `unknown_model` · `not_found` · `reference_not_allowed` · `reference_not_analyzed` · `moderation_blocked` · `pricing_not_configured` · `max_credits_exceeded` · `api_key_limit_reached` · `reference_fetch_failed` · `upload_too_large` · `reference_library_full` · `upload_failed` · `method_not_allowed` · `insufficient_credits` · `insufficient_api_balance` · `idempotency_conflict` · `idempotency_in_progress` · `rate_limit_exceeded` · `concurrency_limit` · `daily_limit_exceeded` · `model_unavailable` · `model_busy` · `service_unavailable` · `internal_error` ### GenerationErrorCode Why a started generation failed (`Generation.error.code`). `content_rejected` · `reference_rejected` · `invalid_input` · `no_result` · `result_unavailable` · `temporary_error` · `timeout` · `model_busy` · `service_unavailable` ### ApiError | Field | Type | Required | Description | |---|---|---|---| | `error` | object | yes | | ### Account | Field | Type | Required | Description | |---|---|---|---| | `plan` | string | yes | Plan slug of the account. | | `credits` | number | yes | Credit balance. | | `api_balance_usd` | number | | REST only: API balance in US dollars. REST is paid from it, not from plan credits. | | `usd_per_credit` | number | | REST only: price of one credit charged from the API balance, in US dollars. | | `key` | object | yes | | ### Model | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | Value for `model` in requests. | | `type` | [GenerationType](#schema-generationtype) | yes | | | `name` | string | yes | | | `brand` | string \| null | yes | | | `credits_from` | number \| null | yes | Lowest price in credits. | | `available` | boolean | yes | | | `reason` | string \| null | yes | Why the model is not available now. | | `alternatives` | array of string | yes | Ids of models to use instead. | | `capabilities` | [Capabilities](#schema-capabilities) | yes | What the model accepts. A key is absent when it does not apply to the model. | ### Capabilities What the model accepts. A key is absent when it does not apply to the model. | Field | Type | Required | Description | |---|---|---|---| | `aspects` | array of string | | | | `default_aspect` | string \| null | | | | `resolutions` | array of string | | | | `image_resolutions` | array of string | | | | `default_resolution` | string \| null | | | | `duration_options` | array of number | | | | `duration_min` | number \| null | | | | `duration_max` | number \| null | | | | `fixed_duration` | number \| null | | | | `default_duration` | number \| null | | | | `has_sound` | boolean | | | | `max_prompt_length` | integer \| null | | | | `text_optional` | boolean | | | | `allow_reference_images` | boolean | | | | `requires_reference_image` | boolean | | | | `max_reference_images` | integer \| null | | | | `supports_seed` | boolean | | | | `supports_negative_prompt` | boolean | | | | `max_negative_prompt_length` | integer \| null | | | | `upscale_factors` | array of string | | | | `requires_mask` | boolean | | | | `voices` | array of object | | Voice models: voices to pass as `voice_id`. | | `default_voice` | string \| null | | Voice used when `voice_id` is omitted. | | `speed_min` | number | | | | `speed_max` | number | | | ### GenerationInput Strict body: an unknown field or a wrong type is rejected with 422 `invalid_parameters`, nothing is silently adjusted. Each type takes only its own fields (image: aspect, resolution, upscale_factor, reference_ids, mask_target, negative, seed; video: aspect, resolution, duration, sound, upscale_factor, video_mode, reference_ids, negative, seed; music: mode, instrumental, style, title, vocal_gender; voice: voice_id, speed). A known field that does not apply to the type or model (for example `duration` for music, or `upscale_factor` on a model without upscaling) is rejected with 422 `unsupported_input`, `error.details.param` names it. Which fields a model takes is in `capabilities` of `GET /models/{id}`. | Field | Type | Required | Description | |---|---|---|---| | `type` | [GenerationType](#schema-generationtype) | yes | | | `model` | string | yes | *max length 120* | | `prompt` | string | | Maximum length is in `capabilities.max_prompt_length`. | | `negative` | string | | | | `aspect` | string | | *max length 16* | | `aspect_ratio` | string | | *max length 16* | | `resolution` | string | | *max length 16* | | `duration` | integer | | Seconds. | | `sound` | boolean | | | | `upscale_factor` | integer | | | | `video_mode` | string | | *max length 32* | | `reference_ids` | array of integer | | Ids from `POST /references`. *max items 50* | | `mask_target` | string | | *max length 80* | | `seed` | integer | | | | `mode` | string | | *max length 32* | | `instrumental` | boolean | | | | `style` | string | | *max length 1000* | | `title` | string | | *max length 200* | | `vocal_gender` | string | | *max length 16* | | `voice_id` | string | | An id from `capabilities.voices` of the model. Omitted: `capabilities.default_voice`. *max length 120* | | `speed` | number | | | | `max_credits` | number | | Refuse the request if it costs more than this many credits (422 `max_credits_exceeded`). *min 0* | | `webhook_url` | string (uri) | | Only for `POST /generations`. An https link on port 443 that is reachable from the internet (no credentials, no redirects followed). Called once when the generation becomes `done` or `failed`. Other addresses give 422 `invalid_webhook_url`. *max length 2048* | ### Applied Parameters the service actually used. | Field | Type | Required | Description | |---|---|---|---| | `model` | string | yes | | | `aspect` | string | | | | `resolution` | string | | | | `image_quality` | string | | | | `duration` | number | | | | `sound` | boolean | | | | `upscale_factor` | integer | | | | `video_mode` | string | | | | `negative` | string | | | | `seed` | integer | | | | `style` | string | | | | `title` | string | | | | `vocal_gender` | string | | | | `instrumental` | boolean | | | | `voice_id` | string | | | | `speed` | number | | | | `reference_count` | integer | | | ### Estimate | Field | Type | Required | Description | |---|---|---|---| | `model` | string | yes | | | `credits` | number | yes | Price of the generation in credits. | | `cost_usd` | number | | REST only: what the launch will charge from the API balance, in US dollars. | | `base_credits` | number | yes | | | `exceeds_daily_limit` | boolean | yes | True when this price does not fit into what is left of the daily limit of the key. | | `applied` | [Applied](#schema-applied) | yes | Parameters the service actually used. | ### Output | Field | Type | Required | Description | |---|---|---|---| | `url` | string (uri) | yes | Link to the result file. | | `kind` | string | yes | *one of: `image`, `video`, `audio`, `model`, `file`* | | `mime` | string \| null | yes | | | `preview_url` | string \| null (uri) | yes | | | `thumb_url` | string \| null (uri) | yes | | ### GenerationError | Field | Type | Required | Description | |---|---|---|---| | `code` | [GenerationErrorCode](#schema-generationerrorcode) | yes | Why a started generation failed (`Generation.error.code`). | | `message` | string | yes | | | `retryable` | boolean | yes | | | `retry_after_seconds` | integer | | | ### Generation | Field | Type | Required | Description | |---|---|---|---| | `id` | integer | yes | | | `type` | [GenerationType](#schema-generationtype) | yes | | | `model` | string \| null | yes | | | `status` | string | yes | Waiting and running statuses end in `done` or `failed`. Poll until one of those two. | | `prompt` | string \| null | yes | | | `cost_credits` | number | yes | | | `cost_usd` | number | | Present when the generation was paid from the API balance (REST). Net amount in US dollars: charged minus refunded, so it matches `cost_credits` after a partial delivery or a full refund. | | `refunded` | boolean | yes | True when the whole price was returned. | | `credits_refunded` | number | yes | | | `created_at` | string \| null (date-time) | yes | | | `finished_at` | string \| null (date-time) | yes | | | `outputs` | array of [Output](#schema-output) | yes | Empty until `status` is `done`. | | `error` | [GenerationError](#schema-generationerror) \| null | yes | Set when `status` is `failed`. Failed generations are refunded. | | `queue` | object | yes | | | `partial_refund` | object \| null | yes | Set when fewer results than ordered were delivered and the difference was returned. | | `applied` | [Applied](#schema-applied) | yes | Parameters the service actually used. | ### GenerationStarted | Field | Type | Required | Description | |---|---|---|---| | `data` | [Generation](#schema-generation) | yes | | | `meta` | object | yes | | ### Reference | Field | Type | Required | Description | |---|---|---|---| | `id` | integer | yes | | | `type` | string | yes | *one of: `image`, `video`, `audio`* | | `width` | integer \| null | yes | | | `height` | integer \| null | yes | | | `duration_seconds` | number \| null | yes | | | `url` | string \| null (uri) | yes | | | `face_status` | string | yes | Some models do not take references with a recognisable face; `pending` means the check is still running. *one of: `not_applicable`, `pending`, `clear`, `face_detected`* | --- [← Flux](https://docs.synesta.ai/en/api-reference/models#family-image-flux) # Flux 2 Flex · Images API **Flux.** Flux sticks to the prompt and holds fine detail at high resolution. Schnell is for drafts, Pro and Flex for final work. POST `https://api.synesta.ai/v1/generations` Model ID: `flux-2/flex-text-to-image` Open in Playground ## Notes - Price from $0.57 per run (from 9.08 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"flux-2/flex-text-to-image","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "flux-2/flex-text-to-image", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "flux-2/flex-text-to-image", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | — | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `3:2`, `2:3` | | `resolution` | `string` | | — | `1K`, `2K` | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K" ] }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "flux-2/flex-text-to-image", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 9.08, "cost_usd": 0.5675, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "flux-2/flex-text-to-image" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "flux-2/flex-text-to-image", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 9.08, "cost_usd": 0.5675, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "flux-2/flex-text-to-image" } } } ``` ## Other models **Flux family** - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run **Images** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run --- [← Flux](https://docs.synesta.ai/en/api-reference/models#family-image-flux) # Flux 2 Pro · Images API Flux 2 Pro is the precision tier: it holds fine detail and sticks to what the prompt actually says. Flex trades a little of that for a lower price per image. POST `https://api.synesta.ai/v1/generations` Model ID: `flux-2/pro-text-to-image` Open in Playground ## Notes - Price from $0.44 per run (from 7 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"flux-2/pro-text-to-image","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "flux-2/pro-text-to-image", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "flux-2/pro-text-to-image", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | — | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `3:2`, `2:3` | | `resolution` | `string` | | — | `1K`, `2K` | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K" ] }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "flux-2/pro-text-to-image", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "flux-2/pro-text-to-image" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "flux-2/pro-text-to-image", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "flux-2/pro-text-to-image" } } } ``` ## Other models **Flux family** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run **Images** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2 High · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2-high` Open in Playground ## Notes - Price from $1.25 per run (from 20 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 16 images (`reference_ids`, upload with `POST /references`). - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2-high","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2-high", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2-high", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 16; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-high", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 20, "cost_usd": 1.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-high" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-high", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 20, "cost_usd": 1.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-high" } } } ``` ## Other models **GPT Image family** - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run - [GPT Image 2.5 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-high) · from $0.23 per run - [GPT Image 2.5 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-low) · from $0.03 per run - [GPT Image 2.5 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-medium) · from $0.06 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2 Low · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2-low` Open in Playground ## Notes - Price from $0.13 per run (from 2 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 16 images (`reference_ids`, upload with `POST /references`). - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2-low","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2-low", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2-low", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 16; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-low", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-low" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-low", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-low" } } } ``` ## Other models **GPT Image family** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run - [GPT Image 2.5 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-high) · from $0.23 per run - [GPT Image 2.5 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-low) · from $0.03 per run - [GPT Image 2.5 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-medium) · from $0.06 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2 Medium · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2-medium` Open in Playground ## Notes - Price from $0.38 per run (from 6 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 16 images (`reference_ids`, upload with `POST /references`). - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2-medium","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2-medium", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2-medium", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 16; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-medium", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 6, "cost_usd": 0.375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-medium" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-medium", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 6, "cost_usd": 0.375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-medium" } } } ``` ## Other models **GPT Image family** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run - [GPT Image 2.5 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-high) · from $0.23 per run - [GPT Image 2.5 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-low) · from $0.03 per run - [GPT Image 2.5 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-medium) · from $0.06 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2 · Inpaint · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2-inpaint` Open in Playground ## Notes - Price from $0.38 per run (from 6 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 1. - Needs a mask: the `mask_target` field, it is not in the example below, add it when you start. - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2-inpaint","prompt":"A lighthouse at dawn","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2-inpaint", "prompt": "A lighthouse at dawn", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2-inpaint", "prompt": "A lighthouse at dawn", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `mask_target` | `string` | yes | — | max length 80 | | `reference_ids` | `array` | yes | — | items 1 … 1; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt", "mask_target", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "mask_target": { "type": "string", "maxLength": 80 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 1 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-inpaint", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 6, "cost_usd": 0.375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-inpaint", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2-inpaint", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 6, "cost_usd": 0.375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2-inpaint", "reference_count": 1 } } } ``` ## Other models **GPT Image family** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2.5 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-high) · from $0.23 per run - [GPT Image 2.5 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-low) · from $0.03 per run - [GPT Image 2.5 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-medium) · from $0.06 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2.5 High · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2.5-high` Open in Playground ## Notes - Price from $0.23 per run (from 3.76 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 16 images (`reference_ids`, upload with `POST /references`). - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2.5-high","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2.5-high", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2.5-high", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 16; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2.5-high", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3.76, "cost_usd": 0.235, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2.5-high" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2.5-high", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3.76, "cost_usd": 0.235, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2.5-high" } } } ``` ## Other models **GPT Image family** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run - [GPT Image 2.5 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-low) · from $0.03 per run - [GPT Image 2.5 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-medium) · from $0.06 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2.5 Low · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2.5-low` Open in Playground ## Notes - Price from $0.03 per run (from 0.42 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 16 images (`reference_ids`, upload with `POST /references`). - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2.5-low","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2.5-low", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2.5-low", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 16; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2.5-low", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 0.42, "cost_usd": 0.02625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2.5-low" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2.5-low", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 0.42, "cost_usd": 0.02625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2.5-low" } } } ``` ## Other models **GPT Image family** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run - [GPT Image 2.5 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-high) · from $0.23 per run - [GPT Image 2.5 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-medium) · from $0.06 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← GPT Image](https://docs.synesta.ai/en/api-reference/models#family-image-gpt-image) # GPT Image 2.5 Medium · Images API **GPT Image.** GPT Image follows a long prompt literally and writes readable text. Low is for drafts, High for the final frame. POST `https://api.synesta.ai/v1/generations` Model ID: `gpt-image-2.5-medium` Open in Playground ## Notes - Price from $0.06 per run (from 0.94 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 16 images (`reference_ids`, upload with `POST /references`). - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gpt-image-2.5-medium","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gpt-image-2.5-medium", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gpt-image-2.5-medium", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 16; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2.5-medium", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 0.94, "cost_usd": 0.05875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2.5-medium" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gpt-image-2.5-medium", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 0.94, "cost_usd": 0.05875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gpt-image-2.5-medium" } } } ``` ## Other models **GPT Image family** - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run - [GPT Image 2 Medium](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-medium) · from $0.38 per run - [GPT Image 2 · Inpaint](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-inpaint) · from $0.38 per run - [GPT Image 2.5 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-high) · from $0.23 per run - [GPT Image 2.5 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-5-low) · from $0.03 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run --- [← Grok Imagine](https://docs.synesta.ai/en/api-reference/models#family-image-grok) # Grok Imagine · Images API **Grok Imagine.** Grok Imagine makes stills and short videos fast, in a looser, meme-friendly style. POST `https://api.synesta.ai/v1/generations` Model ID: `grok-imagine` Open in Playground ## Notes - Price from $0.13 per run (from 2 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"grok-imagine","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "grok-imagine", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "grok-imagine", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `3:2`, `2:3` | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "3:2", "2:3" ] }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "grok-imagine", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "grok-imagine", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine" } } } ``` ## Other models **Grok Imagine family** - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run - [Grok Imagine Pro](https://docs.synesta.ai/en/api-reference/models/grok-imagine-pro) · from $0.20 per run - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Grok Imagine](https://docs.synesta.ai/en/api-reference/models#family-image-grok) # Grok Imagine Img2Img · Images API **Grok Imagine.** Grok Imagine makes stills and short videos fast, in a looser, meme-friendly style. POST `https://api.synesta.ai/v1/generations` Model ID: `grok-imagine-i2i` Open in Playground ## Notes - Price from $0.13 per run (from 2 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 5. - Prompt up to 32000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"grok-imagine-i2i","prompt":"A lighthouse at dawn","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "grok-imagine-i2i", "prompt": "A lighthouse at dawn", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "grok-imagine-i2i", "prompt": "A lighthouse at dawn", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 32000 | | `reference_ids` | `array` | yes | — | items 1 … 5; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 32000 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 5 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "grok-imagine-i2i", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine-i2i", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "grok-imagine-i2i", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine-i2i", "reference_count": 1 } } } ``` ## Other models **Grok Imagine family** - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Pro](https://docs.synesta.ai/en/api-reference/models/grok-imagine-pro) · from $0.20 per run - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Grok Imagine](https://docs.synesta.ai/en/api-reference/models#family-image-grok) # Grok Imagine Pro · Images API **Grok Imagine.** Grok Imagine makes stills and short videos fast, in a looser, meme-friendly style. POST `https://api.synesta.ai/v1/generations` Model ID: `grok-imagine-pro` Open in Playground ## Notes - Price from $0.20 per run (from 3.24 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"grok-imagine-pro","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "grok-imagine-pro", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "grok-imagine-pro", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `3:2`, `2:3` | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "3:2", "2:3" ] }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "grok-imagine-pro", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3.24, "cost_usd": 0.2025, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine-pro" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "grok-imagine-pro", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3.24, "cost_usd": 0.2025, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine-pro" } } } ``` ## Other models **Grok Imagine family** - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Nano Banana](https://docs.synesta.ai/en/api-reference/models#family-image-nano-banana) # Nano Banana Pro · Images API Nano Banana Pro holds a character best and edits most precisely. Use it for final frames. POST `https://api.synesta.ai/v1/generations` Model ID: `gemini-3-pro-image-preview` Open in Playground ## Notes - Price from $0.44 per run (from 7 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 10 images (`reference_ids`, upload with `POST /references`). - Prompt up to 5000 characters. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"gemini-3-pro-image-preview","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "gemini-3-pro-image-preview", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "gemini-3-pro-image-preview", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `auto` | | `resolution` | `string` | | — | `1K`, `2K`, `4K` | | `reference_ids` | `array` | | — | items 0 … 10; Reference id from `POST /references`. | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "auto" ] }, "resolution": { "type": "string", "enum": [ "1K", "2K", "4K" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 10 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "gemini-3-pro-image-preview", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gemini-3-pro-image-preview" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "gemini-3-pro-image-preview", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "gemini-3-pro-image-preview" } } } ``` ## Other models **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen 2.0 · Images API Qwen Image 2.0 is the general-purpose tier of the line. Start with it when the frame needs readable text. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-2.0` Open in Playground ## Notes - Price from $0.19 per run (from 3 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 1300 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-2.0","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-2.0", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-2.0", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 1300 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 1300 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9" ], "default": "1:1" }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-2.0", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-2.0", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-2.0", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-2.0", "aspect": "1:1" } } } ``` ## Other models **Qwen family** - [Qwen 2.0 Pro](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0-pro) · from $0.25 per run - [Qwen Edit](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit) · from $0.13 per run - [Qwen Edit Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-max) · from $0.25 per run - [Qwen Edit Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-plus) · from $0.19 per run - [Qwen Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-max) · from $0.31 per run - [Qwen Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-plus) · from $0.19 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen 2.0 Pro · Images API **Qwen.** Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-2.0-pro` Open in Playground ## Notes - Price from $0.25 per run (from 4 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 1300 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-2.0-pro","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-2.0-pro", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-2.0-pro", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 1300 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 1300 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9" ], "default": "1:1" }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-2.0-pro", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-2.0-pro", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-2.0-pro", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-2.0-pro", "aspect": "1:1" } } } ``` ## Other models **Qwen family** - [Qwen 2.0](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0) · from $0.19 per run - [Qwen Edit](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit) · from $0.13 per run - [Qwen Edit Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-max) · from $0.25 per run - [Qwen Edit Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-plus) · from $0.19 per run - [Qwen Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-max) · from $0.31 per run - [Qwen Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-plus) · from $0.19 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen Edit · Images API **Qwen.** Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-edit` Open in Playground ## Notes - Price from $0.13 per run (from 2 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 3. - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-edit","prompt":"A lighthouse at dawn","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-edit", "prompt": "A lighthouse at dawn", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-edit", "prompt": "A lighthouse at dawn", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `reference_ids` | `array` | yes | — | items 1 … 3; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 3 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-edit", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-edit", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-edit", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-edit", "reference_count": 1 } } } ``` ## Other models **Qwen family** - [Qwen 2.0](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0) · from $0.19 per run - [Qwen 2.0 Pro](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0-pro) · from $0.25 per run - [Qwen Edit Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-max) · from $0.25 per run - [Qwen Edit Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-plus) · from $0.19 per run - [Qwen Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-max) · from $0.31 per run - [Qwen Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-plus) · from $0.19 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen Edit Max · Images API **Qwen.** Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-edit-max` Open in Playground ## Notes - Price from $0.25 per run (from 4 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 3. - Prompt up to 800 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-edit-max","prompt":"A lighthouse at dawn","aspect":"1:1","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-edit-max", "prompt": "A lighthouse at dawn", "aspect": "1:1", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-edit-max", "prompt": "A lighthouse at dawn", "aspect": "1:1", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 800 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` | | `reference_ids` | `array` | yes | — | items 1 … 3; Reference id from `POST /references`. | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 800 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9" ], "default": "1:1" }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 3 }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-edit-max", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-edit-max", "aspect": "1:1", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-edit-max", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-edit-max", "aspect": "1:1", "reference_count": 1 } } } ``` ## Other models **Qwen family** - [Qwen 2.0](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0) · from $0.19 per run - [Qwen 2.0 Pro](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0-pro) · from $0.25 per run - [Qwen Edit](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit) · from $0.13 per run - [Qwen Edit Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-plus) · from $0.19 per run - [Qwen Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-max) · from $0.31 per run - [Qwen Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-plus) · from $0.19 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen Edit Plus · Images API **Qwen.** Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-edit-plus` Open in Playground ## Notes - Price from $0.19 per run (from 3 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 3. - Prompt up to 800 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-edit-plus","prompt":"A lighthouse at dawn","aspect":"1:1","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-edit-plus", "prompt": "A lighthouse at dawn", "aspect": "1:1", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-edit-plus", "prompt": "A lighthouse at dawn", "aspect": "1:1", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 800 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` | | `reference_ids` | `array` | yes | — | items 1 … 3; Reference id from `POST /references`. | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 800 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9" ], "default": "1:1" }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 3 }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-edit-plus", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-edit-plus", "aspect": "1:1", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-edit-plus", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-edit-plus", "aspect": "1:1", "reference_count": 1 } } } ``` ## Other models **Qwen family** - [Qwen 2.0](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0) · from $0.19 per run - [Qwen 2.0 Pro](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0-pro) · from $0.25 per run - [Qwen Edit](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit) · from $0.13 per run - [Qwen Edit Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-max) · from $0.25 per run - [Qwen Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-max) · from $0.31 per run - [Qwen Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-plus) · from $0.19 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen Max · Images API **Qwen.** Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-max` Open in Playground ## Notes - Price from $0.31 per run (from 5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 800 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-max","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-max", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-max", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 800 | | `aspect` | `string` | | `"1:1"` | `1:1`, `16:9`, `9:16`, `3:4`, `4:3` | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 800 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "3:4", "4:3" ], "default": "1:1" }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-max", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-max", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-max", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-max", "aspect": "1:1" } } } ``` ## Other models **Qwen family** - [Qwen 2.0](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0) · from $0.19 per run - [Qwen 2.0 Pro](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0-pro) · from $0.25 per run - [Qwen Edit](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit) · from $0.13 per run - [Qwen Edit Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-max) · from $0.25 per run - [Qwen Edit Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-plus) · from $0.19 per run - [Qwen Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-plus) · from $0.19 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Qwen](https://docs.synesta.ai/en/api-reference/models#family-image-qwen) # Qwen Plus · Images API **Qwen.** Qwen Image writes readable text inside the frame. Its edit variants change part of a picture from an instruction. POST `https://api.synesta.ai/v1/generations` Model ID: `qwen-image-plus` Open in Playground ## Notes - Price from $0.19 per run (from 3 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 800 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"qwen-image-plus","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "qwen-image-plus", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "qwen-image-plus", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 800 | | `aspect` | `string` | | `"1:1"` | `1:1`, `16:9`, `9:16`, `3:4`, `4:3` | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 800 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "3:4", "4:3" ], "default": "1:1" }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-plus", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-plus", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "qwen-image-plus", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "qwen-image-plus", "aspect": "1:1" } } } ``` ## Other models **Qwen family** - [Qwen 2.0](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0) · from $0.19 per run - [Qwen 2.0 Pro](https://docs.synesta.ai/en/api-reference/models/qwen-image-2-0-pro) · from $0.25 per run - [Qwen Edit](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit) · from $0.13 per run - [Qwen Edit Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-max) · from $0.25 per run - [Qwen Edit Plus](https://docs.synesta.ai/en/api-reference/models/qwen-image-edit-plus) · from $0.19 per run - [Qwen Max](https://docs.synesta.ai/en/api-reference/models/qwen-image-max) · from $0.31 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Recraft](https://docs.synesta.ai/en/api-reference/models#family-image-recraft) # Crisp Upscale · Images API **Recraft.** Recraft cuts out backgrounds and upscales images with clean edges. Handy for product shots and layouts. POST `https://api.synesta.ai/v1/generations` Model ID: `recraft/crisp-upscale` Open in Playground ## Notes - Price from $0.02 per run (from 0.32 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 1. - Prompt up to 5000 characters. - The prompt can be omitted. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"recraft/crisp-upscale","prompt":"A lighthouse at dawn","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "recraft/crisp-upscale", "prompt": "A lighthouse at dawn", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "recraft/crisp-upscale", "prompt": "A lighthouse at dawn", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | | — | max length 5000 | | `reference_ids` | `array` | yes | — | items 1 … 1; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 1 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "recraft/crisp-upscale", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 0.32, "cost_usd": 0.02, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "recraft/crisp-upscale", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "recraft/crisp-upscale", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 0.32, "cost_usd": 0.02, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "recraft/crisp-upscale", "reference_count": 1 } } } ``` ## Other models **Recraft family** - [Remove Background](https://docs.synesta.ai/en/api-reference/models/recraft-remove-background) · from $0.04 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Recraft](https://docs.synesta.ai/en/api-reference/models#family-image-recraft) # Remove Background · Images API **Recraft.** Recraft cuts out backgrounds and upscales images with clean edges. Handy for product shots and layouts. POST `https://api.synesta.ai/v1/generations` Model ID: `recraft/remove-background` Open in Playground ## Notes - Price from $0.04 per run (from 0.65 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 1. - Prompt up to 5000 characters. - The prompt can be omitted. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"recraft/remove-background","prompt":"A lighthouse at dawn","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "recraft/remove-background", "prompt": "A lighthouse at dawn", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "recraft/remove-background", "prompt": "A lighthouse at dawn", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | | — | max length 5000 | | `reference_ids` | `array` | yes | — | items 1 … 1; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 1 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "recraft/remove-background", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 0.65, "cost_usd": 0.040625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "recraft/remove-background", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "recraft/remove-background", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 0.65, "cost_usd": 0.040625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "recraft/remove-background", "reference_count": 1 } } } ``` ## Other models **Recraft family** - [Crisp Upscale](https://docs.synesta.ai/en/api-reference/models/recraft-crisp-upscale) · from $0.02 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Seedream](https://docs.synesta.ai/en/api-reference/models#family-image-seedream) # Seedream 4.0 · Images API **Seedream.** Seedream makes photographic scenes and product shots in 2K and 4K. It takes up to 14 references. POST `https://api.synesta.ai/v1/generations` Model ID: `doubao-seedream-4.0` Open in Playground ## Notes - Price from $0.13 per run (from 2 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 14 images (`reference_ids`, upload with `POST /references`). - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"doubao-seedream-4.0","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "doubao-seedream-4.0", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "doubao-seedream-4.0", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `reference_ids` | `array` | | — | items 0 … 14; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 14 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-4.0", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-4.0" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-4.0", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-4.0" } } } ``` ## Other models **Seedream family** - [Seedream 4.5](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-4-5) · from $0.19 per run - [Seedream 5 Pro](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-5-0) · from $0.31 per run - [Seedream 5.0 Lite](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-5-0-lite) · from $0.25 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Seedream](https://docs.synesta.ai/en/api-reference/models#family-image-seedream) # Seedream 4.5 · Images API **Seedream.** Seedream makes photographic scenes and product shots in 2K and 4K. It takes up to 14 references. POST `https://api.synesta.ai/v1/generations` Model ID: `doubao-seedream-4.5` Open in Playground ## Notes - Price from $0.19 per run (from 3 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 14 images (`reference_ids`, upload with `POST /references`). - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"doubao-seedream-4.5","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "doubao-seedream-4.5", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "doubao-seedream-4.5", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `reference_ids` | `array` | | — | items 0 … 14; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 14 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-4.5", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-4.5" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-4.5", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-4.5" } } } ``` ## Other models **Seedream family** - [Seedream 4.0](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-4-0) · from $0.13 per run - [Seedream 5 Pro](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-5-0) · from $0.31 per run - [Seedream 5.0 Lite](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-5-0-lite) · from $0.25 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Seedream](https://docs.synesta.ai/en/api-reference/models#family-image-seedream) # Seedream 5 Pro · Images API Seedream 5 Pro gives photographic detail at 2K with up to 14 references. Lite costs less. POST `https://api.synesta.ai/v1/generations` Model ID: `doubao-seedream-5.0` Open in Playground ## Notes - Price from $0.31 per run (from 5 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 10 images (`reference_ids`, upload with `POST /references`). - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"doubao-seedream-5.0","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "doubao-seedream-5.0", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "doubao-seedream-5.0", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `reference_ids` | `array` | | — | items 0 … 10; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 10 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-5.0", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-5.0" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-5.0", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-5.0" } } } ``` ## Other models **Seedream family** - [Seedream 4.0](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-4-0) · from $0.13 per run - [Seedream 4.5](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-4-5) · from $0.19 per run - [Seedream 5.0 Lite](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-5-0-lite) · from $0.25 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Seedream](https://docs.synesta.ai/en/api-reference/models#family-image-seedream) # Seedream 5.0 Lite · Images API **Seedream.** Seedream makes photographic scenes and product shots in 2K and 4K. It takes up to 14 references. POST `https://api.synesta.ai/v1/generations` Model ID: `doubao-seedream-5.0-lite` Open in Playground ## Notes - Price from $0.25 per run (from 4 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 14 images (`reference_ids`, upload with `POST /references`). - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"doubao-seedream-5.0-lite","prompt":"A lighthouse at dawn"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "doubao-seedream-5.0-lite", "prompt": "A lighthouse at dawn", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "doubao-seedream-5.0-lite", "prompt": "A lighthouse at dawn" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | — | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `reference_ids` | `array` | | — | items 0 … 14; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 14 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-5.0-lite", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-5.0-lite" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "doubao-seedream-5.0-lite", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "doubao-seedream-5.0-lite" } } } ``` ## Other models **Seedream family** - [Seedream 4.0](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-4-0) · from $0.13 per run - [Seedream 4.5](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-4-5) · from $0.19 per run - [Seedream 5 Pro](https://docs.synesta.ai/en/api-reference/models/doubao-seedream-5-0) · from $0.31 per run **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Topaz](https://docs.synesta.ai/en/api-reference/models#family-image-topaz) # Topaz Image Upscale · Images API **Topaz.** Topaz repairs rather than generates: it upscales images and video and cleans compression artefacts. POST `https://api.synesta.ai/v1/generations` Model ID: `topaz-image-upscale` Open in Playground ## Notes - Price from $0.75 per run (from 12 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 1. - Prompt up to 5000 characters. - The prompt can be omitted. - `upscale_factor` values: 1, 2, 4. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"topaz-image-upscale","prompt":"A lighthouse at dawn","reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "topaz-image-upscale", "prompt": "A lighthouse at dawn", "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "topaz-image-upscale", "prompt": "A lighthouse at dawn", "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | | — | max length 5000 | | `upscale_factor` | `integer` | | — | `1`, `2`, `4` | | `reference_ids` | `array` | yes | — | items 1 … 1; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "upscale_factor": { "type": "integer", "enum": [ 1, 2, 4 ] }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 1 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "topaz-image-upscale", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 12, "cost_usd": 0.75, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "topaz-image-upscale", "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "topaz-image-upscale", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 12, "cost_usd": 0.75, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "topaz-image-upscale", "reference_count": 1 } } } ``` ## Other models **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-image-wan) # Wan 2.5 · Images API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.5-image` Open in Playground ## Notes - Price from $0.19 per run (from 3 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 2 images (`reference_ids`, upload with `POST /references`). - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"wan2.5-image","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "wan2.5-image", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "wan2.5-image", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | `"1:1"` | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, `21:9` | | `reference_ids` | `array` | | — | items 0 … 2; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9" ], "default": "1:1" }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "wan2.5-image", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.5-image", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "wan2.5-image", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.5-image", "aspect": "1:1" } } } ``` ## Other models **Wan family** - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-image-wan) # Wan 2.7 · Images API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.7-image` Open in Playground ## Notes - Price from $0.19 per run (from 3 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 9 images (`reference_ids`, upload with `POST /references`). - Prompt up to 5000 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"wan2.7-image","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "wan2.7-image", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "wan2.7-image", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` | | `reference_ids` | `array` | | — | items 0 … 9; Reference id from `POST /references`. | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9" ], "default": "1:1" }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 9 }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "wan2.7-image", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-image", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "wan2.7-image", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 3, "cost_usd": 0.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-image", "aspect": "1:1" } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-image-wan) # Wan 2.7 Pro · Images API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.7-image-pro` Open in Playground ## Notes - Price from $0.25 per run (from 4 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 9 images (`reference_ids`, upload with `POST /references`). - Prompt up to 5000 characters. - Takes `negative`. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"wan2.7-image-pro","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "wan2.7-image-pro", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "wan2.7-image-pro", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` | | `reference_ids` | `array` | | — | items 0 … 9; Reference id from `POST /references`. | | `negative` | `string` | | — | max length 500 | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9" ], "default": "1:1" }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 9 }, "negative": { "type": "string", "maxLength": 500 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "wan2.7-image-pro", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-image-pro", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "wan2.7-image-pro", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-image-pro", "aspect": "1:1" } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Z-Image](https://docs.synesta.ai/en/api-reference/models#family-image-z-image) # Z-Image Turbo · Images API Z-Image Turbo is the cheapest and fastest image model on the shelf. It exists to test a composition before the expensive run. POST `https://api.synesta.ai/v1/generations` Model ID: `z-image-turbo` Open in Playground ## Notes - Price from $0.13 per run (from 2 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 2000 characters. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"z-image-turbo","prompt":"A lighthouse at dawn","aspect":"1:1"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "image", "model": "z-image-turbo", "prompt": "A lighthouse at dawn", "aspect": "1:1", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "image", "model": "z-image-turbo", "prompt": "A lighthouse at dawn", "aspect": "1:1" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `image` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | `"1:1"` | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9`, `1:2`, `2:1` | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "image" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "1:2", "2:1" ], "default": "1:1" }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "image", "model": "z-image-turbo", "status": "queued", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "z-image-turbo", "aspect": "1:1" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "image", "model": "z-image-turbo", "status": "done", "prompt": "A lighthouse at dawn", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.png", "kind": "image", "mime": "image/png", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "z-image-turbo", "aspect": "1:1" } } } ``` ## Other models **Images** - [Flux 2 Flex](https://docs.synesta.ai/en/api-reference/models/flux-2-flex-text-to-image) · from $0.57 per run - [Flux 2 Pro](https://docs.synesta.ai/en/api-reference/models/flux-2-pro-text-to-image) · from $0.44 per run - [GPT Image 2 High](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-high) · from $1.25 per run - [GPT Image 2 Low](https://docs.synesta.ai/en/api-reference/models/gpt-image-2-low) · from $0.13 per run --- [← Grok Imagine](https://docs.synesta.ai/en/api-reference/models#family-video-grok) # Grok Video · Video API **Grok Imagine.** Grok Imagine makes stills and short videos fast, in a looser, meme-friendly style. POST `https://api.synesta.ai/v1/generations` Model ID: `grok-imagine-text-to-video` Open in Playground ## Notes - Price from $0.11 per second (from 1.76 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration from 6 to 30 s. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"grok-imagine-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":6}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "grok-imagine-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 6, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "grok-imagine-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 6 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | `"16:9"` | `2:3`, `3:2`, `1:1`, `16:9`, `9:16` | | `resolution` | `string` | | `"720p"` | `480p`, `720p` | | `duration` | `integer` | | `6` | 6 … 30 | | `video_mode` | `string` | | — | max length 32 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "2:3", "3:2", "1:1", "16:9", "9:16" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p" ], "default": "720p" }, "duration": { "type": "integer", "default": 6, "minimum": 6, "maximum": 30 }, "video_mode": { "type": "string", "maxLength": 32 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "grok-imagine-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 1.76, "cost_usd": 0.11, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 6 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "grok-imagine-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 1.76, "cost_usd": 0.11, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "grok-imagine-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 6 } } } ``` ## Other models **Grok Imagine family** - [Grok Imagine](https://docs.synesta.ai/en/api-reference/models/grok-imagine) · from $0.13 per run - [Grok Imagine Img2Img](https://docs.synesta.ai/en/api-reference/models/grok-imagine-i2i) · from $0.13 per run - [Grok Imagine Pro](https://docs.synesta.ai/en/api-reference/models/grok-imagine-pro) · from $0.20 per run **Video** - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second --- [← HappyHorse](https://docs.synesta.ai/en/api-reference/models#family-video-happyhorse) # HappyHorse 1.0 · Video API POST `https://api.synesta.ai/v1/generations` Model ID: `happyhorse-1.0-text-to-video` Open in Playground ## Notes - Price from $1.14 per second (from 18.17 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration from 3 to 15 s. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"happyhorse-1.0-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "happyhorse-1.0-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "happyhorse-1.0-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | `"16:9"` | `16:9`, `9:16`, `1:1`, `4:3`, `3:4` | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | 3 … 15 | | `video_mode` | `string` | | — | max length 32 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "16:9", "9:16", "1:1", "4:3", "3:4" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 3, "maximum": 15 }, "video_mode": { "type": "string", "maxLength": 32 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "happyhorse-1.0-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 18.17, "cost_usd": 1.135625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "happyhorse-1.0-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "happyhorse-1.0-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 18.17, "cost_usd": 1.135625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "happyhorse-1.0-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **HappyHorse family** - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second --- [← HappyHorse](https://docs.synesta.ai/en/api-reference/models#family-video-happyhorse) # HappyHorse 1.1 · Video API POST `https://api.synesta.ai/v1/generations` Model ID: `happyhorse-1.1-text-to-video` Open in Playground ## Notes - Price from $0.88 per second (from 14 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration from 3 to 15 s. - Prompt up to 4999 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"happyhorse-1.1-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "happyhorse-1.1-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "happyhorse-1.1-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 4999 | | `aspect` | `string` | | `"16:9"` | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `4:5`, `5:4`, `9:21`, `21:9` | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | 3 … 15 | | `video_mode` | `string` | | — | max length 32 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 4999 }, "aspect": { "type": "string", "enum": [ "16:9", "9:16", "1:1", "4:3", "3:4", "4:5", "5:4", "9:21", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 3, "maximum": 15 }, "video_mode": { "type": "string", "maxLength": 32 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "happyhorse-1.1-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 14, "cost_usd": 0.875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "happyhorse-1.1-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "happyhorse-1.1-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 14, "cost_usd": 0.875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "happyhorse-1.1-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **HappyHorse family** - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second --- [← Runway](https://docs.synesta.ai/en/api-reference/models#family-video-runway) # Runway · Video API **Runway.** Runway gives controlled camera moves and clean transitions from a still or text. A safe pick when a clip must cut into real footage. POST `https://api.synesta.ai/v1/generations` Model ID: `runway-text-to-video` Open in Playground ## Notes - Price from $0.49 per run (from 7.79 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration, s: 5, 10. - Prompt up to 1800 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"runway-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "runway-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "runway-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 1800 | | `aspect` | `string` | | `"16:9"` | `16:9`, `4:3`, `1:1`, `3:4`, `9:16` | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | `5`, `10` | | `video_mode` | `string` | | — | max length 32 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 1800 }, "aspect": { "type": "string", "enum": [ "16:9", "4:3", "1:1", "3:4", "9:16" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "enum": [ 5, 10 ], "default": 5 }, "video_mode": { "type": "string", "maxLength": 32 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "runway-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 7.79, "cost_usd": 0.486875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "runway-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "runway-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 7.79, "cost_usd": 0.486875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "runway-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second --- [← Seedance](https://docs.synesta.ai/en/api-reference/models#family-video-seedance) # Seedance 1.0 Fast · Video API **Seedance.** Seedance animates a still or builds a clip from text with steady camera motion. New versions add sound and reference video. POST `https://api.synesta.ai/v1/generations` Model ID: `seedance-1.0-fast` Open in Playground ## Notes - Price from $0.06 per second (from 1 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 1 images (`reference_ids`, upload with `POST /references`). - Duration, s: 5, 10. - Prompt up to 2000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"seedance-1.0-fast","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"1080p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "seedance-1.0-fast", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "1080p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "seedance-1.0-fast", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "1080p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 2000 | | `aspect` | `string` | | `"16:9"` | `16:9`, `4:3`, `1:1`, `3:4`, `9:16`, `21:9` | | `resolution` | `string` | | `"1080p"` | `480p`, `720p`, `1080p` | | `duration` | `integer` | | `5` | `5`, `10` | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 1; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 2000 }, "aspect": { "type": "string", "enum": [ "16:9", "4:3", "1:1", "3:4", "9:16", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p", "1080p" ], "default": "1080p" }, "duration": { "type": "integer", "enum": [ 5, 10 ], "default": 5 }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 1 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-1.0-fast", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 1, "cost_usd": 0.0625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-1.0-fast", "aspect": "16:9", "resolution": "1080p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-1.0-fast", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 1, "cost_usd": 0.0625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-1.0-fast", "aspect": "16:9", "resolution": "1080p", "duration": 5 } } } ``` ## Other models **Seedance family** - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second - [Seedance 2 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-fast) · from $0.25 per second - [Seedance 2 Mini](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-mini) · from $0.44 per second - [Seedance 2 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-2-0) · from $0.38 per second - [Seedance 2.5](https://docs.synesta.ai/en/api-reference/models/seedance-2-5) · from $1.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Seedance](https://docs.synesta.ai/en/api-reference/models#family-video-seedance) # Seedance 1.5 Pro · Video API **Seedance.** Seedance animates a still or builds a clip from text with steady camera motion. New versions add sound and reference video. POST `https://api.synesta.ai/v1/generations` Model ID: `seedance-1.5-pro` Open in Playground ## Notes - Price from $0.13 per second (from 2 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 2 images (`reference_ids`, upload with `POST /references`). - Duration, s: 4, 8, 12. - Has sound: the `sound` field. - Prompt up to 20000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"seedance-1.5-pro","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":4}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "seedance-1.5-pro", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 4, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "seedance-1.5-pro", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 4 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 20000 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9` | | `resolution` | `string` | | `"720p"` | `480p`, `720p`, `1080p` | | `duration` | `integer` | | `4` | `4`, `8`, `12` | | `sound` | `boolean` | | — | — | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 2; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 20000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "enum": [ 4, 8, 12 ], "default": 4 }, "sound": { "type": "boolean" }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-1.5-pro", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-1.5-pro", "aspect": "16:9", "resolution": "720p", "duration": 4 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-1.5-pro", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 2, "cost_usd": 0.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-1.5-pro", "aspect": "16:9", "resolution": "720p", "duration": 4 } } } ``` ## Other models **Seedance family** - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 2 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-fast) · from $0.25 per second - [Seedance 2 Mini](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-mini) · from $0.44 per second - [Seedance 2 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-2-0) · from $0.38 per second - [Seedance 2.5](https://docs.synesta.ai/en/api-reference/models/seedance-2-5) · from $1.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Seedance](https://docs.synesta.ai/en/api-reference/models#family-video-seedance) # Seedance 2 Fast · Video API **Seedance.** Seedance animates a still or builds a clip from text with steady camera motion. New versions add sound and reference video. POST `https://api.synesta.ai/v1/generations` Model ID: `seedance-2.0-fast` Open in Playground ## Notes - Price from $0.25 per second (from 4 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 9 images (`reference_ids`, upload with `POST /references`). - Duration from 4 to 15 s. - Has sound: the `sound` field. - Prompt up to 20000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"seedance-2.0-fast","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "seedance-2.0-fast", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "seedance-2.0-fast", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 20000 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9` | | `resolution` | `string` | | `"720p"` | `480p`, `720p` | | `duration` | `integer` | | `5` | 4 … 15 | | `sound` | `boolean` | | — | — | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 9; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 20000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 4, "maximum": 15 }, "sound": { "type": "boolean" }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 9 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.0-fast", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.0-fast", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.0-fast", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 4, "cost_usd": 0.25, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.0-fast", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Seedance family** - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second - [Seedance 2 Mini](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-mini) · from $0.44 per second - [Seedance 2 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-2-0) · from $0.38 per second - [Seedance 2.5](https://docs.synesta.ai/en/api-reference/models/seedance-2-5) · from $1.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Seedance](https://docs.synesta.ai/en/api-reference/models#family-video-seedance) # Seedance 2 Mini · Video API **Seedance.** Seedance animates a still or builds a clip from text with steady camera motion. New versions add sound and reference video. POST `https://api.synesta.ai/v1/generations` Model ID: `seedance-2.0-mini` Open in Playground ## Notes - Price from $0.44 per second (from 7 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 9 images (`reference_ids`, upload with `POST /references`). - Duration from 4 to 15 s. - Has sound: the `sound` field. - Prompt up to 20000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"seedance-2.0-mini","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "seedance-2.0-mini", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "seedance-2.0-mini", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 20000 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9` | | `resolution` | `string` | | `"720p"` | `480p`, `720p` | | `duration` | `integer` | | `5` | 4 … 15 | | `sound` | `boolean` | | — | — | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 9; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 20000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 4, "maximum": 15 }, "sound": { "type": "boolean" }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 9 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.0-mini", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.0-mini", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.0-mini", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.0-mini", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Seedance family** - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second - [Seedance 2 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-fast) · from $0.25 per second - [Seedance 2 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-2-0) · from $0.38 per second - [Seedance 2.5](https://docs.synesta.ai/en/api-reference/models/seedance-2-5) · from $1.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Seedance](https://docs.synesta.ai/en/api-reference/models#family-video-seedance) # Seedance 2 Pro · Video API Seedance 2 Pro builds a clip from text, a still or a reference video, with sound in the same pass. POST `https://api.synesta.ai/v1/generations` Model ID: `seedance-2.0` Open in Playground ## Notes - Price from $0.38 per second (from 6 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 9 images (`reference_ids`, upload with `POST /references`). - Duration from 4 to 15 s. - Has sound: the `sound` field. - Prompt up to 20000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"seedance-2.0","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "seedance-2.0", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "seedance-2.0", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 20000 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9` | | `resolution` | `string` | | `"720p"` | `480p`, `720p`, `1080p` | | `duration` | `integer` | | `5` | 4 … 15 | | `sound` | `boolean` | | — | — | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 9; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 20000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 4, "maximum": 15 }, "sound": { "type": "boolean" }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 9 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.0", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 6, "cost_usd": 0.375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.0", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.0", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 6, "cost_usd": 0.375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.0", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Seedance family** - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second - [Seedance 2 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-fast) · from $0.25 per second - [Seedance 2 Mini](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-mini) · from $0.44 per second - [Seedance 2.5](https://docs.synesta.ai/en/api-reference/models/seedance-2-5) · from $1.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Seedance](https://docs.synesta.ai/en/api-reference/models#family-video-seedance) # Seedance 2.5 · Video API **Seedance.** Seedance animates a still or builds a clip from text with steady camera motion. New versions add sound and reference video. POST `https://api.synesta.ai/v1/generations` Model ID: `seedance-2.5` Open in Playground ## Notes - Price from $1.63 per second (from 26 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 30 images (`reference_ids`, upload with `POST /references`). - Duration from 4 to 30 s. - Has sound: the `sound` field. - Prompt up to 20000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"seedance-2.5","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "seedance-2.5", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "seedance-2.5", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 20000 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9` | | `resolution` | `string` | | `"720p"` | `480p`, `720p`, `1080p` | | `duration` | `integer` | | `5` | 4 … 30 | | `sound` | `boolean` | | — | — | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 30; Reference id from `POST /references`. | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 20000 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16", "21:9" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 4, "maximum": 30 }, "sound": { "type": "boolean" }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 30 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.5", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 26, "cost_usd": 1.625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.5", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "seedance-2.5", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 26, "cost_usd": 1.625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "seedance-2.5", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Seedance family** - [Seedance 1.0 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-1-0-fast) · from $0.06 per second - [Seedance 1.5 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-1-5-pro) · from $0.13 per second - [Seedance 2 Fast](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-fast) · from $0.25 per second - [Seedance 2 Mini](https://docs.synesta.ai/en/api-reference/models/seedance-2-0-mini) · from $0.44 per second - [Seedance 2 Pro](https://docs.synesta.ai/en/api-reference/models/seedance-2-0) · from $0.38 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-video-wan) # Wan 2.5 · Video API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.5-text-to-video` Open in Playground ## Notes - Price from $1.13 per run (from 18 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration, s: 5, 10. - Prompt up to 1500 characters. - Takes `negative`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"wan2.5-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "wan2.5-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "wan2.5-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 1500 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16` | | `resolution` | `string` | | `"720p"` | `480p`, `720p`, `1080p` | | `duration` | `integer` | | `5` | `5`, `10` | | `video_mode` | `string` | | — | max length 32 | | `negative` | `string` | | — | max length 500 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 1500 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "480p", "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "enum": [ 5, 10 ], "default": 5 }, "video_mode": { "type": "string", "maxLength": 32 }, "negative": { "type": "string", "maxLength": 500 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.5-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 18, "cost_usd": 1.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.5-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.5-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 18, "cost_usd": 1.125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.5-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-video-wan) # Wan 2.6 · Video API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.6-text-to-video` Open in Playground ## Notes - Price from $0.50 per second (from 8 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration, s: 5, 10, 15. - Prompt up to 1500 characters. - Takes `negative`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"wan2.6-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "wan2.6-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "wan2.6-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 1500 | | `aspect` | `string` | | `"16:9"` | `1:1`, `4:3`, `3:4`, `16:9`, `9:16` | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | `5`, `10`, `15` | | `video_mode` | `string` | | — | max length 32 | | `negative` | `string` | | — | max length 500 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 1500 }, "aspect": { "type": "string", "enum": [ "1:1", "4:3", "3:4", "16:9", "9:16" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "enum": [ 5, 10, 15 ], "default": 5 }, "video_mode": { "type": "string", "maxLength": 32 }, "negative": { "type": "string", "maxLength": 500 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.6-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 8, "cost_usd": 0.5, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.6-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.6-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 8, "cost_usd": 0.5, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.6-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-video-wan) # Wan 2.6 Flash · Video API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.6-image-to-video-flash` Open in Playground ## Notes - Price from $0.31 per second (from 5 credits). `POST /estimate` gives the exact price for your parameters. - A reference image is required: `reference_ids`, at most 1. - Duration, s: 5, 10, 15. - Prompt up to 1500 characters. - Takes `negative`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"wan2.6-image-to-video-flash","prompt":"A lighthouse at dawn, waves rolling in","resolution":"720p","duration":5,"reference_ids":[12345]}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "wan2.6-image-to-video-flash", "prompt": "A lighthouse at dawn, waves rolling in", "resolution": "720p", "duration": 5, "reference_ids": [12345], }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "wan2.6-image-to-video-flash", "prompt": "A lighthouse at dawn, waves rolling in", "resolution": "720p", "duration": 5, "reference_ids": [ 12345 ] }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 1500 | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | `5`, `10`, `15` | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | yes | — | items 1 … 1; Reference id from `POST /references`. | | `negative` | `string` | | — | max length 500 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt", "reference_ids" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 1500 }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "enum": [ 5, 10, 15 ], "default": 5 }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "minItems": 1, "maxItems": 1 }, "negative": { "type": "string", "maxLength": 500 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.6-image-to-video-flash", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.6-image-to-video-flash", "resolution": "720p", "duration": 5, "reference_count": 1 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.6-image-to-video-flash", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.6-image-to-video-flash", "resolution": "720p", "duration": 5, "reference_count": 1 } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-video-wan) # Wan 2.7 · Video API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.7-image-to-video` Open in Playground ## Notes - Price from $0.63 per second (from 10 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 2 images (`reference_ids`, upload with `POST /references`). - Duration from 3 to 15 s. - Prompt up to 5000 characters. - Takes `negative`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"wan2.7-image-to-video","prompt":"A lighthouse at dawn, waves rolling in","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "wan2.7-image-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "wan2.7-image-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | 3 … 15 | | `video_mode` | `string` | | — | max length 32 | | `reference_ids` | `array` | | — | items 0 … 2; Reference id from `POST /references`. | | `negative` | `string` | | — | max length 500 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 3, "maximum": 15 }, "video_mode": { "type": "string", "maxLength": 32 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 2 }, "negative": { "type": "string", "maxLength": 500 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.7-image-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 10, "cost_usd": 0.625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-image-to-video", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.7-image-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 10, "cost_usd": 0.625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-image-to-video", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-text-to-video) · from $0.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Wan](https://docs.synesta.ai/en/api-reference/models#family-video-wan) # Wan 2.7 · Video API **Wan.** Wan is cheap and fast enough to retake a shot many times. It does text to video, image to video and stills. POST `https://api.synesta.ai/v1/generations` Model ID: `wan2.7-text-to-video` Open in Playground ## Notes - Price from $0.63 per second (from 10 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Duration from 2 to 15 s. - Prompt up to 5000 characters. - Takes `negative`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"video","model":"wan2.7-text-to-video","prompt":"A lighthouse at dawn, waves rolling in","aspect":"16:9","resolution":"720p","duration":5}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "video", "model": "wan2.7-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5, }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "video", "model": "wan2.7-text-to-video", "prompt": "A lighthouse at dawn, waves rolling in", "aspect": "16:9", "resolution": "720p", "duration": 5 }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `video` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `aspect` | `string` | | `"16:9"` | `16:9`, `9:16`, `1:1`, `4:3`, `3:4` | | `resolution` | `string` | | `"720p"` | `720p`, `1080p` | | `duration` | `integer` | | `5` | 2 … 15 | | `video_mode` | `string` | | — | max length 32 | | `negative` | `string` | | — | max length 500 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "video" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "aspect": { "type": "string", "enum": [ "16:9", "9:16", "1:1", "4:3", "3:4" ], "default": "16:9" }, "resolution": { "type": "string", "enum": [ "720p", "1080p" ], "default": "720p" }, "duration": { "type": "integer", "default": 5, "minimum": 2, "maximum": 15 }, "video_mode": { "type": "string", "maxLength": 32 }, "negative": { "type": "string", "maxLength": 500 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.7-text-to-video", "status": "queued", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 10, "cost_usd": 0.625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "video", "model": "wan2.7-text-to-video", "status": "done", "prompt": "A lighthouse at dawn, waves rolling in", "cost_credits": 10, "cost_usd": 0.625, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp4", "kind": "video", "mime": "video/mp4", "preview_url": null, "thumb_url": "https://storage.example.com/result-thumb.webp" } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "wan2.7-text-to-video", "aspect": "16:9", "resolution": "720p", "duration": 5 } } } ``` ## Other models **Wan family** - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-image) · from $0.19 per run - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image) · from $0.19 per run - [Wan 2.7 Pro](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-pro) · from $0.25 per run - [Wan 2.5](https://docs.synesta.ai/en/api-reference/models/wan2-5-text-to-video) · from $1.13 per run - [Wan 2.6](https://docs.synesta.ai/en/api-reference/models/wan2-6-text-to-video) · from $0.50 per second - [Wan 2.6 Flash](https://docs.synesta.ai/en/api-reference/models/wan2-6-image-to-video-flash) · from $0.31 per second - [Wan 2.7](https://docs.synesta.ai/en/api-reference/models/wan2-7-image-to-video) · from $0.63 per second **Video** - [Grok Video](https://docs.synesta.ai/en/api-reference/models/grok-imagine-text-to-video) · from $0.11 per second - [HappyHorse 1.0](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-0-text-to-video) · from $1.14 per second - [HappyHorse 1.1](https://docs.synesta.ai/en/api-reference/models/happyhorse-1-1-text-to-video) · from $0.88 per second - [Runway](https://docs.synesta.ai/en/api-reference/models/runway-text-to-video) · from $0.49 per run --- [← Suno](https://docs.synesta.ai/en/api-reference/models#family-music-suno) # Suno V6 · Music API **Suno.** Suno writes full songs with vocals from a style description. Bring your own lyrics or let the model write them. POST `https://api.synesta.ai/v1/generations` Model ID: `suno-v6` Open in Playground ## Notes - Price from $0.31 per run (from 5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"music","model":"suno-v6","prompt":"A calm piano melody"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "music", "model": "suno-v6", "prompt": "A calm piano melody", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "music", "model": "suno-v6", "prompt": "A calm piano melody" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `music` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | — | | `mode` | `string` | | — | max length 32 | | `instrumental` | `boolean` | | — | — | | `style` | `string` | | — | max length 1000 | | `title` | `string` | | — | max length 200 | | `vocal_gender` | `string` | | — | max length 16 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "music" ] }, "model": { "type": "string" }, "prompt": { "type": "string" }, "mode": { "type": "string", "maxLength": 32 }, "instrumental": { "type": "boolean" }, "style": { "type": "string", "maxLength": 1000 }, "title": { "type": "string", "maxLength": 200 }, "vocal_gender": { "type": "string", "maxLength": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "music", "model": "suno-v6", "status": "queued", "prompt": "A calm piano melody", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "suno-v6" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "music", "model": "suno-v6", "status": "done", "prompt": "A calm piano melody", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "suno-v6" } } } ``` ## Other models **Suno family** - [Suno V6 Mini](https://docs.synesta.ai/en/api-reference/models/suno-v6-mini) · from $0.31 per run - [Suno V6 Wild](https://docs.synesta.ai/en/api-reference/models/suno-v6-wild) · from $0.31 per run --- [← Suno](https://docs.synesta.ai/en/api-reference/models#family-music-suno) # Suno V6 Mini · Music API **Suno.** Suno writes full songs with vocals from a style description. Bring your own lyrics or let the model write them. POST `https://api.synesta.ai/v1/generations` Model ID: `suno-v6-mini` Open in Playground ## Notes - Price from $0.31 per run (from 5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"music","model":"suno-v6-mini","prompt":"A calm piano melody"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "music", "model": "suno-v6-mini", "prompt": "A calm piano melody", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "music", "model": "suno-v6-mini", "prompt": "A calm piano melody" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `music` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | — | | `mode` | `string` | | — | max length 32 | | `instrumental` | `boolean` | | — | — | | `style` | `string` | | — | max length 1000 | | `title` | `string` | | — | max length 200 | | `vocal_gender` | `string` | | — | max length 16 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "music" ] }, "model": { "type": "string" }, "prompt": { "type": "string" }, "mode": { "type": "string", "maxLength": 32 }, "instrumental": { "type": "boolean" }, "style": { "type": "string", "maxLength": 1000 }, "title": { "type": "string", "maxLength": 200 }, "vocal_gender": { "type": "string", "maxLength": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "music", "model": "suno-v6-mini", "status": "queued", "prompt": "A calm piano melody", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "suno-v6-mini" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "music", "model": "suno-v6-mini", "status": "done", "prompt": "A calm piano melody", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "suno-v6-mini" } } } ``` ## Other models **Suno family** - [Suno V6](https://docs.synesta.ai/en/api-reference/models/suno-v6) · from $0.31 per run - [Suno V6 Wild](https://docs.synesta.ai/en/api-reference/models/suno-v6-wild) · from $0.31 per run --- [← Suno](https://docs.synesta.ai/en/api-reference/models#family-music-suno) # Suno V6 Wild · Music API **Suno.** Suno writes full songs with vocals from a style description. Bring your own lyrics or let the model write them. POST `https://api.synesta.ai/v1/generations` Model ID: `suno-v6-wild` Open in Playground ## Notes - Price from $0.31 per run (from 5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"music","model":"suno-v6-wild","prompt":"A calm piano melody"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "music", "model": "suno-v6-wild", "prompt": "A calm piano melody", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "music", "model": "suno-v6-wild", "prompt": "A calm piano melody" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `music` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | — | | `mode` | `string` | | — | max length 32 | | `instrumental` | `boolean` | | — | — | | `style` | `string` | | — | max length 1000 | | `title` | `string` | | — | max length 200 | | `vocal_gender` | `string` | | — | max length 16 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "music" ] }, "model": { "type": "string" }, "prompt": { "type": "string" }, "mode": { "type": "string", "maxLength": 32 }, "instrumental": { "type": "boolean" }, "style": { "type": "string", "maxLength": 1000 }, "title": { "type": "string", "maxLength": 200 }, "vocal_gender": { "type": "string", "maxLength": 16 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "music", "model": "suno-v6-wild", "status": "queued", "prompt": "A calm piano melody", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "suno-v6-wild" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "music", "model": "suno-v6-wild", "status": "done", "prompt": "A calm piano melody", "cost_credits": 5, "cost_usd": 0.3125, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "suno-v6-wild" } } } ``` ## Other models **Suno family** - [Suno V6](https://docs.synesta.ai/en/api-reference/models/suno-v6) · from $0.31 per run - [Suno V6 Mini](https://docs.synesta.ai/en/api-reference/models/suno-v6-mini) · from $0.31 per run --- [← other](https://docs.synesta.ai/en/api-reference/models#family-voice-other) # Eleven v3 · Voice API POST `https://api.synesta.ai/v1/generations` Model ID: `eleven-v3` Open in Playground ## Notes - Price from $0.44 per character (from 7 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 5000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"voice","model":"eleven-v3","prompt":"Hello from Synesta","voice_id":"george"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "voice", "model": "eleven-v3", "prompt": "Hello from Synesta", "voice_id": "george", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "voice", "model": "eleven-v3", "prompt": "Hello from Synesta", "voice_id": "george" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `voice` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 5000 | | `voice_id` | `string` | | `"george"` | `george`, `daniel`, `lily`, `alice`, `matilda`, `bella`, `rachel`, `antoni`, `roger`, `charlie`, `will`, `eric`, `chris`, `jessica`, `sarah`, `aria`, `domi`, `harry`, `callum`, `sam`, `charlotte`, `patrick`, `brian`, `adam`, `bill`, `liam`, `laura`, `josh`, `arnold`, `drew` | | `speed` | `number` | | — | 0.7 … 1.2 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "voice" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 5000 }, "voice_id": { "type": "string", "enum": [ "george", "daniel", "lily", "alice", "matilda", "bella", "rachel", "antoni", "roger", "charlie", "will", "eric", "chris", "jessica", "sarah", "aria", "domi", "harry", "callum", "sam", "charlotte", "patrick", "brian", "adam", "bill", "liam", "laura", "josh", "arnold", "drew" ], "default": "george" }, "speed": { "type": "number", "minimum": 0.7, "maximum": 1.2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "voice", "model": "eleven-v3", "status": "queued", "prompt": "Hello from Synesta", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "eleven-v3", "voice_id": "george" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "voice", "model": "eleven-v3", "status": "done", "prompt": "Hello from Synesta", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "eleven-v3", "voice_id": "george" } } } ``` ## Other models **other family** - [Eleven v4](https://docs.synesta.ai/en/api-reference/models/eleven-v4) · from $0.44 per character - [Eleven v4 Turbo](https://docs.synesta.ai/en/api-reference/models/eleven-v4-turbo) · from $0.22 per character - [Flash v2.5](https://docs.synesta.ai/en/api-reference/models/flash-v2-5) · from $0.22 per character - [Multilingual v2](https://docs.synesta.ai/en/api-reference/models/multilingual-v2) · from $0.44 per character - [Turbo v2.5](https://docs.synesta.ai/en/api-reference/models/turbo-v2-5) · from $0.22 per character --- [← other](https://docs.synesta.ai/en/api-reference/models#family-voice-other) # Eleven v4 · Voice API POST `https://api.synesta.ai/v1/generations` Model ID: `eleven-v4` Open in Playground ## Notes - Price from $0.44 per character (from 7 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 10000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"voice","model":"eleven-v4","prompt":"Hello from Synesta","voice_id":"george"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "voice", "model": "eleven-v4", "prompt": "Hello from Synesta", "voice_id": "george", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "voice", "model": "eleven-v4", "prompt": "Hello from Synesta", "voice_id": "george" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `voice` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 10000 | | `voice_id` | `string` | | `"george"` | `george`, `daniel`, `lily`, `alice`, `matilda`, `bella`, `rachel`, `antoni`, `roger`, `charlie`, `will`, `eric`, `chris`, `jessica`, `sarah`, `aria`, `domi`, `harry`, `callum`, `sam`, `charlotte`, `patrick`, `brian`, `adam`, `bill`, `liam`, `laura`, `josh`, `arnold`, `drew` | | `speed` | `number` | | — | 0.7 … 1.2 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "voice" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 10000 }, "voice_id": { "type": "string", "enum": [ "george", "daniel", "lily", "alice", "matilda", "bella", "rachel", "antoni", "roger", "charlie", "will", "eric", "chris", "jessica", "sarah", "aria", "domi", "harry", "callum", "sam", "charlotte", "patrick", "brian", "adam", "bill", "liam", "laura", "josh", "arnold", "drew" ], "default": "george" }, "speed": { "type": "number", "minimum": 0.7, "maximum": 1.2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "voice", "model": "eleven-v4", "status": "queued", "prompt": "Hello from Synesta", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "eleven-v4", "voice_id": "george" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "voice", "model": "eleven-v4", "status": "done", "prompt": "Hello from Synesta", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "eleven-v4", "voice_id": "george" } } } ``` ## Other models **other family** - [Eleven v3](https://docs.synesta.ai/en/api-reference/models/eleven-v3) · from $0.44 per character - [Eleven v4 Turbo](https://docs.synesta.ai/en/api-reference/models/eleven-v4-turbo) · from $0.22 per character - [Flash v2.5](https://docs.synesta.ai/en/api-reference/models/flash-v2-5) · from $0.22 per character - [Multilingual v2](https://docs.synesta.ai/en/api-reference/models/multilingual-v2) · from $0.44 per character - [Turbo v2.5](https://docs.synesta.ai/en/api-reference/models/turbo-v2-5) · from $0.22 per character --- [← other](https://docs.synesta.ai/en/api-reference/models#family-voice-other) # Eleven v4 Turbo · Voice API POST `https://api.synesta.ai/v1/generations` Model ID: `eleven-v4-turbo` Open in Playground ## Notes - Price from $0.22 per character (from 3.5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 10000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"voice","model":"eleven-v4-turbo","prompt":"Hello from Synesta","voice_id":"george"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "voice", "model": "eleven-v4-turbo", "prompt": "Hello from Synesta", "voice_id": "george", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "voice", "model": "eleven-v4-turbo", "prompt": "Hello from Synesta", "voice_id": "george" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `voice` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 10000 | | `voice_id` | `string` | | `"george"` | `george`, `daniel`, `lily`, `alice`, `matilda`, `bella`, `rachel`, `antoni`, `roger`, `charlie`, `will`, `eric`, `chris`, `jessica`, `sarah`, `aria`, `domi`, `harry`, `callum`, `sam`, `charlotte`, `patrick`, `brian`, `adam`, `bill`, `liam`, `laura`, `josh`, `arnold`, `drew` | | `speed` | `number` | | — | 0.7 … 1.2 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "voice" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 10000 }, "voice_id": { "type": "string", "enum": [ "george", "daniel", "lily", "alice", "matilda", "bella", "rachel", "antoni", "roger", "charlie", "will", "eric", "chris", "jessica", "sarah", "aria", "domi", "harry", "callum", "sam", "charlotte", "patrick", "brian", "adam", "bill", "liam", "laura", "josh", "arnold", "drew" ], "default": "george" }, "speed": { "type": "number", "minimum": 0.7, "maximum": 1.2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "voice", "model": "eleven-v4-turbo", "status": "queued", "prompt": "Hello from Synesta", "cost_credits": 3.5, "cost_usd": 0.21875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "eleven-v4-turbo", "voice_id": "george" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "voice", "model": "eleven-v4-turbo", "status": "done", "prompt": "Hello from Synesta", "cost_credits": 3.5, "cost_usd": 0.21875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "eleven-v4-turbo", "voice_id": "george" } } } ``` ## Other models **other family** - [Eleven v3](https://docs.synesta.ai/en/api-reference/models/eleven-v3) · from $0.44 per character - [Eleven v4](https://docs.synesta.ai/en/api-reference/models/eleven-v4) · from $0.44 per character - [Flash v2.5](https://docs.synesta.ai/en/api-reference/models/flash-v2-5) · from $0.22 per character - [Multilingual v2](https://docs.synesta.ai/en/api-reference/models/multilingual-v2) · from $0.44 per character - [Turbo v2.5](https://docs.synesta.ai/en/api-reference/models/turbo-v2-5) · from $0.22 per character --- [← other](https://docs.synesta.ai/en/api-reference/models#family-voice-other) # Flash v2.5 · Voice API POST `https://api.synesta.ai/v1/generations` Model ID: `flash-v2.5` Open in Playground ## Notes - Price from $0.22 per character (from 3.5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 40000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"voice","model":"flash-v2.5","prompt":"Hello from Synesta","voice_id":"george"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "voice", "model": "flash-v2.5", "prompt": "Hello from Synesta", "voice_id": "george", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "voice", "model": "flash-v2.5", "prompt": "Hello from Synesta", "voice_id": "george" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `voice` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 40000 | | `voice_id` | `string` | | `"george"` | `george`, `daniel`, `lily`, `alice`, `matilda`, `bella`, `rachel`, `antoni`, `roger`, `charlie`, `will`, `eric`, `chris`, `jessica`, `sarah`, `aria`, `domi`, `harry`, `callum`, `sam`, `charlotte`, `patrick`, `brian`, `adam`, `bill`, `liam`, `laura`, `josh`, `arnold`, `drew` | | `speed` | `number` | | — | 0.7 … 1.2 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "voice" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 40000 }, "voice_id": { "type": "string", "enum": [ "george", "daniel", "lily", "alice", "matilda", "bella", "rachel", "antoni", "roger", "charlie", "will", "eric", "chris", "jessica", "sarah", "aria", "domi", "harry", "callum", "sam", "charlotte", "patrick", "brian", "adam", "bill", "liam", "laura", "josh", "arnold", "drew" ], "default": "george" }, "speed": { "type": "number", "minimum": 0.7, "maximum": 1.2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "voice", "model": "flash-v2.5", "status": "queued", "prompt": "Hello from Synesta", "cost_credits": 3.5, "cost_usd": 0.21875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "flash-v2.5", "voice_id": "george" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "voice", "model": "flash-v2.5", "status": "done", "prompt": "Hello from Synesta", "cost_credits": 3.5, "cost_usd": 0.21875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "flash-v2.5", "voice_id": "george" } } } ``` ## Other models **other family** - [Eleven v3](https://docs.synesta.ai/en/api-reference/models/eleven-v3) · from $0.44 per character - [Eleven v4](https://docs.synesta.ai/en/api-reference/models/eleven-v4) · from $0.44 per character - [Eleven v4 Turbo](https://docs.synesta.ai/en/api-reference/models/eleven-v4-turbo) · from $0.22 per character - [Multilingual v2](https://docs.synesta.ai/en/api-reference/models/multilingual-v2) · from $0.44 per character - [Turbo v2.5](https://docs.synesta.ai/en/api-reference/models/turbo-v2-5) · from $0.22 per character --- [← other](https://docs.synesta.ai/en/api-reference/models#family-voice-other) # Multilingual v2 · Voice API POST `https://api.synesta.ai/v1/generations` Model ID: `multilingual-v2` Open in Playground ## Notes - Price from $0.44 per character (from 7 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 10000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"voice","model":"multilingual-v2","prompt":"Hello from Synesta","voice_id":"george"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "voice", "model": "multilingual-v2", "prompt": "Hello from Synesta", "voice_id": "george", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "voice", "model": "multilingual-v2", "prompt": "Hello from Synesta", "voice_id": "george" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `voice` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 10000 | | `voice_id` | `string` | | `"george"` | `george`, `daniel`, `lily`, `alice`, `matilda`, `bella`, `rachel`, `antoni`, `roger`, `charlie`, `will`, `eric`, `chris`, `jessica`, `sarah`, `aria`, `domi`, `harry`, `callum`, `sam`, `charlotte`, `patrick`, `brian`, `adam`, `bill`, `liam`, `laura`, `josh`, `arnold`, `drew` | | `speed` | `number` | | — | 0.7 … 1.2 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "voice" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 10000 }, "voice_id": { "type": "string", "enum": [ "george", "daniel", "lily", "alice", "matilda", "bella", "rachel", "antoni", "roger", "charlie", "will", "eric", "chris", "jessica", "sarah", "aria", "domi", "harry", "callum", "sam", "charlotte", "patrick", "brian", "adam", "bill", "liam", "laura", "josh", "arnold", "drew" ], "default": "george" }, "speed": { "type": "number", "minimum": 0.7, "maximum": 1.2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "voice", "model": "multilingual-v2", "status": "queued", "prompt": "Hello from Synesta", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "multilingual-v2", "voice_id": "george" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "voice", "model": "multilingual-v2", "status": "done", "prompt": "Hello from Synesta", "cost_credits": 7, "cost_usd": 0.4375, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "multilingual-v2", "voice_id": "george" } } } ``` ## Other models **other family** - [Eleven v3](https://docs.synesta.ai/en/api-reference/models/eleven-v3) · from $0.44 per character - [Eleven v4](https://docs.synesta.ai/en/api-reference/models/eleven-v4) · from $0.44 per character - [Eleven v4 Turbo](https://docs.synesta.ai/en/api-reference/models/eleven-v4-turbo) · from $0.22 per character - [Flash v2.5](https://docs.synesta.ai/en/api-reference/models/flash-v2-5) · from $0.22 per character - [Turbo v2.5](https://docs.synesta.ai/en/api-reference/models/turbo-v2-5) · from $0.22 per character --- [← other](https://docs.synesta.ai/en/api-reference/models#family-voice-other) # Turbo v2.5 · Voice API POST `https://api.synesta.ai/v1/generations` Model ID: `turbo-v2.5` Open in Playground ## Notes - Price from $0.22 per character (from 3.5 credits). `POST /estimate` gives the exact price for your parameters. - Takes no references. - Prompt up to 10000 characters. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"voice","model":"turbo-v2.5","prompt":"Hello from Synesta","voice_id":"george"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "voice", "model": "turbo-v2.5", "prompt": "Hello from Synesta", "voice_id": "george", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "voice", "model": "turbo-v2.5", "prompt": "Hello from Synesta", "voice_id": "george" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `voice` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 10000 | | `voice_id` | `string` | | `"george"` | `george`, `daniel`, `lily`, `alice`, `matilda`, `bella`, `rachel`, `antoni`, `roger`, `charlie`, `will`, `eric`, `chris`, `jessica`, `sarah`, `aria`, `domi`, `harry`, `callum`, `sam`, `charlotte`, `patrick`, `brian`, `adam`, `bill`, `liam`, `laura`, `josh`, `arnold`, `drew` | | `speed` | `number` | | — | 0.7 … 1.2 | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "voice" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 10000 }, "voice_id": { "type": "string", "enum": [ "george", "daniel", "lily", "alice", "matilda", "bella", "rachel", "antoni", "roger", "charlie", "will", "eric", "chris", "jessica", "sarah", "aria", "domi", "harry", "callum", "sam", "charlotte", "patrick", "brian", "adam", "bill", "liam", "laura", "josh", "arnold", "drew" ], "default": "george" }, "speed": { "type": "number", "minimum": 0.7, "maximum": 1.2 }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "voice", "model": "turbo-v2.5", "status": "queued", "prompt": "Hello from Synesta", "cost_credits": 3.5, "cost_usd": 0.21875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "turbo-v2.5", "voice_id": "george" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "voice", "model": "turbo-v2.5", "status": "done", "prompt": "Hello from Synesta", "cost_credits": 3.5, "cost_usd": 0.21875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.mp3", "kind": "audio", "mime": "audio/mpeg", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "turbo-v2.5", "voice_id": "george" } } } ``` ## Other models **other family** - [Eleven v3](https://docs.synesta.ai/en/api-reference/models/eleven-v3) · from $0.44 per character - [Eleven v4](https://docs.synesta.ai/en/api-reference/models/eleven-v4) · from $0.44 per character - [Eleven v4 Turbo](https://docs.synesta.ai/en/api-reference/models/eleven-v4-turbo) · from $0.22 per character - [Flash v2.5](https://docs.synesta.ai/en/api-reference/models/flash-v2-5) · from $0.22 per character - [Multilingual v2](https://docs.synesta.ai/en/api-reference/models/multilingual-v2) · from $0.44 per character --- [← Rodin](https://docs.synesta.ai/en/api-reference/models#family-3d-rodin) # Rodin Gen-2 · 3D API POST `https://api.synesta.ai/v1/generations` Model ID: `hyper3d-gen2` Open in Playground ## Notes - Price from $2.19 per run (from 35 credits). `POST /estimate` gives the exact price for your parameters. - References: up to 5 images (`reference_ids`, upload with `POST /references`). - Prompt up to 400 characters. - Takes `seed`. ## Quick start Start a generation and fetch the result, as in the [Quickstart](https://docs.synesta.ai/en/quickstart). The key is in the `SYNESTA_API_KEY` variable. **cURL** ```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":"3d","model":"hyper3d-gen2","prompt":"A small wooden chair"}' # then poll until status is done or failed curl https://api.synesta.ai/v1/generations/GENERATION_ID \ -H "Authorization: Bearer $SYNESTA_API_KEY" ``` **Python** ```python import os, time, uuid, requests BASE = "https://api.synesta.ai/v1" headers = {"Authorization": f"Bearer {os.environ['SYNESTA_API_KEY']}"} res = requests.post( f"{BASE}/generations", headers={**headers, "Idempotency-Key": str(uuid.uuid4())}, json={ "type": "3d", "model": "hyper3d-gen2", "prompt": "A small wooden chair", }, ) data = res.json()["data"] while data["status"] not in ("done", "failed"): time.sleep(3) data = requests.get(f"{BASE}/generations/{data['id']}", headers=headers).json()["data"] print(data["status"], [o["url"] for o in data["outputs"]]) ``` **JavaScript** ```js const BASE = 'https://api.synesta.ai/v1'; const headers = { Authorization: `Bearer ${process.env.SYNESTA_API_KEY}` }; const start = await fetch(`${BASE}/generations`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json', 'Idempotency-Key': crypto.randomUUID() }, body: JSON.stringify({ "type": "3d", "model": "hyper3d-gen2", "prompt": "A small wooden chair" }), }); let { data } = await start.json(); while (data.status !== 'done' && data.status !== 'failed') { await new Promise((r) => setTimeout(r, 3000)); ({ data } = await (await fetch(`${BASE}/generations/${data.id}`, { headers })).json()); } console.log(data.status, data.outputs.map((o) => o.url)); ``` ## Input schema Body of `POST /generations`. An extra field or a wrong type gives `422 invalid_parameters`, a field the model does not take gives `422 unsupported_input`. | Field | Type | Required | Default | Values and limits | |---|---|---|---|---| | `type` | `string` | yes | — | `3d` | | `model` | `string` | yes | — | — | | `prompt` | `string` | yes | — | max length 400 | | `reference_ids` | `array` | | — | items 0 … 5; Reference id from `POST /references`. | | `seed` | `integer` | | — | — | | `max_credits` | `number` | | — | min 0 | | `webhook_url` | `string` | | — | max length 2048; format uri | > **Full JSON schema** ```json { "type": "object", "additionalProperties": false, "required": [ "type", "model", "prompt" ], "properties": { "type": { "type": "string", "enum": [ "3d" ] }, "model": { "type": "string" }, "prompt": { "type": "string", "maxLength": 400 }, "reference_ids": { "type": "array", "items": { "type": "integer" }, "maxItems": 5 }, "seed": { "type": "integer" }, "max_credits": { "type": "number", "minimum": 0 }, "webhook_url": { "type": "string", "maxLength": 2048, "format": "uri" } } } ``` ## Response The example shows the "from" price: the final price depends on the parameters, `POST /estimate` returns it. ### Accepted · `202` Right after the start. Credits are charged, there is no result yet. ```json { "data": { "id": 12345, "type": "3d", "model": "hyper3d-gen2", "status": "queued", "prompt": "A small wooden chair", "cost_credits": 35, "cost_usd": 2.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": null, "outputs": [], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "hyper3d-gen2" } }, "meta": { "replayed": false } } ``` ### Done · `GET /generations/{id}` When `status` is `done`. The links in the example are placeholders. ```json { "data": { "id": 12345, "type": "3d", "model": "hyper3d-gen2", "status": "done", "prompt": "A small wooden chair", "cost_credits": 35, "cost_usd": 2.1875, "refunded": false, "credits_refunded": 0, "created_at": "2026-01-15T10:00:00Z", "finished_at": "2026-01-15T10:00:42Z", "outputs": [ { "url": "https://storage.example.com/result.glb", "kind": "model", "mime": "model/gltf-binary", "preview_url": null, "thumb_url": null } ], "error": null, "queue": { "queued_at": "2026-01-15T10:00:00Z" }, "partial_refund": null, "applied": { "model": "hyper3d-gen2" } } } ``` ---