PaLM 2 Code Chat 32k

Google chatcode Free

API ID: google/palm-2-codechat-bison-32k

Input Price
Free
/1M tokens
Output Price
Free
/1M tokens

About PaLM 2 Code Chat 32k

PaLM 2 is Google's previous-generation language model, featuring strong multilingual and reasoning capabilities. While superseded by Gemini, PaLM 2 remains available through certain Google services. The model excels at translation, coding, and mathematical reasoning tasks. PaLM 2 introduced significant improvements in efficiency and capability over the original PaLM. It's particularly valuable for applications with existing PaLM 2 integrations. For organizations maintaining legacy Google AI integrations, PaLM 2 continues to provide reliable performance.

๐Ÿ†
Price Ranking
#1 lowest price among 950 Chat models โ€” Top 20% cheapest!

Model Specifications

Context Length
33k
Max Output
โ€”
Release Date
2023-11-03
Capabilities
chat code
Input Modalities
text
Output Modalities
text

Best For

  • Code generation, debugging, code review, refactoring
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)
๐ŸŽ‰

This model is completely free!

No token costs - use it without worrying about API bills.

Estimate Token Usage

Google Model Lineup

Compare all models from Google to find the best fit

Model Input Output Context Capabilities
PaLM 2 Code Chat 32k Current Free Free 33k chat code
Gemma 3n 4B Free Free 33k chat tool_use
Gemini 2.5 Flash Image Preview (Nano Banana) Free Free 33k chat vision image_gen
Gemma 3n 2B (free) Free Free 8k chat tool_use
Gemma 1 2B Free Free 8k chat
Gemma 1 2B Free Free 8k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Meta Llama 3.2 3B Instruct
Input: Free
Output: Free
Context: 80k
Alibaba Qwen Qwen2.5-VL 7B Instruct
Input: Free
Output: Free
Context: 33k
ByteDance Seedream 4.5
Input: Free
Output: Free
Context: 4k
Black Forest Labs FLUX.2 Max
Input: Free
Output: Free
Context: 47k

๐Ÿš€ Quick Start

Get started with PaLM 2 Code Chat 32k API

Google AI Python SDK
import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("palm-2-codechat-bison-32k")

response = model.generate_content("Hello!")
print(response.text)