Skip to main content
POST
Create Generation

Request

string
required
Bearer YOUR_TOKEN
string
required
The model slug to use. See Models for all available slugs.Video models: grok-video-1, veo-3.1-fast, sora-2, sora-2-pro, seedance-2.0, seedance-2.0-fastImage models: gpt-4o-image, seedream-4.5, seedream-5.0-lite, nano-banana-pro, nano-banana-2
string
required
The text prompt describing what to generate. Maximum 2,000 characters.
string
The output aspect ratio. Defaults to the model’s first supported ratio.Common values: 16:9, 9:16, 1:1, 4:3
string
Output resolution. Only applicable to models that support multiple resolutions.Video: 480p, 720p, 1080p, 4k (model-dependent)Image: 0.5K, 1K, 2K, 4K (model-dependent)
Resolution multipliers increase the price. A 4k video on Veo 3.1 Fast costs 3× the base price. Seedance 2.0 720p costs ~2.15× the 480p rate. See Pricing.
integer
Duration in seconds. Only for video models. Accepted values depend on the model:
  • grok-video-1: 6–30 seconds (billed per second at $0.03/s)
  • sora-2: 10 or 15 seconds
  • sora-2-pro: 10, 15, or 25 seconds
  • seedance-2.0: 4–15 seconds (billed per second at 0.132/sfor480p,0.132/s for 480p, 0.284/s for 720p)
  • seedance-2.0-fast: 4–15 seconds (billed per second at 0.1056/sfor480p,0.1056/s for 480p, 0.2288/s for 720p)
Seedance models have reduced pricing when a reference video is provided via video_urls. See the video_urls parameter below.
string
Generation mode. Model-specific:
  • grok-video-1: custom, normal, fun, spicy
  • veo-3.1-fast: frame (image-to-video), ingredient (reference images)
string
Visual style preset. Only for sora-2 and sora-2-pro.Values: none, thanksgiving, comic, news, selfie, nostalgic, anime
array
Array of publicly accessible image URLs to use as input. Maximum count is model-dependent (up to 14 for image models).For video models, the first URL is used as the first frame. Additional images are treated as reference images.
array
Array of publicly accessible video URLs to use as reference input. Up to 3 URLs. Seedance 2.0 / 2.0 Fast only.When provided, the generation uses the reference video to guide output, and the price is discounted:Supported formats: MP4, WebM, MOV.
array
Array of publicly accessible audio URLs to use as reference input. Up to 3 URLs. Seedance 2.0 / 2.0 Fast only.Supported formats: MP3, WAV, M4A, OGG.
boolean
Whether to add a watermark to the output. Defaults to false. Only for sora-2 and sora-2-pro.
boolean
Whether the generation should be private. Only for sora-2 and sora-2-pro.

Response 201 Created

object
number
The exact USD amount charged for this generation.

Error Responses

Top up at veogen.studio/billing.

Examples