Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Varoriya Com Generate API
version: 1.0.0
contact:
name: Varoriya
url: https://varoriya.com
description: 'Operations tagged Generate across 2 of this provider''s published API definitions: openapi.yaml, varoriya-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.varoriya.com
description: Production
security:
- bearerAuth: []
tags:
- name: Generate
description: Create media
paths:
/v1/generate/image:
post:
tags:
- Generate
summary: Create an image
description: 'Submit an image generation. Returns `202` with a `job_id`.
Poll `GET /v1/jobs/{job_id}` for the result.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ImageRequest'
examples:
z-image:
summary: z-image (fast, cheap)
value:
model: z-image
prompt: a lighthouse on a cliff at dawn, dramatic sky
quality: 1K
aspect_ratio: '16:9'
grok:
summary: grok (xAI, styles + legible text)
value:
model: grok
prompt: a neon cyberpunk street sign that reads "VARORIYA", rain, bokeh
aspect_ratio: '16:9'
nanobananapro:
summary: nanobananapro (Gemini, with Google Search)
value:
model: nanobananapro
prompt: an infographic about the water cycle
quality: 2K
aspect_ratio: '16:9'
options:
search: true
seedream5pro:
summary: seedream5pro (BytePlus, reference images)
value:
model: seedream5pro
prompt: turn this product into a luxury studio shot
quality: 2K
aspect_ratio: '1:1'
images:
- https://media.varoriya.com/2/example.png
gptimage:
summary: gptimage (OpenAI GPT-Image 2, edit)
value:
model: gptimage
prompt: a watercolor poster of a mountain lake at sunrise
quality: medium
aspect_ratio: '2:3'
responses:
'202':
description: Job accepted
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateAccepted'
example:
job_id: 96e35487-3010-46d4-9246-50f7cd04bc17
status: queued
model: z-image
quality: 1K
aspect_ratio: '16:9'
coins_charged: 50
coins_remaining: 17794
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
description: Not enough coins
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: insufficient_coins
required: 350
coins: 120
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: rate_limited
retry_after: 30
operationId: postV1GenerateImage
x-operation-id-source: derived
servers:
- url: https://api.varoriya.com
description: Production
/v1/generate/video:
post:
tags:
- Generate
summary: Create a video
description: 'Submit a text-to-video generation (with audio). Returns `202` with a
`job_id`. Video renders in a few minutes — poll `GET /v1/jobs/{job_id}`
for the result (`result_url` is an `.mp4`). Priced per second
(`coins = rate × duration`).'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VideoRequest'
examples:
seedance2:
summary: seedance2 (BytePlus Dreamina, text-to-video)
value:
model: seedance2
prompt: a fluffy orange kitten playing with a ball of yarn, cinematic
quality: 720p
aspect_ratio: '16:9'
options:
duration: 5
wanoptimizet2v:
summary: wanoptimizet2v (WAN 2.2 text-to-video, cheap)
value:
model: wanoptimizet2v
prompt: a paper boat sailing down a rain gutter, macro, cinematic
quality: 480p
aspect_ratio: '16:9'
wanoptimize:
summary: wanoptimize (WAN 2.2 image-to-video, needs an image)
value:
model: wanoptimize
prompt: gently animate this portrait, subtle head turn and blink
quality: 480p
images:
- https://media.varoriya.com/2/example.png
grokvideo:
summary: grokvideo (xAI Grok Imagine, text/image-to-video + audio)
value:
model: grokvideo
prompt: a tracking shot through a neon night market, ambient chatter
quality: 480p
aspect_ratio: '16:9'
options:
duration: 5
version: '1.0'
grokvideo-1.5:
summary: grokvideo v1.5 (image-to-video, can speak Thai — needs an image)
value:
model: grokvideo
prompt: the woman smiles and says in Thai "สวัสดีค่ะ ยินดีต้อนรับ"
quality: 480p
images:
- https://media.varoriya.com/2/example.png
options:
duration: 5
version: '1.5'
flux3-t2v:
summary: flux3 text-to-video
value:
model: flux3
prompt: a cinematic drone shot over a misty mountain range at sunrise
quality: 720p
aspect_ratio: '16:9'
options:
duration: 10
flux3-keyframes:
summary: flux3 keyframe I2V (storyboard)
value:
model: flux3
prompt: a smooth transition between scenes, cinematic
quality: 720p
images:
- https://media.varoriya.com/2/example-opening.jpg
- https://media.varoriya.com/2/example-mid.jpg
- https://media.varoriya.com/2/example-closing.jpg
options:
duration: 12
flux3-continue:
summary: flux3 continue from start-video
value:
model: flux3
prompt: continue the scene, the character walks toward the door
quality: 720p
videos:
- https://media.varoriya.com/2/example-clip.mp4
options:
duration: 8
responses:
'202':
description: Job accepted
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateAccepted'
example:
job_id: 7fcb72b6-f2e5-4274-bcbe-e2e4b01d72e7
status: queued
model: seedance2
quality: 720p
aspect_ratio: '16:9'
coins_charged: 2120
coins_remaining: 13910
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
description: Not enough coins
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: insufficient_coins
required: 2120
coins: 500
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: rate_limited
retry_after: 30
operationId: postV1GenerateVideo
x-operation-id-source: derived
servers:
- url: https://api.varoriya.com
description: Production
/v1/generate/audio:
post:
tags:
- Generate
summary: Create audio
description: 'Generate audio from a text prompt with **seedaudio** (ByteDance Seed
Audio): background music, ambience, sound effects (SFX) and voiceover —
plus voice cloning. Speech in 17 languages incl. Thai. Returns `202`
with a `job_id`; poll `GET /v1/jobs/{job_id}` (`result_url` is an
`.mp3`). Billed per second: you are pre-charged a worst case (120s) and
refunded the unused seconds once the real length is known.'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AudioRequest'
examples:
seedaudio:
summary: seedaudio (voiceover)
value:
model: seedaudio
prompt: Hello and welcome to Varoriya.
options:
format: mp3
speech_rate: 0
seedaudio-thai:
summary: seedaudio (Thai voice — just write the Thai text)
value:
model: seedaudio
prompt: สวัสดีค่ะ ยินดีต้อนรับสู่วาโรริยา
options:
format: mp3
speech_rate: 0
responses:
'202':
description: Job accepted (pre-charged worst case; refunded after)
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateAccepted'
example:
job_id: 2faddd73-0b8f-4407-8a0e-7d0804c3a4d5
status: queued
model: seedaudio
coins_charged: 1800
coins_remaining: 11160
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
description: Not enough coins
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: insufficient_coins
required: 1800
coins: 500
'429':
description: Rate limited
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: rate_limited
retry_after: 30
operationId: postV1GenerateAudio
x-operation-id-source: derived
servers:
- url: https://api.varoriya.com
description: Production
components:
schemas:
Error:
type: object
properties:
error:
type: string
additionalProperties: true
VideoRequest:
type: object
required:
- model
- prompt
properties:
model:
type: string
enum:
- seedance2
- seedance25
- wanoptimize
- wanoptimizet2v
- grokvideo
- flux3
- h3
description: 'Video model to run:
- `seedance2` — ByteDance Dreamina Seedance 2.0. Cinematic video with synced audio (V2A). Three modes, auto-detected from inputs: **text-to-video** (prompt only), **reference** (up to 8 images + 3 videos + 3 audios — mention them in the prompt as `[Image 1]`, `[Video 1]`, `[Audio 1]`), and **first & last frame** (`options.first_frame` / `options.last_frame`). `options.tier` fast|standard; up to 720p (1080p on standard); `options.duration` 4–15s. (Audio/SFX only — **no reliable Thai speech**; use `grokvideo` v1.5 or `seedaudio` for Thai voice.)
- `seedance25` — ByteDance Dreamina Seedance 2.5. NEW model — cinematic video with synced audio. 4–30s, 480p/720p/1080p, up to 30 images + 10 videos + 10 audios. Modes: text-to-video, reference, first-last-frame, and extend (via `options.omni_reference_task_type`). No tier — always highest quality. (Audio/SFX only — no reliable Thai speech.)
- `wanoptimize` — WAN 2.2 **image-to-video** (open-source, optimized: faster, smaller, cheaper). REQUIRES a starting image (`images[0]`); animates it into a clip. Open-source model with **lighter prompt filtering** — good for prompts other models refuse.
- `wanoptimizet2v` — WAN 2.2 **text-to-video** (open-source, optimized: fast/cheap). Generates a clip straight from a prompt (no image needed). Open-source model with **lighter prompt filtering**.
- `grokvideo` — xAI Grok Imagine. Text-to-video, or image-to-video when `images[0]` is given, with native audio. `options.version` `1.0` (default, supports text-to-video) or `1.5` (requires an input image; its native audio can **speak Thai** — v1.0 audio does not); `options.duration` 1–15s; 480p/720p.
- `flux3` — Black Forest Labs FLUX 3. Multimodal video with synced audio. THREE modes via inputs: **text-to-video** (prompt only, no images/videos), **keyframe I2V** (`images[]` 1-10 ordered — first image = opening frame pixel-for-pixel, last = closing frame, 3-10 = storyboard evenly spaced, needs an explicit `duration`), **continue** (`videos[0]` = start-video URL, mp4 ≤50MB ≤15s, extends from its final frames; cannot combine with images). `options.duration` 5-20s (omit = auto; 3+ keyframes need a value); `options.draft` (bool, fast 720p preview); `options.generate_audio` (bool, default true). 720p/1080p.
- `h3` — MiniMax H3. Multimodal video with synced audio. Three modes via inputs: **text-to-video** (prompt only), **reference** (up to 9 images + 3 videos + 3 audios), **first & last frame** (`options.first_frame` / `options.last_frame`). `options.duration` 4–15s (integer); resolution `768P` / `2K`; `aspect_ratio` `auto` (=adaptive), `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`.
'
prompt:
type: string
description: Text description of the video / motion.
example: a fluffy orange kitten playing with a ball of yarn, cinematic
aspect_ratio:
type: string
description: 'Aspect ratio — seedance2: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`,
`9:16`, `adaptive`; WAN: `16:9`, `9:16`; flux3: `auto`, `21:9`,
`2:1`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16` (text-to-video only;
ignored when images/videos are present — model derives it from media).
'
example: '16:9'
quality:
type: string
description: 'Resolution — seedance2 `480p|720p` (`1080p` only when
`options.tier` is `standard`); grokvideo `480p|720p`; WAN models
`480p|720p`; flux3 `720p|1080p`. Default `480p` (cheapest) for all video models.
'
example: 480p
images:
type: array
items:
type: string
format: uri
description: '`wanoptimize`: the starting image (image-to-video).
`seedance2` reference mode: up to 8 reference image URLs.
`flux3` keyframe mode: 1-10 ordered image URLs — first = opening
frame (pixel-for-pixel), last = closing frame. 3+ images = storyboard
(evenly spaced; needs an explicit `duration`). Cannot combine with
`videos` (start_video).
'
videos:
type: array
items:
type: string
format: uri
description: 'seedance2 reference mode: up to 3 reference video URLs. flux3 continue mode: 1 start-video URL (mp4, ≤50MB, ≤15s) to continue from — cannot combine with images.'
audios:
type: array
items:
type: string
format: uri
description: 'seedance2 reference mode: up to 3 reference audio URLs
(must be paired with at least one image or video).
'
options:
type: object
additionalProperties: true
description: "seedance2 flags:\n`tier` (`fast`|`standard`, default fast),\n`duration` (seconds 4–15),\n`generate_audio` (bool, default true),\n`first_frame` / `last_frame` (image URLs for first & last frame mode),\n`ref_video_dur` (total seconds of attached reference video — declare\nfor accurate billing when `videos` are used).\n\nseedance25 flags:\n`duration` (seconds 4–30),\n`generate_audio` (bool, default true),\n`first_frame` / `last_frame` (image URLs for first & last frame mode),\n`ref_video_dur` (total seconds of attached reference video — declare\nfor accurate billing when `videos` are used),\n`omni_reference_task_type` (`auto`|`reference`|`extend`, default `auto` — \nuse `extend` to continue/extend from a reference video; `edit` is NOT\nexposed in this API).\n\ngrokvideo flags: `version` (`1.0` default | `1.5` — v1.5 requires an input image),\n`duration` (seconds 1–15).\n\nflux3 flags: `duration` (5-20s, omit = auto; 3+ keyframes need a value),\n`draft` (bool, fast 720p preview),\n`generate_audio` (bool, default true).\n"
GenerateAccepted:
type: object
properties:
job_id:
type: string
format: uuid
status:
type: string
enum:
- queued
- submitted
model:
type: string
quality:
type: string
aspect_ratio:
type: string
coins_charged:
type: integer
coins_remaining:
type: integer
AudioRequest:
type: object
required:
- model
- prompt
properties:
model:
type: string
enum:
- seedaudio
description: 'Audio model to run:
- `seedaudio` — ByteDance **Seed Audio**. All-in-one audio generation from a text prompt: background music, ambience, sound effects (SFX) and voiceover — plus voice cloning. Speech in 17 languages incl. Thai; expressive voice/tone/emotion/speed via `options`.
'
prompt:
type: string
description: 'The text to turn into audio — the words to speak, or a description
of the sound / music / SFX to generate (up to 3000 chars).
'
example: สวัสดีค่ะ ยินดีต้อนรับสู่วาโรริยา
images:
type: array
items:
type: string
format: uri
description: 'Optional single reference image URL for voice cloning
(derive a voice from a character image).
'
options:
type: object
additionalProperties: true
description: 'Audio flags: `model_version` (`seed-audio-1.0-multilingual` default,
or `seed-audio-1.0` for Chinese/English), `format`
(`mp3|wav|pcm|ogg_opus`), `sample_rate` (8000–48000),
`speech_rate` (−50…100), `loudness_rate` (−50…100),
`pitch_rate` (−12…12).
'
ImageRequest:
type: object
required:
- model
- prompt
properties:
model:
type: string
enum:
- z-image
- grok
- nanobananapro
- seedream5pro
- gptimage
description: 'Image model to run:
- `z-image` — Economical, fast, photorealistic text-to-image. Best cheap default.
- `grok` — xAI Grok Imagine. Fast; many styles (realistic, anime, oil, abstract); strong legible text-in-image; can also edit one reference image.
- `nanobananapro` — Google Gemini 3 Pro Image ("Nano Banana 2 Pro"). Production-grade, native 1K–4K, reference images, optional real-time Google Search grounding (`options.search`). Great for infographics & accurate text, incl. **Thai text in images**.
- `seedream5pro` — ByteDance Seedream 5.0 Pro. Visual reasoning + spatial grounding for pixel-precise edits, dense infographics, 10+ languages incl. Thai, up to 10 reference images; realistic light/shadow/texture.
- `gptimage` — OpenAI GPT-Image 2. Strong prompt-following and multi-image editing; renders **Thai (and other-language) text in images** well; quality `low|medium|high`, ratios `1:1|2:3|3:2`.
'
prompt:
type: string
description: Text description of the image to create.
example: a lighthouse on a cliff at dawn
aspect_ratio:
type: string
description: 'Aspect ratio (per model), e.g. `1:1`, `16:9`, `9:16`, `4:3`, `3:4`;
`auto` for nanobananapro / seedream5pro.
'
example: '16:9'
quality:
type: string
description: 'Resolution tier (per model): z-image `Sketch|1K|2K`,
nanobananapro `1K|2K|4K`, seedream5pro `1K|1.5K|2K`, gptimage `low|medium|high`. grok has none.
'
example: 1K
n:
type: integer
minimum: 1
default: 1
description: Number of images (most models max 1).
seed:
type: integer
description: Reproducibility seed (z-image only).
negative_prompt:
type: string
description: What to avoid (only if the model supports it).
images:
type: array
items:
type: string
format: uri
description: 'Reference/edit image URLs — grok max 1, nanobananapro multiple,
seedream5pro up to 10, gptimage up to 14.
'
options:
type: object
additionalProperties: true
description: 'Image flags: nanobananapro `{ "search": true }` (Google Search
grounding), seedream5pro `{ "output_format": "png" }`.
'
responses:
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: invalid_api_key
BadRequest:
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: 'unsupported_quality (allowed: 1K, 2K)'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Your generation key: varo_gk_xxxxxxxx'
x-refined-from:
- openapi.yaml
- varoriya-com-openapi.yml