Wandura AI Styles API
The Styles API from Wandura AI, for styles.
The Styles API from Wandura AI, for styles.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wandura-ai:wandura-ai-styles-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Wandura Jobs Styles API
version: '1'
description: Async image and video generation by style. POST /v2/jobs -> 202 {job_id}; get the result by signed webhook (webhook_url) or by polling GET /v2/jobs/{job_id}. Failed, timed-out, cancelled and moderation-blocked jobs are not charged.
servers:
- url: https://api.wandura.ai
description: 'Production (region sin1, Singapore). Test keys (wdr_test_…) are the sandbox: same API, a sample file, $0.'
security:
- bearer: []
tags:
- name: Styles
paths:
/v2/styles:
get:
operationId: listStyles
summary: Live styles with preview URLs, then (rolling out) the Wandura app's effects and…
description: 'Rolling out (API www): while Wandura has them on, the Wandura app''s effects (ids sty_www_effect_…) and ad templates (sty_www_template_…) come after your styles, under the model of their output, one price per run. They run as every style: POST /v2/jobs {model, style, …}; a template''s own fields go in `inputs`.'
parameters:
- in: query
name: model
required: false
schema:
type: string
enum:
- wandura-image-v1
- wandura-video-v1
- wandura-c1-1
- wandura-video-upscale-v1
responses:
'200':
description: Styles.
content:
application/json:
schema:
type: object
properties:
object:
const: list
data:
type: array
items:
$ref: '#/components/schemas/Style'
'401':
$ref: '#/components/responses/JobsApiErrorResponse'
'422':
$ref: '#/components/responses/JobsApiErrorResponse'
tags:
- Styles
components:
schemas:
InputSlot:
type: object
properties:
pronoun:
type:
- string
- 'null'
enum:
- she
- he
- they
- null
role:
type:
- string
- 'null'
hint:
type:
- string
- 'null'
description: What photo to take.
subject:
type:
- string
- 'null'
enum:
- person
- dog
- cat
- animal
- null
description: 'What this photo must show: person = a person, never an animal; dog / cat = that animal, never a person; animal = a cat or a dog, never a person. Show it on the upload box so a user does not send a face to a pet role or a pet to a person role. null = the style does not say. New values may be added.'
preview_url:
type:
- string
- 'null'
format: uri
description: A still of the person this photo replaces in the template video.
roles:
type: array
description: 'Only on a style that takes ONE photo of everyone together (the single entry of input_slots): who must be in that photo, in the style''s order. `side` = where the role stands in the photo when the style tells them apart by place (left, center, right), else null.'
items:
type: object
properties:
pronoun:
type:
- string
- 'null'
enum:
- she
- he
- they
- null
role:
type:
- string
- 'null'
side:
type:
- string
- 'null'
subject:
type: string
enum:
- person
- animal
description: person = a person; animal = a cat or a dog.
JobsApiError:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- retryable
properties:
code:
type: string
enum:
- INVALID_INPUT
- UNAUTHORIZED
- INSUFFICIENT_CREDITS
- FORBIDDEN
- NOT_FOUND
- IDEMPOTENCY_KEY_REUSED
- JOB_NOT_CANCELLABLE
- STYLE_OFF
- RATE_LIMITED
- PRODUCT_BUSY
- END_USER_LIMIT_REACHED
- DAILY_CAP_REACHED
- INTERNAL_ERROR
- SERVICE_UNAVAILABLE
- DEADLINE_UNREACHABLE
message:
type: string
description: For people; branch on code.
retryable:
type: boolean
details:
type: array
items:
type: object
required:
- field
- reason
properties:
field:
type: string
reason:
type: string
description: INVALID_INPUT only.
needed_usd:
type: number
description: 'Rolling out (API www): INSUFFICIENT_CREDITS of a raw model or Wandura app style job: what it holds, USD.'
available_usd:
type: number
description: 'Rolling out (API www): INSUFFICIENT_CREDITS: what the wallet can spend now, USD (GET /v2/wallet).'
docs_url:
type: string
format: uri
description: This code's section of https://docs.wandura.ai/developers/api-v2/errors (the page itself for a code without its own section).
Style:
type: object
properties:
id:
type: string
object:
const: style
model:
type: string
name:
type: string
description:
type: string
input_hint:
type: string
preview_url:
type:
- string
- 'null'
format: uri
inputs:
type: object
additionalProperties:
type: string
enum:
- required
- optional
description: Each field of POST /v2/jobs this style takes. Fields not listed are refused (422).
input_slots:
type: array
items:
$ref: '#/components/schemas/InputSlot'
description: 'Styles that put one person (or pet) per photo: one entry per photo of image_urls, IN ORDER (entry 1 = image_urls[0]); `subject` says what each photo must show (a person, or which animal). Show it on each upload box. A style that takes ONE photo of everyone together has a single entry whose `roles` lists who must be in it. Absent for other styles.'
input_counts:
type: object
additionalProperties:
type: integer
minimum: 1
description: 'The exact number of files a list field takes, e.g. {"image_urls": 2}: send exactly 2 photos, one per subject, in input_slots order. Any other count is refused with 422 INVALID_INPUT (field image_urls) before anything runs or is charged, test keys included. Absent when the style has no fixed count.'
max_job_seconds:
type: integer
price:
type: object
properties:
credits:
type: number
description: 1 credit = $0.01
usd:
type: number
description: Charged only when the job succeeds (live keys).
list_price:
type: object
properties:
credits:
type: number
description: 1 credit = $0.01
usd:
type: number
description: 'Partner pricing only: the list price; price is what is charged.'
discount:
type: object
properties:
percent:
type: number
label:
type: string
description: e.g. "Partner −20%"
description: 'Partner pricing only: your org''s % off every job; the prices above are already discounted (what is charged).'
responses:
JobsApiErrorResponse:
description: Error. Branch on error.code; X-Request-Id identifies the request.
headers:
Wandura-Error-Code:
schema:
type: string
description: The same value as error.code.
Wandura-Should-Retry:
schema:
type: string
enum:
- 'true'
- 'false'
description: 'The same value as error.retryable: retry the same request later (with the same Idempotency-Key) only when true.'
content:
application/json:
schema:
$ref: '#/components/schemas/JobsApiError'
securitySchemes:
bearer:
type: http
scheme: bearer
description: wdr_live_… runs for real (charged on success only); wdr_test_… is the sandbox (sample file, $0). Keep keys on your server.
x-wandura:
limits:
submits_per_min_per_product: 2400
product_concurrency: 20
end_user_jobs_per_day: null
statuses:
initial: queued
running: processing
final:
- succeeded
- failed
- cancelled
- timeout
webhook:
signature: X-Signature = hex(HMAC-SHA256(secret, X-Timestamp + "." + raw body)); X-Timestamp = unix seconds
retry_delays_s:
- 30
- 120
- 600
- 3600
- 21600
- 86400
attempts: 7
attempt_timeout_s: 10
errors:
- code: INVALID_INPUT
status: 422
retryable: false
message: 'The body or a header is wrong; details[] lists each {field, reason}. A common one: image_urls with another number of photos than the style takes (GET /v2/styles -> input_counts), e.g. {"field": "image_urls", "reason": "This style needs 2 photos, one per subject (got 1)."}. A raw model (rolling out) is checked against what it declares (GET /v2/models/{id} -> inputs): the number of URLs in each list, a resolution, duration or aspect_ratio it does not offer; a raw model id that is not in the catalog is {"field": "model"}. Its file links are read before anything is held: a link that answers 401, 403, 404 or 410, or a file of another kind than its field takes (a video in image_urls), is {"field": "image_urls[0]", "reason": "is video/mp4, not an image"}.'
- code: UNAUTHORIZED
status: 401
retryable: false
message: 'Missing, unknown, revoked or expired API key. A www.wandura.ai key (wdr_ without live_ or test_) gets the same 401 and code, its message plus one sentence: use it at https://www.wandura.ai/api/v1; api.wandura.ai takes open.wandura.ai keys.'
- code: INSUFFICIENT_CREDITS
status: 402
retryable: false
message: This product's wallet cannot cover the job. Add funds, then retry.
- code: FORBIDDEN
status: 403
retryable: false
message: 'The key is valid but may not do this: a key made with the Read only preset submitting or cancelling, or a key limited to other styles (allowed_styles).'
- code: NOT_FOUND
status: 404
retryable: false
message: No such job, model or endpoint for this key.
- code: IDEMPOTENCY_KEY_REUSED
status: 409
retryable: false
message: This Idempotency-Key was already used with a different body. Use a new key for a new job.
- code: JOB_NOT_CANCELLABLE
status: 409
retryable: false
message: Only queued or processing jobs can be cancelled; this one has ended.
- code: STYLE_OFF
status: 409
retryable: false
message: A style published to your org that is switched off, by your org or taken down by Wandura. Use another style.
- code: RATE_LIMITED
status: 429
retryable: true
message: Too many jobs submitted this minute for this product. Retry after the Retry-After header.
- code: PRODUCT_BUSY
status: 429
retryable: true
message: This product is at its provider concurrency and its queue is full. Retry after the Retry-After header (about 5 s).
- code: END_USER_LIMIT_REACHED
status: 429
retryable: true
message: This end user reached the daily job cap. Retry after the Retry-After header (resets 00:00 UTC).
- code: DAILY_CAP_REACHED
status: 429
retryable: false
message: This product reached its daily spend cap (the day resets at 00:00 Vietnam time, UTC+7). Ask your org admin to raise the cap.
- code: INTERNAL_ERROR
status: 500
retryable: true
message: Something went wrong on our side. Retry with the same Idempotency-Key.
- code: SERVICE_UNAVAILABLE
status: 503
retryable: true
message: 'This style cannot run on a live key right now. Test keys still return a sample. Or: The job queue is briefly unavailable; nothing was created or charged. Retry with the same Idempotency-Key after the Retry-After header.'
- code: DEADLINE_UNREACHABLE
status: 503
retryable: true
message: 'A video job whose deadline (timeout_seconds / deadline_at, or your product''s default) is shorter than it takes at its quickest: refused at once, nothing created or charged. Send a later deadline, or retry after Retry-After.'
job_errors:
- code: CONTENT_MODERATION_BLOCKED
status: failed
retryable: false
message: The input or the result was blocked by content moderation. Not charged.
- code: INPUT_UNUSABLE
status: failed
retryable: false
message: An input file could not be used (unreachable, unsupported format, or too long). Not charged.
- code: INPUT_NO_SUBJECT
status: failed
retryable: false
message: A photo shows no real person or animal (for example a doll, a toy, a drawing, an object or scenery). Not charged.
- code: TIMEOUT
status: timeout
retryable: true
message: The job did not finish within the maximum job time of its style. Not charged.
- code: GENERATION_FAILED
status: failed
retryable: true
message: Generation failed on our side. Not charged; submitting again usually works.
- code: PRICE_CHANGED
status: failed
retryable: false
message: The price of this Story scene went up after it was quoted, so it did not run. Not charged; ask for a new quote (POST /v2/story/quotes).
- code: STORY_NO_SCENES
status: failed
retryable: false
message: 'The script gave no scene to make videos from: nothing in it reads as a scene (a one-line idea, a summary). Write at least one scene (where it happens, then what happens and who says what), then send it again with PUT /v2/story/projects/{project_id}/script. Not charged.'