Quickstart
One key, one request shape, every image and video model. Submit a job, poll it, get the file. Your inputs and outputs are never shared or used for training: Privacy.
/data/models.json.POST /v1/chat/completions, billed per token from the same credit: see chat completions.| Base URL | https://api.revana.si/v1 |
| Auth | Authorization: Bearer <key> |
| Submit | POST /v1/generations |
| Poll | GET /v1/generations/{id} |
| Models | GET /v1/models (no key): every model you can generate with right now |
| Balance | GET /v1/balance: what your key’s account can spend |
| Upload | POST /v1/uploads: a link for a reference file on your computer |
| Delete files | DELETE /v1/generations/{id}/content and DELETE an upload’s link: remove your files at any time |
| Elements | POST /v1/elements: save a character, location or prop and use it by @name in any prompt |
| Voices | POST /v1/voices: clone or design your own voice and read text in it |
| Assistant | No code: in the dashboard’s Assistant tab, chat with a Claude producer that plans the shots, picks the models and shows the price. Nothing is made until you tap Make it on its card, and each shot is capped at the price shown. The chat itself is billed like any chat request, at the model’s token price, and the tab shows what each chat has cost. |
| Format | JSON in, JSON out. Prices in USD; 100 credits = $1. |
| Machine-readable | /openapi.json · /llms.txt |
Authentication
Create a key from your account, then send it as a bearer token on every request. Keep it on your server; never ship it in a browser or mobile app.
Submit a generation
Send the model id and its input. The response comes back straight away with a generation id and status queued; the work happens in the background.
| Field | Type | Description |
|---|---|---|
model | string, required | A model id from the models page, e.g. seedance-2.5, or seedance-2.5-flash for the cheaper, faster Seedance 2.5 Flash (480p and 720p). |
input | object, required | The prompt and settings; see input fields. Unknown fields are refused. |
task | string, optional | On video models, what to do with input.video_url: video_edit or video_extend. See edit or extend a video. Leave it out and each model works as it always has. |
max_cost_usd | number, optional | The most you will pay for this generation, up to 100 (the default). Routes priced above it are skipped; if none is left the request answers 422 max_cost_exceeded. |
max_wait_s | integer, optional | Routes expected to take longer than this many seconds are skipped. Once it has passed no new route is tried, but one already running is allowed to finish (up to 40 minutes) and is charged if it delivers. |
Idempotency-Key | header, optional | Up to 200 characters. Send the same key and body again (after a timeout or a 503) and you get the same generation back, not a second one. The same key with a different body is 409 idempotency_conflict. After a generation has failed, send it again with a new key: the old key keeps answering the failed generation. |
Price it first
Send the same body as a submit to see what it will cost: quoted_usd, reserved_usd (the most it can cost), estimated_seconds, and for your key available_usd and enough_credit. Nothing is created or held, and it is free. Some inputs cost more than a model’s listed rate (Seedance 2.5 with a first frame), so quote the exact request and pass the quote as max_cost_usd. Where the supplier bills reference pictures (Seedream 5.0 Pro after the first, Seedream 5.5 each), each adds $0.01 to every picture made, and the quote’s breakdown shows reference_images, reference_images_billed, per_reference_image_usd and reference_images_usd.
Submit a batch
Up to 20 generations in one call: {"items": [<submit body>, ...]}, or the same request several times with {"request": <submit body>, "count": 4}. Each item is admitted in order exactly like a single POST /v1/generations: its own quote, its own hold, its own max_cost_usd, and the same limits and checks. Quote one item with POST /v1/generations/quote; a batch costs the sum of its items.
An item that is refused comes back with its error and holds nothing; the others stay accepted. If the balance runs out midway, the later items fail with insufficient_credits and the earlier ones run. The answer is 200 when every item was accepted and 207 when some were refused:
{"object": "batch", "batch_id": "gb_...", "accepted": 3, "failed": 1,
"items": [{"index": 0, "id": "gen_...", "status": "queued", "quoted_usd": 1.05},
{"index": 3, "id": null, "status": "failed", "error": {"code": "insufficient_credits", "message": "..."}}]}
Send idempotency_key in the body (or the Idempotency-Key header, up to 190 characters) to retry safely: item i is sent with the key <key>:<i>, so the same batch again returns the same generations and charges nothing more. Poll each id with GET /v1/generations/{id}; there is no batch status endpoint. In Claude and other MCP clients, get_quote and generate_video take count.
Get the result
Prefer a per-model endpoint and completion webhooks? See the fal-compatible queue API for request IDs, status/result URLs, supported fal aliases and migration limits.
Poll every few seconds until status is succeeded or failed, then download the files in output.urls with your key: GET /v1/generations/{id}/content for the first, and /content/2, /content/3… when a picture model returns several. Images usually take seconds; video takes from under a minute to several minutes depending on the model and length.
A finished generation:
Input fields
The same names are used across models. Which fields and values each model takes, and its defaults, are listed per model in /data/models.json (options, tasks): options there is the same as in GET /v1/models, including qualities / default_quality, default_resolution and, for picture models, max_images. If a model doesn’t support a field or value, the request is rejected with 422 invalid_input before anything is charged.
| Field | Type | Used for |
|---|---|---|
prompt | string | What to generate. Required for text-to-image and text-to-video. |
image_url | string (URL) | Start frame for image-to-video, or the image to edit for image-to-image. |
end_image_url | string (URL) | Last frame, for models with first + last frame. |
image_urls | string[] | Reference images, up to the model’s limit. |
resolution | string | 720p, 1080p, 2K... one of the model’s resolutions. |
duration | number | Video length in seconds, one of the model’s durations. |
aspect_ratio | string | 16:9, 9:16, 1:1... |
audio | boolean | Generate sound with the video, where the model supports it. May change the price. |
negative_prompt | string | What to avoid, on models that take it. |
video_url | string (URL) | A clip to transform, extend or upscale. Its length is measured and, on per-second models, billed. Name what to do with it in task. |
video_urls | string[] | Reference clips: a new video that follows their moves, camera or look (not an edit). Kling 4.0 takes up to 5, 3–30 s each and 30 s in all, at 720p or 1080p; it bills the output plus the longer of the output and the clips, at the video-input rate. Wan 3.0 and Wan 3.0 Prime take up to 5, 2–15 s each and 15 s in all, at every resolution; they bill the output plus the clips’ seconds at the normal rate. Not with image_url; send pictures as image_urls. Seedance 2.5: below. |
audio_url | string (URL) | The voice or sound a talking-avatar or lip-sync model animates to, or the track a song model covers or extends (songs). On Wan 3.0, Wan 3.0 Prime, Seedance 2.5 Flash, Seedance 2.0 (and Fast, Mini), MiniMax H3 and Kling 4.0, a reference voice or sound (several as audio_urls; Seedance 2.0, MiniMax H3 and Wan 3.0 Prime only beside a reference picture in image_urls); on Wan 3.0 it also goes with video_url for lip sync: the person in the clip says the sound. |
quality | string | A quality tier on models priced by one (e.g. low, medium, high). |
seed | integer | A seed, on models that take one. |
num_images | integer | Picture models: how many pictures to make (also accepted as n), from 1 (the default) up to the model’s options.max_images, usually 4. The price and the hold are per picture; you are charged only for the pictures delivered and the rest is released. output.urls lists them all. |
Edit or extend a video
Send the clip as input.video_url, what to change as input.prompt, and name the task at the top level. The same body works on every model that does it; only the routes that do that task are used.
task | What happens | Models |
|---|---|---|
video_edit | The clip is changed by the prompt and keeps its length (leave out duration). | seedance-2.5, wan-2.7-videoedit, wan-2.7, happyhorse-1.0, kling-3.0-omni, kling-4.0, wan-3.0 |
video_extend | The clip is continued; send duration for the new part. Priced per second like any clip of the model. | pixverse-v6 |
video_extend (Seedance) | One source clip (input.video_url, or the only item of input.reference_videos) is continued forward or led into backward: input.extension_mode forward (default) or backward, input.duration 4–30 s of new footage (default 5), input.prompt what happens next (or before). reference_images keep faces and products the same. Only the new footage comes back: join it to the clip yourself. Billed like a video with a reference clip: output seconds plus max(clip seconds, ⌈2/3 of output⌉) at the with-video-input rate, and the quote is that bill. "mode": "extend" is the same as this task. Flash makes 480p or 720p. | seedance-2.5, seedance-2.5-flash |
A model that cannot do the task answers 422 invalid_input and names the models that can. Without task, a clip does what that model does with it by default.
For example: {"model": "wan-2.7-videoedit", "task": "video_edit", "input": {"video_url": "https://example.com/clip.mp4", "prompt": "Make it a snowy night"}}
Reframe a video
video-reframe changes a clip’s shape without cropping it: the original stays in the middle and the new space around it is filled to match the scene. Send the clip as input.video_url (1–30 s), the new shape as input.aspect_ratio (16:9 by default, or 9:16, 1:1, 4:3, 3:4, 21:9) and input.resolution (540p, 720p by default, or 1080p). input.prompt is optional: what the new space should show. The result is as long as the clip, which is billed by its seconds rounded up, and it keeps the clip’s own sound. Leave out duration.
For example: {"model": "video-reframe", "input": {"video_url": "https://example.com/vertical.mp4", "aspect_ratio": "16:9", "resolution": "720p"}}
Seedance 2.5 defaults to 720p, 5 seconds (4–30), 16:9 and no sound, and also takes:
| Field | Type | Used for |
|---|---|---|
video_url | string (URL) | A 4–30 s clip to edit. The result keeps its length, so leave out duration. |
video_urls | string[] | Reference clips, up to 10 and 30 seconds in all. Their seconds are billed at the video-input rate. |
audio_urls | string[] | Reference sound, up to 10 and 30 seconds in all. |
image_url is an exact first frame, so it can’t be combined with reference media; use image_urls for a looser visual reference. end_image_url needs image_url. Media must be public https URLs that download directly.
Seedance 2.5 draft mode
Try a shot cheaply first, then render the one you like at full quality. Send "draft": true in a Seedance 2.5 input to make a 480p draft. To finalize it, send a new request whose input is only {"draft_id": "gen_..."} (the draft’s id): it renders the same shot, with the draft’s prompt, references, length, ratio and sound, at 1080p. A draft can be finalized within 23 hours, once its status is succeeded.
A draft is always 480p (no 4K) and cannot edit a clip (video_url); a final takes no other fields. Both are priced by POST /v1/generations/quote with the same body, and billed at the 480p+draft and 1080p+draft_final prices. In Claude and other MCP clients, get_quote and generate_video take the same draft and draft_id.
For example: {"model": "seedance-2.5", "input": {"prompt": "A dancer on a rooftop at dusk", "duration": 5, "draft": true}}, then {"model": "seedance-2.5", "input": {"draft_id": "gen_..."}}
Songs (Suno V6)
A suno-v6 request makes two takes of a song for the one price. Send style (genre and sound, such as indie folk, warm vocals) or lyrics, and optionally prompt (the idea, up to 3,000 characters), instrumental and negative_tags:
| Field | Type | Used for |
|---|---|---|
style | string | Genre, mood and voice, up to 1,000 characters. |
lyrics | string | The words to sing, up to 5,000 characters; [Verse] / [Chorus] tags are fine. Not with instrumental. |
instrumental | boolean | No vocals. |
negative_tags | string | Styles to keep out, such as heavy metal, autotune. |
title | string | The song’s name, up to 80 characters. |
duration | integer | Target length, 10–360 seconds. A song with lyrics comes out close to it (60 s asked: 59–60 s); an instrumental may run longer. |
audio_url | string (URL) | A track of yours, up to 8 minutes: alone it is covered (sung again in style, with lyrics if sent); with continue_at it is extended. |
generation_id | string | Instead of audio_url: the id of one of your own finished songs (or another sound file you made), covered or, with continue_at, extended. output picks its track, 1 (default) or 2. |
continue_at | number | Extend: the second of audio_url or generation_id to carry on from, under the track’s length. The extension sets its own length, so leave out duration. |
voice_id | string | A song voice of yours (its id or name): the song, cover or extension is sung in it, with the voice’s saved settings unless the request sends its own. |
vocal_gender | string | female or male: who sings. |
style_weight, weirdness_constraint, audio_weight | number 0–1 | How closely it follows style, how adventurous it may get, and how much it keeps of the source track or the voice. |
A title, a duration, a cover and an extension are made from style and lyrics only, so they refuse prompt (it would be sung as the words): put the words in lyrics. A song with a duration and no title is named from its first lyric line, or its style. A new song, a cover and an extension cost the same. For example: {"model": "suno-v6", "input": {"audio_url": "https://example.com/demo.mp3", "continue_at": 42, "style": "dream pop", "lyrics": "[Chorus]\nStay a little longer"}}
Extend one of your songs by its id, from second 60: {"model": "suno-v6", "input": {"generation_id": "gen_...", "continue_at": 60, "style": "dream pop", "lyrics": "[Bridge]\nOne more night"}}. A voice or the vocal settings (vocal_gender and the weights) also make the song from style and lyrics, so they refuse prompt as well.
Song voices
Save the singer of one of your finished suno-v6 songs and sing new songs, covers and extensions in it. A voice keeps default settings (style, negative_tags, vocal_gender, style_weight, weirdness_constraint, audio_weight, and mode: voice keeps the singer, the default; style keeps the singer and the whole sound). Saving a voice is free; a song in it costs the same as any other song. An account keeps up to 50 song voices. On the dashboard, Save voice under a finished song does the same, and the Audio panel’s Voice list picks one.
{"name": "Mara", "generation_id": "gen_...", "output": 1, "style": "soft indie pop", "vocal_gender": "female"}
Answers 201 with {"id": "vce_…", "object": "voice", "kind": "song", "name", "description", "settings", "generation", "output", "created_by", "created_at"}. Optional vocal_start and vocal_end pick the 10–30 s where the voice sings clearly. GET /v1/voices?kind=song lists your song voices with slots; PATCH /v1/voices/{id} with name, description or any setting changes it; DELETE /v1/voices/{id} deletes it (songs already made stay). Errors: 409 not_ready (the song is still running), 422 instrumental, 409 voice_exists (that track already has a voice: use it, or output 2), 409 voice_slots_full. Then: {"model": "suno-v6", "input": {"voice_id": "Mara", "lyrics": "[Verse]\n...", "style": "acoustic"}}.
Split a song into vocals and stems
suno-vocal-split ($0.07) splits a track into the voice and the music; suno-stem-split ($0.32) into up to 12 stems (vocals, backing vocals, drums, bass, guitar, keyboard, percussion, strings, synth, effects, brass, woodwinds). Send generation_id (and output) for one of your songs, or audio_url for any track; no prompt. The result’s output.urls are the files and output.stems names each one in the same order: {"model": "suno-stem-split", "input": {"generation_id": "gen_...", "output": 2}}.
Timestamped lyrics. A finished song with words carries lyrics_url (GET /v1/generations/{id}/lyrics) where it is offered: each take’s lines and words with their start and end in seconds, {"object": "lyrics", "generation": "gen_...", "tracks": [{"output": 1, "lines": [{"text", "start_s", "end_s"}], "words": [...]}]}. ?format=lrc&output=2 answers an .lrc file of one take. It answers 409 not_ready before the song is finished and 422 instrumental for an instrumental. Price: 1 credit ($0.01) per track, once: the first request for a song’s lyrics is charged (two takes, 2 credits) and every later read, JSON or .lrc, is free. A balance too short for it answers 402 insufficient_credits, and a failed request charges nothing.
Nemesis
nemesis restages a clip with your own people, products and places: the clip’s movement, timing and camera, played by up to 8 reference pictures. The result keeps the clip’s length and shape. It is priced at a Seedance 2.5 edit’s rate plus $0.02 a second ($0.08, $0.17 and $0.36 at 480p, 720p and 1080p), per second of the clip in plus the video out.
It follows Scenario ALTER’s recipe: your clip itself is edited, silent, with one frame of it redrawn with the change already made as the first reference, and the clip’s own sound goes back on after. With more than one person, the pictures are matched left to right as the people stand in the first frame.
| Field | Type | Used for |
|---|---|---|
video_url | string (URL), required | The 4–30 s clip to restage. |
image_urls | string[], required | 1–8 reference pictures. |
roles | string[] | One per picture: person (default), product, location or look. |
target_frame | boolean | Before the render, the clip’s first frame is redrawn with the change already made, in the same pose, size and light, and sent as the first reference, so hair, face and clothes stay true to your pictures. On by default for nemesis, off for nemesis-lite. Free. |
guide | string | nemesis-lite only (nemesis always edits the clip itself). clip (default with a target frame): follows the clip’s own picture. people (default without one): the people are replaced and the background kept. scene: everything seen comes from the references and prompt. |
sound | string | original (default on nemesis): the clip’s own sound is put back on. none (default on nemesis-lite): silent. |
face_mesh | boolean | nemesis-lite only. Traces every face in the clip so the new face keeps its expressions, eyes and lips. On by default with guide: "people", off for scene and clip. Send false to leave it off. Never shown in the result. |
resolution | string | 480p, 720p (default) or 1080p. |
prompt | string | Optional direction, up to 5000 characters. |
On nemesis-lite, a clip with nobody in it, sent with guide: "people", is refused with invalid_input and not charged; send it with scene or clip.
How long it takes. First the clip is prepared: on nemesis the target frame is drawn, about 15–40 seconds; on nemesis-lite the voice is separated and each frame becomes the depth guide, about 25 seconds for an 8 second clip and a minute and a half for a 30 second one. Then the video is rendered, which is most of the wait: an 8 second clip at 480p takes about 4–7 minutes. Poll the generation until it is done.
Nemesis Lite
nemesis-lite takes the same input as nemesis and renders it on Wan 3.0: cheaper, a little less faithful on faces and fine detail. The clip is 2–15 s. It is priced at Wan 3.0’s rate plus $0.02 a second ($0.065, $0.095 and $0.165 at 480p, 720p and 1080p), per second of the clip in plus the video out.
Generation object
| Field | Type | Description |
|---|---|---|
id | string | Generation id (gen_…), used to poll. |
object | string | Always generation. |
model | string | The model you asked for. |
status | string | See statuses. |
message | string | Only while a result is being confirmed with a provider: what is happening. |
quoted_usd | number | The price on the cheapest route, which is the one tried first. If it cannot make it and a dearer backup route does, the charge is that route’s price, up to reserved_usd. |
reserved_usd | number | What is held from your balance: the most this generation can cost, if a dearer backup route makes it after other routes were tried. The difference is released when it settles. To never pay more than quoted_usd, set max_cost_usd to it: dearer backups are then skipped. |
output | object | null | When succeeded: urls, the result files (a picture model can return several), with width and height; video also has duration_s and has_audio. Download them promptly; files expire. |
cost_usd | number | null | What was charged. Set once the generation succeeds; 0 when it fails. |
attempts | number | Routes tried, including fallbacks. Only the successful one is billed. |
error | object | null | When failed: code, message and retryable; a content refusal also has reason. See why a generation failed. |
created_at, completed_at | string | ISO 8601 timestamps. |
Statuses
| Status | Meaning |
|---|---|
queued | Accepted, waiting for a route. |
running | Generating. If a route fails, the job stays running while it moves to the next one, and while a result is being confirmed (see message). |
succeeded | Done. output.urls holds the files and cost_usd what you paid. |
failed | Every route failed or the input was refused. Nothing is charged. |
Billing
- You pay from prepaid credits, 100 to the dollar, bought in packs from $10 to $5,000. Every price is a whole number of credits.
- When you submit,
reserved_usdis held from your balance. If the generation fails, all of it is released. - You are charged only when the generation succeeds, at the price quoted for the route that made it. Usually that is the first route at
quoted_usd. When a backup has to make it, it can cost more: that route’s price, or, if a route tried before it was billed by its supplier, what those attempts cost plus 10%, whichever is more. Never abovereserved_usd. - There is no monthly quota or per-minute cap: your balance and
max_cost_usdare the limit. - Each model’s price is on its page and in the price table.
Balance
The account your key belongs to. Check it before a large batch; it costs nothing and does not count against the generation limits.
| Field | Meaning |
|---|---|
available_usd | What a new generation can reserve. A submit whose reserved_usd is more gets 402 insufficient_credits. |
held_usd | Reserved by generations still running. What they don’t use comes back when they settle. |
balance_usd | Available plus held. |
spent_usd | Charged for finished generations, all time. |
*_credits | The same amounts in credits (100 to the dollar), rounded so available never reads higher than it is. |
Uploading a reference file
References are passed as public https:// links. For a file on your own machine, ask for an upload link, send the bytes there, and use the link you get back. It is free.
| Field | Meaning |
|---|---|
upload_url | Send the file here with PUT within an hour, with exactly the headers in upload_headers (its type and size). Anything else is refused. |
url | The file’s link on api.revana.si, good until expires_at (14 days). It needs no key and redirects to the file, so anything that can fetch a link can read it. Use it as a reference in POST /v1/generations. The file is deleted soon after. |
id | upl_… |
Pictures (image/*) up to 30 MB, clips (video/*) up to 50 MB, sound (audio/*) up to 15 MB. A larger or other file gets 413 too_large or 400 invalid_request.
Deleting your files
You can delete your files at any time instead of waiting for them to expire. From the dashboard: Delete files on a request in Logs, or Delete all my files under Logs. From the API:
Removes every stored file of a finished generation at once. The generation stays, with its price, so your bill and logs do not change; afterwards it shows no output and its content link answers 410 deleted. A generation still running answers 409 not_finished; one that finished seconds ago may answer 409 storing for a few minutes while its file is saved.
The upload’s own link, with your key: the file is removed and the link stops working at once. Deleted files cannot be brought back, and nothing is refunded.
Elements: characters, locations and props
Save a character, a location or a prop once, with 1 to 8 pictures, and use it in any later generation without sending the pictures again: on Seedance and the other video models that take reference pictures, and on image models (Nano Banana, GPT Image and others). An element belongs to your account: your keys and your team can use it, nobody else can. Saving one is free; an account holds up to 200. The dashboard has the same under Elements.
{"name": "Mia", "category": "character", "image_urls": ["https://api.revana.si/v1/uploads/…/mia-front.png", "https://example.com/mia-side.jpg"], "description": "red jacket, short dark hair"}
category is character, location or prop. The name (1–40 letters, numbers, spaces, . _ ' -) is how a prompt tags it, so one account’s names differ. Pictures are PNG, JPG, WebP or GIF up to 10 MB: your own uploads or public https links. We copy them, so the element outlives its upload. Answers 201 with {"id": "el_…", "object": "element", "name", "category", "description", "images": [{"url", "content_type"}], "created_by", "created_at"}.
Use it by tag or by id:
POST /v1/generations
{"model": "seedance-2.5", "input": {"prompt": "@Mia walks into @Harbor at dusk", "resolution": "720p"}}
{"model": "nano-banana-pro", "input": {"prompt": "a poster of her on a bike", "element_ids": ["el_…"]}}
Each element’s pictures are added to input.image_urls after your own, and its tag becomes the matching @image1 @image2… tags the models read. A tag is @ plus the name (any case) or @el_…; element_ids takes ids or names. All the pictures count toward the model’s reference limit (Seedance 2.5: 30, Seedance 2.5 Flash: 10, others: see options.max_input_images in the model list): over it answers 422 too_many_references naming the count. An unknown id answers 404 element_not_found.
Your elements, newest first, with fresh picture links. GET /v1/elements/{id} answers one and DELETE /v1/elements/{id} deletes it and its pictures (results already made stay). Errors: 409 element_name_taken, 409 element_limit, 403 for an upload that is not yours.
Your own voices
Clone a voice from recordings of one person, or design one from a description, then read text in it with the ElevenLabs speech models (elevenlabs-multilingual-v2, elevenlabs-v3, elevenlabs-v4, elevenlabs-turbo-2.5). A voice belongs to your account: your keys and your team can use it, nobody else can. Making a voice is free; speech in it costs the same as any other voice. An account holds up to 20 voices (GET /v1/voices shows your own limit); delete one to free its slot. The dashboard has the same under Voices, including recording in the browser.
// clone: 1 to 10 of your own uploads (POST /v1/uploads), 30 s to 3 min of clear speech in all
{"name": "Narrator", "sample_urls": ["https://api.revana.si/v1/uploads/…/me.mp3"], "remove_background_noise": true}
// design: 20 to 1,000 characters; the answer has a preview_url to listen to
{"name": "Old sailor", "description": "A gravelly old sailor with a warm Irish accent, slow and kind"}
Answers 201 with the voice: {"id": "vce_…", "object": "voice", "name", "source": "clone" | "design", "description", "samples", "created_by", "created_at"}. Send an Idempotency-Key header (up to 200 characters) to retry safely: the same key with the same body answers 200 with the same voice and never makes a second one; the same key with a different body is 409 idempotency_conflict, and while the first request is still making its voice a second one gets 409 idempotency_in_progress (retry in a few seconds). Then pass its id (or its name) as the voice:
POST /v1/generations
{"model": "elevenlabs-multilingual-v2", "input": {"text": "Welcome back to the channel.", "voice": "vce_…"}}
Its output is an MP3 you can pass straight on as a voice reference to a video model (for Seedance 2.5, in audio_urls), so the person in the video speaks in your voice. Speech in your own voice always runs on our ElevenLabs route.
Your voices, newest first, with slots: {used, limit}. GET /v1/voices/{id} answers one, PATCH /v1/voices/{id} with {"name"} renames it, and DELETE /v1/voices/{id} deletes it for good (speech already made stays). Errors: 409 voice_slots_full when the account holds all its voices (20 unless your account has its own limit), 422 voice_refused when a recording or description could not be used, 403 for a sample that is not one of your own uploads. Clone only your own voice or one you have the speaker’s permission for.
Why a generation failed
A failed generation has error.code, a message written to show to the person who asked, and retryable: true when sending the same request again later can work, false when the request itself has to change. A failed generation is never charged.
| Code | Retryable | When |
|---|---|---|
content_policy | no | The model refused the prompt or the media, or withheld what it made. reason says which rule: sexual (NSFW or adult content), minors (children or teenagers), copyright (copyrighted or third-party material, brands, characters), real_person (a real or famous person’s likeness), or other when the model gives no reason. |
invalid_input | no | A reference could not be read, a prompt names @Image2 when one image was sent, or a value the model rejects. The message says which. |
model_declined | no | The model answered in words instead of making the picture or video, usually because the prompt asks for something it needs and wasn’t sent. Make the prompt describe the result itself. |
reference_changed | no | A reference file changed after it was checked. Send it again. |
max_cost_exceeded | no | The only route that could run costs more than max_cost_usd. |
model_busy | yes | Every route for the model was at capacity. Try again in a minute. |
model_unavailable | yes | No route for the model could take the job right now. |
timeout | yes | No route returned a result in time, or max_wait_s passed. |
all_routes_failed | yes | Every route failed for reasons on their side. |
processing_failed | yes | Nemesis could not prepare the clip, so nothing was sent to a model. Send it again. |
Errors
Errors use HTTP status codes and a JSON body: {"error": {"code": "...", "message": "...", "request_id": "req_..."}}. Every response carries an X-Request-Id header; quote it when you ask for help. Every 429 and 503 carries Retry-After in seconds.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_request | The body isn’t JSON, is missing model or input, or has a field the API doesn’t know. |
| 400 | batch_too_large | A batch with more than 20 items, or count over 20. Split it. |
| 401 | unauthorized | Missing or invalid API key. |
| 402 | insufficient_credits | Your available balance doesn’t cover reserved_usd. Top up and retry. |
| 403 | account_disabled | The account is paused. Contact support. |
| 403 | generation_not_enabled | Your key can read prices but can’t generate yet. |
| 403 | card_required | This free credit needs a saved card first. The $1 sign-up credit needs no card after a Google sign-in, or an email sign-in from a mainstream mailbox (Gmail, Outlook, Yahoo, iCloud, Proton); an email sign-in from any other domain, and any other free credit, needs a saved card first. Add a card in the dashboard (saving it charges nothing), then retry. |
| 404 | not_found | No generation with this id on your account. |
| 409 | idempotency_conflict | This Idempotency-Key was already used with a different body. |
| 409 | not_ready | Asked for the file before the generation succeeded. |
| 413 | body_too_large | The body is over 1 MB. Send media as URLs. |
| 422 | invalid_input | A field, value or combination the model doesn’t support, or media that can’t be read. Nothing is charged. |
| 422 | max_cost_exceeded | Every route costs more than max_cost_usd. |
| 422 | model_not_available | No model with this id on the API. Ids are on the models page. |
| 429 | rate_limited | Too many requests in the same second from one account (a guard against runaway loops, not a quota). Wait the Retry-After seconds. |
| 429 | concurrency_limit | The account already has its maximum of generations in progress. Retry when one finishes. |
| 503 | busy | A moment of load. Retry after Retry-After with the same Idempotency-Key. |
| 503 | model_unavailable | No route for this model is up right now. Retry shortly. |
| 500 | server_error | Something broke on our side. Safe to retry with the same Idempotency-Key. |
Model list
Every model, its options and prices are published as JSON at /data/models.json, the same file this site renders from.
The API lists the same models at GET https://api.revana.si/v1/models. Called with your key, every price in it is your account’s own. Each image and video model has, beside id, name, kind, tasks, options and price:
| Field | Meaning |
|---|---|
route_prices | For each price key (the keys of price.usd, or *), the price on Route 1, 2, … in the order they are tried, as [usd, fee_usd] per price.unit. Route 1 is the list price. A backup route is only used when the ones before it fail, and costs its own price, never less than the list price. |
options.qualities | The quality tiers you can send as input.quality, when the model has them; options.default_quality is the one used when you send none. |
capabilities | Flags for building a UI: edit (changes a picture or clip you give it), image_input, video_input, audio_input, audio_output, first_last_frame, reference_images, upscale, seed (takes input.seed). |
input_limits | What a request may send: max_input_images, max_input_videos, max_input_audios; audio_field (audio_urls, a list where one sound may also go as audio_url; or audio_url, one sound); seed ({min, max}, or null when the model takes no seed); and per kind of file the field, how many, and how long each and together in seconds: reference_videos (input.video_urls, clips to follow), source_video (input.video_url, the clip to edit), reference_audios (input.audio_urls), source_audio (input.audio_url, the voice an avatar speaks or a track to cover). Example (MAGI-2): {"seed":{"min":0,"max":4294967295},"max_input_images":10,"max_input_videos":5,"max_input_audios":5,"audio_field":"audio_urls","reference_videos":{"field":"video_urls","max_files":5,"min_seconds":2,"max_seconds":30,"total_seconds":30},...}. A seed sent to a model with seed: null is ignored, except on seedance-2.5, music and speech models, which answer 422. |
input_schema | A JSON Schema (draft 2020-12) of the input object for the model: only the fields it takes, with its own enums, ranges and list lengths, so a form can be built and checked from it. Combinations (a last frame needs a first frame) and file lengths are checked when you send the request (422 invalid_input). |
Your own prices
If your account has its own prices (a partner or volume deal), GET /v1/models called with your key also carries account_prices: each model and price key you pay your own price at, next to the public price. Signed in, the same table is under Billing → Your prices.
| Price key | Meaning |
|---|---|
480p | Text-to-video or reference pictures at that resolution (each model’s own keys, as in price.usd) |
+video_input | With a reference video |
+first_frame | Image-to-video: a first frame, or a first and last frame |
+audio | With audio |
480p+draft / 1080p+draft_final | A draft, and finalizing a draft at 1080p |
* | Any resolution |
Prices are USD per unit. public_usd is null where the public list has no price at that key; off_pct is 0 when your price is not lower. Anything not listed is at the price GET /v1/models shows you. Without prices of your own, prices is empty.
Signed webhooks
Completion webhooks (the queue API’s fal_webhook) are signed with a secret only your account has. Every delivery carries:
Revana-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256>, the HMAC of the timestamp, a dot and the raw request body, keyed with your secret.Revana-Webhook-Id: wh_<request id>, the same on every retry of one delivery, so you can drop repeats.
Your account’s signing secret. It stays the same: fetch it once and keep it with your API key.
To verify a delivery, compute the HMAC over the body exactly as it arrived (before parsing it), compare it in constant time, and refuse a timestamp more than five minutes old:
Need help?
Ask on our Discord: the team and other builders answer questions about the API, models, prompts and jobs there. For a payment or anything private, email hello@revana.si. Quote the X-Request-Id or job id if it is about one request.