gemini-3.1-flash-lite-image API de imagem com IA
Google oferece gemini-3.1-flash-lite-image para geração de imagens. A Flatkey roteia o modelo por /v1/images/generations. $0.25/$1.5 per 1M tokens.
Saída
Prévia
Resumo da solicitação
- Endpoint da API
- POST /v1beta/models/gemini-3.1-flash-lite-image:generateContent
- ID do modelo
- gemini-3.1-flash-lite-image
- Proporção
- 1:1
- Resolução
- 1K
Somente prévia. Entre para enviar esta solicitação à Flatkey.
{
"model": "gemini-3.1-flash-lite-image",
"contents": [
{
"role": "user",
"parts": [
{
"text": "Creative direction: Create a 10-by-10 numbered storyboard contact sheet containing 100 panels from a period Chinese drama. Show recurring male and female characters in historical robes across courtyards, interiors, markets, meals, letters, costume changes, and night scenes. Keep faces, wardrobe continuity, props, and screen direction consistent from panel to panel; use warm lantern light, varied shot sizes, and small readable panel numbers.\n\nComposition, material and finish: Use exactly ten rows and ten columns with uniform gutters and sequential panel numbers 1–100. Organize each row as a readable scene progression; alternate wide, medium and detail views without changing character identity. Keep garments tied to each scene and preserve eyelines between adjacent shots. Prioritize readable silhouettes at contact-sheet scale; avoid merged panels, repeated numbers, modern props and watermarks."
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
],
"imageConfig": {
"aspectRatio": "1:1",
"imageSize": "1K"
}
}
}Desempenho da API
gemini-3.1-flash-lite-image Confiabilidade e disponibilidade da API
A telemetria de solicitações da Flatkey para gemini-3.1-flash-lite-image aparecerá aqui quando houver tráfego de produção suficiente.
Atividade da API
gemini-3.1-flash-lite-image Uso e atividade de solicitações da API
Acompanhe o volume de solicitações e a atividade de inferência bem-sucedida de gemini-3.1-flash-lite-image no período mais recente.
gemini-3.1-flash-lite-image preços
gemini-3.1-flash-lite-image Preços e cobrança da API
Os preços abaixo são calculados com os dados de preços da Flatkey para este modelo e os grupos visíveis retornados pela nossa API de preços.
Adicionar créditos
Use o mesmo saldo e a mesma chave de API Flatkey para modelos de imagem, vídeo, áudio e texto.
- Tipo de modelo
- Texto para imagem
- API
- /v1beta/models/gemini-3.1-flash-lite-image:generateContent
- Base de cobrança
- 1M tokens
- Saídas
- 1
gemini-3.1-flash-lite-image gerador de imagens por IA e API: principais capacidades
A rota gemini-3.1-flash-lite-image de Google aceita texto · imagem. Categorias do catálogo: Marketing.
gemini-3.1-flash-lite-image para geração de imagens
Converta um briefing escrito em resultados de geração de imagens por /v1/images/generations.
Fluxos com referência de gemini-3.1-flash-lite-image
Use uma referência existente quando a rota gemini-3.1-flash-lite-image aceitar mídia ou contexto de referência.
Variantes de canal de gemini-3.1-flash-lite-image
Adapte uma ideia às variantes necessárias para sua loja, campanha ou fluxo de conteúdo.
Entrega de produção de gemini-3.1-flash-lite-image
Leve um resultado aprovado da exploração do prompt para um fluxo de geração Flatkey repetível.
Comparar
gemini-3.1-flash-lite-image Comparação de API: capacidades e acesso
Compare os fatos do catálogo de gemini-3.1-flash-lite-image com a referência da geração anterior antes de alterar sua integração.
| Capacidade | Geração anterior | gemini-3.1-flash-lite-image |
|---|---|---|
| Provedor | Não verificado neste instantâneo do catálogo | |
| Modalidades | Não verificado neste instantâneo do catálogo | texto · imagem |
| Contexto | Não verificado neste instantâneo do catálogo | A janela de contexto não está listada no catálogo |
| Endpoint da API | Não verificado neste instantâneo do catálogo | /v1/images/generations |
| Cobrança | Não verificado neste instantâneo do catálogo | $0.25/$1.5 per 1M tokens |
Escolha a solicitação certa antes de integrar
Confira fluxos, custo atual e o contrato exato de parâmetros da Flatkey.
Calculada com a configuração atual e a tarifa do catálogo quando há preço unitário fixo.
- Configuração atual
- 1×
- Tarifa ao vivo
- $0.03
- Solicitação estimada
- Preço por uso
A cobrança final depende da solicitação e do grupo; preços por tokens ou faixas não viram uma estimativa fixa.
Fluxos e Model ID
Use apenas fluxos disponíveis. A Flatkey mantém um ID público e o corpo escolhe a entrada.
Texto para imagem
Gere uma imagem a partir de texto.
- ID do modelo
gemini-3.1-flash-lite-image- Endpoint
/v1beta/models/gemini-3.1-flash-lite-image:generateContent
Imagem guiada por referência
Use referências para editar ou variar imagens.
- ID do modelo
gemini-3.1-flash-lite-image- Endpoint
/v1beta/models/gemini-3.1-flash-lite-image:generateContent
Compatibilidade de parâmetros
Valores da mesma configuração usada no Playground.
aspect_ratioProporção1:1 · 2:3 · 3:2 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 16:9 · 21:9
Padrão: 1:1image_sizeTamanho1K · 2K · 4K
Padrão: 1KimageLimite de referências4 arquivos
Endpoint: /v1beta/models/gemini-3.1-flash-lite-image:generateContentDo primeiro teste à produção
Use o mesmo contrato no Playground e na API e trate validação, saldo, estado e resultado.
Ciclo da solicitação
- 1
Validar modelo, prompt, referências e saída.
- 2
Enviar a solicitação de imagem.
- 3
Ler o resultado ou tarefa assíncrona.
- 4
Armazenar arquivo e metadados.
Verificações de produção
Bloqueie valores e referências incompatíveis.
Trate chave, saldo, limites e grupo separadamente.
Identifique o prompt ou mídia a substituir.
Guarde o task ID, limite tentativas e não trate timeout como sucesso.
Biblioteca de prompts
Exemplos de prompts de gemini-3.1-flash-lite-image para geração de imagens
Comece com um prompt de gemini-3.1-flash-lite-image para geração de imagens e ajuste os campos de solicitação exibidos no playground.
Gerado com Image 2
Scene: A 16:9 whimsical game UI shows a small white robot standing in a floating-island garden while holding a green plant blaster or seed tool. A circular equipment wheel surrounds the selected tool, with tiny garden plots, paths, clouds, and floating terrain behind. Lock the robot pose, tool shape, wheel position, and bright pastel lighting for an equipment-switch frame. No readable words, logos, invented stats, or watermark. Composition and rendering: Deliver one 16:9 game-interface keyframe. Separate the character, held equipment and HUD into clear depth layers; keep slot spacing and icon scale consistent, with the selected item visually dominant. Preserve the scene-specific game art style. Let material edges catch the existing light without letting interface glow obscure the silhouette. Keep all equipment fully inside the frame. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Gerado com Image 2
Scene: An aerial broadcast-style road-race frame follows a cyclist and a motorcycle on a winding coastal road above blue water and steep cliffs. Leave an abstract lower-third area free of readable text and keep the road curve, vehicle spacing, sea horizon, and sun direction consistent. No real teams, athletes, logos, or watermark. Composition and rendering: Deliver one 16:9 broadcast still at the decisive instant. Use coherent perspective for the playing surface and equipment, readable separation between competitors, and a softer crowd behind the action. Keep the principal subject sharp, with directional blur limited to fast extremities and spray. Preserve the specified broadcast angle and reserve overlay areas clear of the action. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Gerado com Image 2
Scene: A tall matte black bottle stands on a sunlit mountain rock with a hazy valley and layered peaks behind it. Use a warm sunrise rim on the right and soft atmospheric depth while preserving the plain cap, bottle silhouette, rock texture, and empty sky for later copy. No readable branding, extra products, hands, or watermark. Composition and rendering: Deliver one 16:9 commercial product still. Keep the complete product silhouette inside generous crop-safe margins. Resolve edges, seams and material transitions precisely; shape highlights to describe volume without clipping bright surfaces or crushing dark details. Align reflections with the object and light source. Retain the stated camera angle and existing negative space; add no decorative props. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Gerado com Image 2
Scene: At sunset on a sea cliff, a lone traveler stands in silhouette holding a helmet while a red warning flag fills the near right foreground. The ocean, distant headland, lighthouse, and orange-to-blue sky form a wide establishing frame. Keep the traveler orientation, flag motion direction, horizon, and light transition stable for storyboard use. No readable signs, logos, or watermark. Composition and rendering: Deliver one 16:9 storyboard keyframe, not a collage or an action sequence. Separate foreground, character plane and background through the existing light and atmospheric depth. Keep the stated pose and eyelines readable, and retain environmental landmarks for continuity. Match the described photographic, illustrated or puppet medium; give fabric and surfaces texture appropriate to that medium. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Gerado com Image 2
Scene: In a mint laundry room, a surprised man in a coral sweatshirt leans back as a turquoise laundry basket throws a colorful cloud of striped socks into the air. Washing machines, folded towels, and clean daylight establish the setting. Preserve the basket tilt, sock trajectories, body pose, and safe spacing for a physical-comedy frame; no injury, readable text, logos, or watermark. Composition and rendering: Deliver one 16:9 physical-comedy still at the described instant. Make the cause of the gag readable through body balance, grip and object spacing. Separate the reaction from the airborne props; retain believable gravity and contact points. Keep the face and important props sharp, with only restrained directional blur on fast edges. Preserve the stated lighting and room or stage layout. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Scene: A lightly colorized vintage schoolyard photograph shows children in period sweaters and skirts playing jump rope in front of a brick building. Restore the worn border, faded colors, rope arc, clothing details, and original wide framing without introducing modern objects. No readable signs, logos, captions, or watermark. Composition and restoration: Deliver one 16:9 archival-style still. Preserve the original framing, period-specific construction and restrained tonal range; retain monochrome, sepia or faded color as described. Recover modest detail in faces, clothing and architecture without synthetic sharpening. Keep fine grain and authentic aging consistent across the frame; repair damage without replacing historical features. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.
Por que usar a API gemini-3.1-flash-lite-image
Por que usar gemini-3.1-flash-lite-image pela Flatkey?
Use um único gateway para gemini-3.1-flash-lite-image, controles da conta e o restante do catálogo de modelos.
gemini-3.1-flash-lite-image em uma API
Mantenha o ID do modelo e o endpoint de gemini-3.1-flash-lite-image explícitos usando a mesma chave Flatkey das demais cargas.
Preços do catálogo ao vivo
Veja as dimensões de cobrança atuais de gemini-3.1-flash-lite-image antes do envio e confirme a estimativa final na conta.
Transição prática de modelo
Teste um prompt de gemini-3.1-flash-lite-image no playground público e leve as mesmas configurações para uma integração autenticada.
Controles de uso e roteamento
Centralize chaves, cotas e roteamento de gemini-3.1-flash-lite-image sem mudar o fluxo da aplicação voltado ao provedor.
API
gemini-3.1-flash-lite-image API
Quatro formas de entrar, com a mesma chave e catálogo. Escolha uma para ver um exemplo executável.
curl https://router.flatkey.ai/v1beta/models/gemini-3.1-flash-lite-image:generateContent \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-***" \ -d '{"model":"gemini-3.1-flash-lite-image","contents":[{"role":"user","parts":[{"text":"Crie com gemini-3.1-flash-lite-image uma imagem de produto de alta qualidade: composição limpa, iluminação precisa, foco forte no produto e detalhes realistas."}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}}}'
Perguntas frequentes
gemini-3.1-flash-lite-image API
perguntas sobre preço, recursos e uso
Respostas sobre preços, capacidades, endpoints e limites do catálogo de gemini-3.1-flash-lite-image.





