Models / Google
Image

Gemini Flash Image 2.5 (Nano Banana)

Fast and efficient image creation with Gemini

About model

Gemini Flash Image 2.5 combines speed with quality, offering efficient image generation for diverse applications.

Quickstart guides
  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    google/flash-image-2.5

    curl -X POST "https://api.together.xyz/v1/images/generations" \
      -H "Authorization: Bearer $TOGETHER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "google/flash-image-2.5",
        "prompt": "Draw an anime style version of this image.",
        "width": 1024,
        "height": 768,
        "steps": 28,
        "n": 1,
        "response_format": "url",
        "image_url": "https://huggingface.co/datasets/patrickvonplaten/random_img/resolve/main/yosemite.png"
      }'
    
    from together import Together
    
    client = Together()
    
    imageCompletion = client.images.generate(
        model="google/flash-image-2.5",
        width=1024,
        height=768,
        steps=28,
        prompt="Draw an anime style version of this image.",
        image_url="https://huggingface.co/datasets/patrickvonplaten/random_img/resolve/main/yosemite.png",
    )
    
    print(imageCompletion.data[0].url)
    
    
    
    import Together from "together-ai";
    
    const together = new Together();
    
    async function main() {
      const response = await together.images.create({
        model: "google/flash-image-2.5",
        width: 1024,
        height: 1024,
        steps: 28,
        prompt: "Draw an anime style version of this image.",
        image_url: "https://huggingface.co/datasets/patrickvonplaten/random_img/resolve/main/yosemite.png",
      });
    
      console.log(response.data[0].url);
    }
    
    main();
    
    
  • Model card

    Architecture:
    • Gemini-based image generation
    • Optimized for efficiency
    • Multimodal capabilities

  • Applications & use cases

    Use Cases:
    • Content creation
    • Visual storytelling
    • Educational materials

Related models
  • Model provider
    Google
  • Type
    Image
  • Main use cases
    Image Generation
  • Deployment
    Serverless
  • Input price

    $0.039 / MP

  • Input modalities
    Text
  • Output modalities
    Image