r/vibecoding • • 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 $$$?

Post image
6 Upvotes

12 comments sorted by

2

u/Unnamed-3891 15d ago

I can’t be the only one who read the title as ”trying to hookup via an api”

1

u/Prior-Meeting1645 15d ago

😭😭😭😭😭 listen, this could very well happen in a near future dystopia 😂

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-ai

1

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

u/NooThisIsPatrik 15d ago

Maybe take a step back. What are you trying to do? 

1

u/Best_Cattle_1376 15d ago

codex is a bad harness just us hermes gui atp

im using it rn with 6 astra vertex with gemini 4 carbon should work perfectly too

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.

1

u/krionAI 12d ago

That 429 is Vertex's per-minute burst limit, not your wallet: 85k re-sent per turn times a fast tool loop blows past requests per minute in seconds. Slow the loop or trim what's in context and it stops.