Real-World Pricing Examples

See exactly how credits are spent in different types of conversations. Figures assume Claude 3.5 Sonnet; cheaper models cost fewer credits.

Quick Question

A simple question about a coding concept

68 credits

You

What is the difference between useMemo and useCallback in React?

AI

useMemo and useCallback are both React hooks for optimization, but they serve different purposes: **useMemo** memoizes a computed value... **useCallback** memoizes a function definition...

Code Review

Reviewing a function and suggesting improvements

214 credits

You

Can you review this authentication function and suggest improvements? ```typescript function auth(user, pass) { if(users[user] === pass) return true return false } ```

AI

I see several security concerns with this authentication function: 1. **Plain text passwords** - Never store passwords as plain text... 2. **Timing attacks** - Direct comparison allows timing analysis... 3. **No input validation** - Missing validation on user and pass... Here's an improved version...

Architecture Discussion

Multi-turn conversation about system design

630 credits

You

I'm designing a real-time collaboration feature for our document editor. What architecture would you recommend?

AI

For real-time collaboration, I recommend considering these patterns: **1. Operational Transformation (OT)** - Used by Google Docs... **2. CRDTs (Conflict-free Replicated Data Types)** - Used by Figma...

You

We're leaning towards CRDTs. What's the best way to implement this with our existing PostgreSQL database?

AI

Great choice! Here's how to integrate CRDTs with PostgreSQL: **Hybrid approach:** 1. Use PostgreSQL as the source of truth... 2. Implement Yjs or Automerge for real-time sync...

Picking up past context

Using a short summary of your earlier conversation

208 credits

From your earlier conversation

From your earlier conversation about the authentication system

You

Based on our previous discussion about the authentication system, how should I implement the password reset flow?

AI

Based on your existing auth architecture using JWT tokens and PostgreSQL, here's how to implement password reset: **1. Generate Reset Token** ```typescript const resetToken = crypto.randomBytes(32).toString("hex") ``` **2. Store with expiry**...

Knowledge reuse savings: Reusing a short summary instead of repeating the whole conversation saved about 53 credits on this message.

Model Pricing

Each message costs credits based on the AI model used, plus a small platform fee. Cheaper models cost fewer credits. ($1 = 10,000 credits.)

ModelInput CostOutput CostTypical message
Claude 3.5 Sonnet$3.00/M tokens$15.00/M tokens~100-400 credits
GPT-4 Turbo$10.00/M tokens$30.00/M tokens~250-800 credits
Claude 3 Haiku$0.25/M tokens$1.25/M tokens~15-50 credits