gemini-3.1-flash-lite-image
Provider list prices: no platform markup, pay-as-you-go. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing.
Use gemini-3.1-flash-lite-image in 30 seconds
OpenAI-compatible: swap the base_url, keep your SDK. POST /v1/images/generations
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.images.generate(
model="gemini-3.1-flash-lite-image",
prompt="a watercolor lighthouse at dawn",
size="1024x1024",
)
print(resp.data[0].b64_json[:80])import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.images.generate({
model: "gemini-3.1-flash-lite-image",
prompt: "a watercolor lighthouse at dawn",
size: "1024x1024",
});
console.log(resp.data?.[0]?.b64_json?.slice(0, 80));curl https://synthorai.io/v1/images/generations \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-lite-image",
"prompt": "a watercolor lighthouse at dawn",
"size": "1024x1024"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Images.Generate(context.TODO(), openai.ImageGenerateParams{
Model: "gemini-3.1-flash-lite-image",
Prompt: "a watercolor lighthouse at dawn",
Size: "1024x1024",
})
fmt.Println(resp.Data[0].B64JSON[:80])
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.images.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ImagesResponse resp = client.images().generate(
ImageGenerateParams.builder()
.model("gemini-3.1-flash-lite-image")
.prompt("a watercolor lighthouse at dawn")
.size("1024x1024")
.build());
System.out.println(resp.data().orElseThrow().get(0).b64Json().orElseThrow().substring(0, 80));About gemini-3.1-flash-lite-image
Gemini 3.1 Flash-Lite Image, marketed as Nano Banana Lite, is Google's ultra-low-latency image generation and editing model, with the official page citing sub-2-second end-to-end latency for high-volume interactive applications.
- It handles interleaved text-and-image prompts and excels at localized edits such as color swaps, sticker generation, and background adjustments, while keeping character consistency on par with the original Nano Banana.
- Output is optimized for 1K resolution across 14 aspect ratios, and every image carries SynthID and C2PA watermarking.
- Synthorai exposes it through the same OpenAI-compatible API used for its text models.
Specs & limits
| Max output (vendor spec) | 4,096 |
| Modalities | text + image → image + text |
| Features | vision · tools · batch · reasoning |
| Image capabilities | 1K (1024px) output only; 14 aspect ratios; interleaved generation and editing with fast multi-turn local edits; sub-2s end-to-end latency; SynthID + C2PA watermarking always on |
| Notable | Optimized for ultra-low-latency, high-volume interactive use; caching and structured outputs not supported; thinking minimal/high. |
FAQ
Is the gemini-3.1-flash-lite-image API free to try?
Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. That's enough to try gemini-3.1-flash-lite-image against your real workload before adding a payment method.
What is gemini-3.1-flash-lite-image best at?
Sub-2-second end-to-end latency, plus excels at localized edits and stickers and SynthID and C2PA watermarking on every image. See the About section for the full picture from the vendor's own release notes.
How much does gemini-3.1-flash-lite-image cost?
gemini-3.1-flash-lite-image costs $0.25 per million input tokens and $30 per million output tokens on Synthorai. That is the provider's list price, with no platform markup.
How do I generate images with the gemini-3.1-flash-lite-image API?
POST to /v1/images/generations on Synthorai with model="gemini-3.1-flash-lite-image". It follows the OpenAI images API shape, so no vendor SDK is needed.
How do I get access to gemini-3.1-flash-lite-image?
Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="gemini-3.1-flash-lite-image", and you're done. One API key covers every model on the gateway.