Skip to main content
POST
Gemini Omni 1.2 Flash

Headers

Authorization
string

Body

application/json

Gemini Omni 1.2 Flash text-to-video, image-to-video (first frame, optional last frame) and reference-image video.

Pricing — per second of generated video:

  • 360p — 1.3 tokens ($0.026)
  • 720p — 3.9 tokens ($0.078)
  • 1080p — 5.876 tokens ($0.11752)
  • 4k — 11.752 tokens ($0.23504)
model
enum<string>
required

Model name. Must be gemini-omni-1-2-flash on this page.

Available options:
gemini-omni-1-2-flash
prompt
string
required

Text prompt describing the scene, motion, camera and sound. Required (also when images are provided), up to 3000 characters. With image_urls, describe how the references should be used.

Maximum string length: 3000
image_url
string<uri>

Optional first-frame image URL. If provided, the video starts from this image. Cannot be combined with image_urls.

image_end_url
string<uri>

Optional last-frame image URL; the model interpolates from the first frame to this one. Requires image_url. With a last frame, duration can be at most 10.

image_urls
string<uri>[]

Optional reference image URLs (1-10), e.g. characters, products or style. They guide the video but are not used as exact frames. Order is kept. Cannot be combined with image_url / image_end_url.

Maximum array length: 10
duration
integer
default:10

Video duration in seconds, any integer from 3 to 15. At most 10 when image_end_url is provided.

Required range: 3 <= x <= 15
resolution
enum<string>
default:720p

Output resolution. 1080p and 4k are upscaled; 2160p is accepted as 4k. quality is accepted as a compatible alias.

Available options:
360p,
720p,
1080p,
4k
ratio
enum<string>
default:16:9

Aspect ratio. aspect_ratio is accepted as a compatible alias.

Available options:
16:9,
9:16
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required