---
title: "codegeex4 - Model Details & Comparison"
description: "codegeex4 from Ollama: capabilities, context limits, pricing, and side-by-side comparisons with alternative models."
url: "https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/ollama/codegeex4"
markdown: "https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/ollama/codegeex4.md"
---

# codegeex4 - Model Details & Comparison

> codegeex4 from Ollama: capabilities, context limits, pricing, and side-by-side comparisons with alternative models.

## Important Links

- [View MCP Gateway](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/resources/mcp-gateway.md)
- [Features](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/#features)
- [Enterprise](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/enterprise)
- [Pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/pricing.md)
- [Docs](https://docs.getbifrost.ai)
- [GitHub](https://github.com/maximhq/bifrost)
- [Book a Demo](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/book-a-demo)

## About codegeex4

codegeex4 is a chat model from Ollama. It accepts up to 33K input tokens.

## Specifications

- **Ollama Provider.**
- **Chat Mode.**
- **32,768 Max Input Tokens.**
- **8,192 Max Output Tokens.**
- **8,192 Max Tokens.**
- **$0.0000 / 1M tokens Input Price.**
- **$0.0000 / 1M tokens Output Price.**

## Models to Compare

Alternatives to codegeex4 with comparable capabilities.

| Model | Provider | Input $/1M | Output $/1M |
| --- | --- | --- | --- |
| ai21.j2-mid-v1 | AWS Bedrock | $12.50 | $12.50 |
| ai21.j2-ultra-v1 | AWS Bedrock | $18.80 | $18.80 |
| ai21.jamba-1-5-large-v1:0 | AWS Bedrock | $2.00 | $8.00 |
| ai21.jamba-1-5-mini-v1:0 | AWS Bedrock | $0.20 | $0.40 |
| ai21.jamba-instruct-v1:0 | AWS Bedrock | $0.50 | $0.70 |

- [Compare ai21.j2-mid-v1](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/ai21.j2-mid-v1.md)
- [Compare ai21.j2-ultra-v1](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/ai21.j2-ultra-v1.md)
- [Compare ai21.jamba-1-5-large-v1:0](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/ai21.jamba-1-5-large-v1-0.md)
- [Compare ai21.jamba-1-5-mini-v1:0](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/ai21.jamba-1-5-mini-v1-0.md)
- [Compare ai21.jamba-instruct-v1:0](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/bedrock/ai21.jamba-instruct-v1-0.md)

## Related Resources

- [Calculate codegeex4 costs](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/ollama/model/codegeex4.md)
- [All Ollama pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator/provider/ollama.md)

## FAQ

### Is codegeex4 cheaper than ai21.j2-mid-v1?

Yes. codegeex4 costs $0.0000 per 1M input tokens compared to ai21.j2-mid-v1's $12.50 per 1M input tokens. Both are chat models.

### What are the best alternatives to codegeex4?

The most comparable chat models to codegeex4 are: ai21.j2-mid-v1 from AWS Bedrock ($12.50/1M input tokens); ai21.j2-ultra-v1 from AWS Bedrock ($18.80/1M input tokens); ai21.jamba-1-5-large-v1:0 from AWS Bedrock ($2.00/1M input tokens); ai21.jamba-1-5-mini-v1:0 from AWS Bedrock ($0.20/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

### How do I calculate codegeex4 costs?

codegeex4 is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $0.0000 and generating 1M output tokens costs $0.0000.

## Related Resources

- [Ollama models](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/provider/ollama.md)
- [Model library](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library.md)
- [LLM cost calculator](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/llm-cost-calculator.md)
- [Docs: Bifrost docs](https://docs.getbifrost.ai)
- [GitHub: maximhq/bifrost](https://github.com/maximhq/bifrost)
- [Pricing: Bifrost pricing](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/pricing.md)
- [Enterprise: Bifrost enterprise](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/enterprise)
- [Book a Demo: Bifrost demo](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/book-a-demo)
- [Resources: Bifrost resources](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/resources.md)

---

*This is a markdown version of [https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/ollama/codegeex4](https://maxim-root-proxy-preview.getmaxim.workers.dev/bifrost/model-library/compare/ollama/codegeex4) for AI/LLM consumption.*
