Skip to content
Algo Trade Analytics Docs

Credits & Models

Basic & Pro Plans

The Pine Script AI Editor uses a credit-based system for AI interactions. This page explains how credits work and how to choose the right model for your task.


  1. You send a message → Credits are consumed
  2. AI processes request → Credit cost based on complexity
  3. Response generated → Cost deducted from your balance
ActionUses Credits
✅ Chat messagesYes
✅ Code generationYes
✅ Fix with AIYes
❌ Editing codeNo
❌ ValidationNo
❌ Saving filesNo

Credit cost depends on:

  • Input length — Your message + attached context
  • Output length — AI’s response size
  • Model choice — More capable models cost more

Your remaining credits appear in the chat panel footer:

Credits: 1,234 remaining

Navigate to Account Settings → AI Credits for:

  • Current balance
  • Usage history
  • Purchase options

PackageCreditsPriceBest For
25 credits25$10Small projects, testing
50 credits50$20Regular development
100 credits100$40Heavy daily use
  1. Click Buy Credits in the editor (when balance is low)
  2. Or go to Account Settings → AI Credits
  3. Select a package
  4. Complete checkout

The strongest frontier model for complex reasoning and high-stakes analysis.

Strengths:

  • Best for deeper analysis
  • Strongest at complex trading logic
  • Produces thorough explanations and high-quality suggestions

Best for:

  • Strategy generation
  • Complex debugging
  • Report analysis

Credit cost: High

Balanced default for most interactive editor work.

Strengths:

  • Quick responses
  • Lower credit cost than GPT-5.4
  • Strong coding and editing performance

Best for:

  • Day-to-day chat in the editor
  • Bug fixing
  • Refactoring

Credit cost: Medium

The fastest, cheapest option for lightweight tasks.

Strengths:

  • Lowest latency
  • Lowest credit usage
  • Good for simple requests and quick checks

Best for:

  • Quick syntax questions
  • Short explanations
  • Lightweight follow-ups

Credit cost: Low


TaskRecommended Model
Generate a strategyGPT-5.4
Fix simple errorGPT-5.4 Mini
Explain conceptGPT-5.4 Nano
Complex bugGPT-5.4
Optimize from reportGPT-5.4
Quick syntax questionGPT-5.4 Nano
  1. Find the model dropdown below the chat input
  2. Select your preferred model
  3. All subsequent messages use the new model

  • Be concise — Shorter prompts cost less
  • Share selections — Only attach relevant code, not full scripts
  • Remove old context — Clear stale attachments
  • Simple tasks → GPT-5.4 Nano
  • Standard tasks → GPT-5.4 Mini
  • Complex tasks → GPT-5.4

Instead of:

Message 1: "Add a stop loss"
Message 2: "Add a take profit"
Message 3: "Add a trailing stop"

Try:

"Add risk management:
1. Stop loss at 2% below entry
2. Take profit at 4% above entry
3. Trailing stop of 1.5%"

  • Yellow — Balance getting low
  • Red — Very few credits remaining
  • Error — Cannot process request

When credits are exhausted:

  • AI requests fail with an error message
  • You can still edit and save code
  • Validation continues to work
  • A prompt appears to purchase more

  • Monthly credit allocation included
  • Access to all models
  • Standard support
  • Higher monthly credit allocation
  • Priority processing
  • Extended support

Request TypeApproximate Cost
Short question5-15 credits
Code generation20-50 credits
Full strategy generation50-150 credits
Report analysis100-300 credits
Complex optimization200-500 credits

Actual costs vary based on input/output length and model.

Attached context increases costs:

AttachmentCost Impact
Code selection (small)+5-10 credits
Full script+20-50 credits
Analysis report+50-150 credits
Image+20-40 credits

Purchased credits: Never expire Plan credits: Refresh monthly (don’t accumulate)

Yes, in Account Settings → AI Credits → Usage History

The current request fails, but your conversation and code are preserved. Purchase credits and continue.

Credit purchases are typically non-refundable. Check the terms of service for details.