跳到主要内容

🍌 Google Nanobanana Image Generation

3 ICper request (Nanobanana)|6 ICper request (Nanobanana Pro)
v1.0 Active

Generate stunning, high-quality images from text descriptions using Google's latest Gemini AI models. Perfect for creating marketing materials, infographics, charts, product visualizations, and artistic content.

Available Models

ModelEndpointCostBest For
Nanobanana (gemini-2.5-flash-image)/v3/image/generation/google/nanobanana/generate3 ICFast generation, simple graphics, quick prototypes
Nanobanana Pro (gemini-3-pro-image-preview)/v3/image/generation/google/nanobananapro/generate8 ICHigh-quality output, complex scenes, detailed artwork, 4K resolution, correct Thai text in images

Try Demo

试用 AI 演示

登录或创建免费账户来使用此 AI 服务演示并探索我们强大的 API。

注册即可获得 100 积分 (IC) 免费赠送!

优惠截止至 2025 年 12 月 31 日

Example Prompts (Click to try)

Key Features

Text-to-Image Generation

Transform your text descriptions into stunning visuals. Simply describe what you want, and the AI will generate it.

High-Fidelity Text Rendering

Accurately generates legible text within images - perfect for infographics, charts, and marketing materials.

Multi-Turn Refinement

Iteratively adjust and refine generated images through conversation - ask for changes and the AI will update accordingly.

Thai Context Optimization

Optimized for Thai-specific content including temples, food, festivals, and cultural elements.

Use Cases

Marketing & Advertising

  • Social media graphics
  • Banner ads and promotional materials
  • Product visualizations
  • Campaign imagery

Business & Data Visualization

  • Infographics and data charts
  • Presentation slides
  • Report illustrations
  • Process diagrams

E-Commerce

  • Product mockups
  • Lifestyle photography
  • Category banners
  • Promotional graphics

Content Creation

  • Blog post illustrations
  • YouTube thumbnails
  • Podcast covers
  • Article headers

Getting Started

  1. Prerequisites

    • An API key from iApp Technology
    • Text prompt describing the image you want to generate
  2. Quick Start

    • Choose between Nanobanana (fast, 3 IC) or Nanobanana Pro (high-quality, 8 IC)
    • Send a POST request with your prompt
    • Receive base64-encoded image in response
  3. Best Practices

    • Be descriptive: "A Thai temple at sunset with golden spires" works better than "temple"
    • Specify style: "minimalist", "photorealistic", "watercolor", etc.
    • Include context: colors, lighting, composition, mood
How to get API Key?

Please visit API Key Management page to view your existing API key or request a new one.

API Endpoints

EndpointMethodDescriptionCost
/v3/image/generation/google/nanobanana/generatePOSTFast image generation (gemini-2.5-flash-image)3 IC per request
/v3/image/generation/google/nanobananapro/generatePOSTHigh-quality image generation (gemini-3-pro-image-preview)8 IC per request

Request Format

Headers

NameTypeDescription
apikeyStringYour iApp API Key
Content-TypeStringapplication/json

Request Body

{
"contents": [
{
"parts": [
{
"text": "Your image description prompt here"
}
]
}
],
"generationConfig": {
"responseModalities": ["TEXT", "IMAGE"]
}
}

Response Format

{
"candidates": [
{
"content": {
"parts": [
{
"inlineData": {
"mimeType": "image/png",
"data": "base64_encoded_image_data..."
}
}
]
}
}
]
}

Code Examples

curl -X POST 'https://api.iapp.co.th/v3/image/generation/google/nanobanana/generate' \
-H 'apikey: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"contents": [
{
"parts": [
{
"text": "Create a beautiful Thai temple at sunset with golden spires"
}
]
}
],
"generationConfig": {
"responseModalities": ["TEXT", "IMAGE"]
}
}'

Prompt Tips

Be Descriptive

Instead of: "a cat" Try: "A fluffy orange tabby cat sitting on a windowsill, warm afternoon sunlight, cozy home interior"

Specify Style

  • "photorealistic" - for photo-like images
  • "watercolor painting" - for artistic styles
  • "minimalist flat design" - for clean graphics
  • "3D rendered" - for dimensional look
  • "vintage poster style" - for retro aesthetics

Include Context

  • Lighting: "golden hour", "studio lighting", "neon glow"
  • Composition: "close-up", "wide angle", "bird's eye view"
  • Mood: "peaceful", "energetic", "dramatic"
  • Colors: "blue and gold color scheme", "pastel colors", "high contrast"

Thai-Specific Prompts

  • Reference Thai landmarks: Wat Arun, Grand Palace, Phi Phi Islands
  • Include Thai elements: lotus flowers, elephants, Thai patterns
  • Mention Thai festivals: Loy Krathong, Songkran, Thai New Year
  • Use Thai food: Tom Yum, Pad Thai, Mango Sticky Rice

Pricing

ModelCostBest For
Nanobanana3 IC per requestQuick prototypes, simple graphics, high volume
Nanobanana Pro8 IC per requestHigh-quality output, complex scenes, professional use, correct Thai text in images

Limitations

  • Maximum prompt length: 32,000 characters
  • Response time: 5-30 seconds depending on complexity
  • Output format: PNG or JPEG (base64 encoded)
  • Content policy: No adult content, violence, or copyrighted material

Security & Compliance

  • GDPR and PDPA compliant
  • No data retention after processing
  • SynthID watermarking on all generated images
  • Content filtering for inappropriate requests