Tameta Textile AI

Transforming Your Fabric Designs...

0%

Documentation & Guides

Everything you need to know to get started with Tameta Textile AI

Complete Technical Workflow

Step-by-Step Process:

1

User Input (Frontend)

You upload a fabric image and select garment type (dress, kurta, shirt, etc.). The system constructs a detailed prompt based on your selections.

2

Prompt Generation

A specialized prompt is automatically created: "Create a [garment type] using this fabric pattern. The design should be [style details]..."

3

Backend Processing

Your fabric image and prompt are securely sent to our Node.js/Python backend server. The server validates inputs and prepares the API request.

4

Google Gemini API Call

Backend forwards the fabric image and prompt to Google's Gemini multimodal AI model using their official API with your API key.

5

AI Image Generation

Gemini AI analyzes the fabric pattern, understands the prompt, and generates a realistic garment design with the fabric applied to the selected style.

6

Response & Display

The generated image is returned to backend, then sent to your browser. You can now view, download, or regenerate with different options.

Security Note: All data transfers are encrypted, and your images are processed securely. API keys are never exposed to the frontend.

Google Gemini API - Models & Pricing

Gemini 2.5 Models - Pricing (Pay-as-you-go):

πŸ’‘ Free tier available with usage limits. Pricing shown for paid tier. 1 USD β‰ˆ β‚Ή85 INR (approx)

Gemini 2.5 Flash-Lite

πŸ’° Cheapest

Fast, small, and cheapest - Quick sketches & thumbnail drafts

Input:
$0.10 / 1M tokens
β‰ˆ β‚Ή8.50 / 1M tokens
Output:
$0.40 / 1M tokens
β‰ˆ β‚Ή34 / 1M tokens
Context: 1M tokens

Gemini 2.5 Flash

⭐ Recommended

Balanced speed & quality - Perfect for textile, fashion, and home dΓ©cor designs

Input:
$0.30 / 1M tokens
β‰ˆ β‚Ή25.50 / 1M tokens
Output:
$2.50 / 1M tokens
β‰ˆ β‚Ή212.50 / 1M tokens
Context: 2M tokens

Gemini 2.5 Pro

πŸ† Best Quality

High-end multimodal model - HD or photorealistic image generation

Input:
$1.25 / 1M tokens
β‰ˆ β‚Ή106.25 / 1M tokens
Output:
$10.00 / 1M tokens
β‰ˆ β‚Ή850 / 1M tokens
Context: 2M tokens

πŸ“Έ Image Generation (Output)

Per 1024Γ—1024 image (β‰ˆ1,290 tokens)

β‰ˆ $0.03 - $0.05 per image
β‰ˆ β‚Ή2.55 - β‚Ή4.25 per image

Backend API Implementation:

import
{ GoogleGenerativeAI }
from
'@google/generative-ai'
;

const
genAI =
new
GoogleGenerativeAI
(
process.env.GEMINI_API_KEY
);
const
model = genAI.
getGenerativeModel
(({
model:
'gemini-2.5-flash'
});


const
prompt =
`Create a beautiful dress using this fabric pattern`
;
const
imagePart = {

inlineData: {

data: fabricImageBase64,

mimeType:
'image/jpeg'

}

};


const
result =
await
model.
generateContent
([prompt, imagePart]);
const
response = result.response.
text
();

Get Your API Key:

  1. 1.Visit Google AI Studio
  2. 2.Sign in with your Google account
  3. 3.Click "Get API Key" and create a new key
  4. 4.Add the key to your backend environment variables as GEMINI_API_KEY

Model Selection Guide:

GoalRecommended ModelWhy
Fast idea prototypingGemini 2.5 Flash-LiteGenerates textile previews quickly & cheaply
Balanced quality + costGemini 2.5 FlashPerfect for POC or catalog generation
High-detail photo realismGemini 2.5 ProFinal product mockups or marketing visuals

πŸ’‘ Production Recommendation: Use Gemini 2.5 Flash for production - it offers the best balance of quality and cost for textile/fashion design generation. For high-volume testing, start with Flash-Lite.

How It Works - AI Technology

  • β€’πŸ€– Powered by Google Gemini API - Advanced multimodal AI model
  • β€’πŸ“ Prompts are crafted based on your garment type and fabric selection
  • β€’πŸ”„ Frontend sends your images and prompt to our secure backend server
  • β€’β˜οΈ Backend processes and forwards the request to Google Gemini API
  • β€’πŸŽ¨ Gemini AI model analyzes the fabric pattern and generates the design
  • β€’βš‘ Generated images are returned through backend to your browser
  • β€’πŸ’Ύ Results are stored securely and can be downloaded or shared

Getting Started

  • β€’Sign up with your Google account
  • β€’Upload your first fabric pattern
  • β€’Select a person image for try-on
  • β€’Choose garment type and options
  • β€’Generate and download your visualization

Image Requirements

  • β€’Person images: Clear, front-facing photos work best
  • β€’Fabric images: High-resolution patterns (min 1000x1000px)
  • β€’Supported formats: JPG, PNG, WebP
  • β€’Maximum file size: 10MB per image
  • β€’Avoid blurry or low-light images

Best Practices

  • β€’Use consistent lighting in person photos
  • β€’Ensure fabric patterns are properly aligned
  • β€’Test different garment types for best results
  • β€’Save successful combinations to history
  • β€’Use the prompt helper for better results

Advanced Features

  • β€’Custom garment templates (Pro plan)
  • β€’API access for bulk processing
  • β€’High-resolution exports up to 4K
  • β€’Batch processing multiple designs
  • β€’Integration with design tools