CODEXIS AI
CODEXIS AI guideCredits and pricing

4. Model examples of operations

The calculations below assume CDX-GPT-MAIN in the Standard class with standard context and CDX-EXTRACT in Standard mode.

Credit consumption does not depend solely on the length of the response. While working, the AI has the entire content of CODEXIS at its disposal and, based on your request and the assistant's instructions, browses and reads as many source materials as it needs to be sufficiently certain that it has found exactly what was requested.

This leads to a simple rule: the more precise the request, the less searching, fewer operations and usually a cheaper output. Conversely, a broad or vague request tends to be more expensive, because the model has to go through more content. Formulating a request takes some experience; the Prompting guide for CODEXIS AI is also helpful.

4.1 Case law research (58,635 credits / operation)

Typical course: the EXTRACT model goes through thousands of pages of case law (a large cached context of court decisions), and the MAIN model synthesizes the output (~50,000 output tokens, i.e. roughly 35+ pages of analysis).

Breakdown of tokens and credits per operation:

ModelTypeTokensCredits
CDX-GPT-MAINinput200 00012 500
input cached2 500 00015 625
output50 00018 750
subtotal2 750 00046 875
CDX-EXTRACTinput2 240 0005 600
input cached2 240 000560
output560 0005 600
subtotal5 040 00011 760
TOTAL7 790 00058 635

MAIN token ratio (in:cached:out) = 4 : 50 : 1 EXTRACT token ratio (in:cached:out) = 4 : 4 : 1

Less extraction work, a shorter output (~15,000 output tokens, i.e. roughly 10 pages).

Breakdown of tokens and credits per operation:

ModelTypeTokensCredits
CDX-GPT-MAINinput60 0003 750
input cached750 0004 688
output15 0005 625
subtotal825 00014 063
CDX-EXTRACTinput640 0001 600
input cached640 000160
output160 0001 600
subtotal1 440 0003 360
TOTAL2 265 00017 423

On this page