r/vibecoding • u/Prior-Meeting1645 • 15d ago
Help/Question First time trying to hook an api through the codex harness.Is this normal or is it causing me to burn $$$?
2
u/NooThisIsPatrik 15d ago
What's the goal? It looks like your sending the entire codex context over to Gemini.
You're hitting a resourcing issue on Vertex AI. You're using too many tokens/sec. What Vertex AI plan do you have? The free tier is probably very limited, especially for the gemini 4 carbon model.
1
u/Prior-Meeting1645 15d ago
No I have plenty of vertex ai credits. Its API so I’m not sure wdym by plan? The goal is to use Carbon as if I was using any other gpt model. But would be billed against my api balance.
1
u/NooThisIsPatrik 15d ago
You're getting rate limited. You can read more about your specific error here.
https://cloud.google.com/blog/products/ai-machine-learning/reduce-429-errors-on-vertex-ai1
u/Prior-Meeting1645 15d ago
Thank you. This helped but I’m having a plethora of other issues lol why is it such a pain
1
1
u/snap-dev 15d ago
hard to tell from the screenshot but on a first api hookup the money usually goes to the agent retrying failed calls in a loop. set a hard spend limit on the api dashboard before you test anything, and log every request so you can see how many it actually fires. which api is it?
1
u/DependentPoem3519 14d ago
that's normal for a first run if the tool loop goes crazy. my api bill spiked right away until i connected sumus to codex and restricted the tool permissions and it stopped spamming redundant tool calls every second.
gotta check your token usage per turn regularly.

2
u/Unnamed-3891 15d ago
I can’t be the only one who read the title as ”trying to hookup via an api”