gemini-omni-flash
Google gemini-omni-flash
Use gemini-omni-flash with the compatible aiftopia API below. Prices and groups are synced from newapi.aiftopia.com/pricing when the documentation is built; account groups and availability are shown in the console.
#Pricing
List price
- Per request
- ¥0.086 / request
Price by groupUnit: ¥ / request, list price × group multiplier
| Group | Per request |
|---|---|
| default分组×1默认分组 | ¥0.086 |
| 绘图&视频分组×1需要绘图或视频选这个分组(按次调用,选1k/2k/4k、时长等参数都是一样的价格) | ¥0.086 |
Prices and groups synced at 2026-11-02.
#Video generation
POST
https://newapi.aiftopia.com/v1/videos#Request parameters
| Parameter | Type | Required | Default | Enum / Constraints | Description |
|---|---|---|---|---|---|
prompt | string | Yes | — | — | Text prompt describing the desired video. |
aspect_ratio | string | No | "16:9" | 16:9 | 9:16 | Aspect ratio of the output video. |
duration | integer | No | 5 | 3..10 | Duration of the generated video in seconds. |
image_size | string | array | object | No | — | 1080P | 4K | 720P | 1920x1080 | 1080x1920 | 3840x2160 … | Optional exact output dimensions for gemini-omni-flash; must match resolution and aspect_ratio. |
image_urls | array | No | — | maxItems: 5 | Reference image URLs; maximum 5 items. |
resolution | string | No | "720P" | 720P | 1080P | 4K | Output video resolution tier. |
seed | integer | No | — | — | Random seed for reproducible generation. |
video_url | string | No | — | — | Reference or init video URL. |
video_urls | array | No | — | maxItems: 2 | Reference video URLs; maximum 2 items. |
#Request example
curl -X POST "https://newapi.aiftopia.com/v1/videos" \
-H "Authorization: Bearer $FOXROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
}'import os
import requests
url = "https://newapi.aiftopia.com/v1/videos"
headers = {
"Authorization": "Bearer " + os.environ["FOXROUTER_API_KEY"],
"Content-Type": "application/json",
}
payload = """{
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
}"""
response = requests.post(url, headers=headers, data=payload)
print(response.status_code)
print(response.text)const payload = {
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
};
const response = await fetch("https://newapi.aiftopia.com/v1/videos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FOXROUTER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log(response.status, await response.text());import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String payload = """
{
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
}
""";
HttpRequest.Builder builder = HttpRequest.newBuilder()
.uri(URI.create("https://newapi.aiftopia.com/v1/videos"))
.header("Authorization", "Bearer " + System.getenv("FOXROUTER_API_KEY"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(builder.build(), HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}#Try it online
curl -X POST "https://newapi.aiftopia.com/v1/videos" \
-H "Authorization: Bearer $FOXROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
}'import os
import requests
url = "https://newapi.aiftopia.com/v1/videos"
headers = {
"Authorization": "Bearer " + os.environ["FOXROUTER_API_KEY"],
"Content-Type": "application/json",
}
payload = """{
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
}"""
response = requests.post(url, headers=headers, data=payload)
print(response.status_code)
print(response.text)const payload = {
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
};
const response = await fetch("https://newapi.aiftopia.com/v1/videos", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.FOXROUTER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log(response.status, await response.text());import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String payload = """
{
"model": "gemini-omni-flash",
"prompt": "A red fox running through a snowy pine forest, cinematic lighting.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720P"
}
""";
HttpRequest.Builder builder = HttpRequest.newBuilder()
.uri(URI.create("https://newapi.aiftopia.com/v1/videos"))
.header("Authorization", "Bearer " + System.getenv("FOXROUTER_API_KEY"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(builder.build(), HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}