Have you tried 4.1 flash? I'm using it to do machine learning in an audiovisual data pipeline, I basically do nothing, I only provide labeled data and it fine-tunes the algos, thresholds and so on in a loop, and publishes the evidences in markdown tables, creates images illustrating the clusters it found (I never asked for this!), all by itself. I was late and skeptical of the AI assisted coding but this is truly amazing.
And what absolutely crazy is that I used 2.4B tokens this month and it cost me $1.7 (w/ 99.4% cache hit) of my $10 sub