Files
promptfoo--promptfoo/examples/google-imagen/promptfooconfig-gemini.yaml
T
wehub-resource-sync 0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

68 lines
2.0 KiB
YAML

# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: Gemini native image generation
prompts:
- 'Create a {{quality}} image of {{subject}} with {{style}} aesthetic'
providers:
# Gemini 2.5 Flash - Fast image generation (generally available)
# Note: imageSize is not supported for Gemini 2.5 models
- id: google:gemini-2.5-flash-image
config:
imageAspectRatio: '16:9'
# Gemini 3.1 Flash Image (Nano Banana 2)
# imageSize supports: 512px, 1K, 2K, 4K (this model only; see per-model notes below)
- id: google:gemini-3.1-flash-image
config:
imageAspectRatio: '16:9'
imageSize: '2K'
# Gemini 3.1 Flash-Lite Image (Nano Banana 2 Lite)
# Fastest, lowest-cost tier; 1K resolution only; no Google Search grounding
- id: google:gemini-3.1-flash-lite-image
config:
imageAspectRatio: '16:9'
imageSize: '1K'
# Gemini 3 Pro Image (Nano Banana Pro) — advanced generation, global endpoint only
# imageSize supports: 1K, 2K, 4K
- id: google:gemini-3-pro-image
config:
imageAspectRatio: '16:9'
imageSize: '2K'
defaultTest:
assert:
# Verify that an image was generated (images land in the structured
# providerResponse.images field; output alone is text when the model
# also returns text parts)
- type: javascript
value: '(context.providerResponse?.images?.length ?? 0) > 0'
tests:
- vars:
quality: 'photorealistic'
subject: 'a futuristic spacecraft'
style: 'cinematic sci-fi'
- vars:
quality: 'highly detailed'
subject: 'starry night over a cyberpunk city'
style: 'Van Gogh painting'
- vars:
quality: 'minimalist'
subject: 'a zen garden at sunrise'
style: 'Japanese ink wash'
- vars:
quality: 'vibrant'
subject: 'tropical birds in a rainforest'
style: 'watercolor illustration'
- vars:
quality: 'dramatic'
subject: 'a medieval castle during a thunderstorm'
style: 'fantasy art'