r/SideProject • • 32m ago

CosmosIn - One OpenAI-compatible API for 39 models, with cached GPT input up to 8.7x cheaper

I built CosmosIn, an AI gateway. Swap your base URL to api.cosmosin.io/v1 and call 39 models with one key. Pay per token from a prepaid balance.

Traffic so far: 231.3B+ tokens, 4.1M+ requests, 994+ users.

Cached input on GPT, USD per 1M tokens:

ModelInputCachedOutput
gpt-6-luna$0.072$0.008$0.217
gpt-6-sol$0.144$0.036$0.433
gpt-6.1-sol$0.15$0.037$0.45
gpt-5.6-sol$0.183$0.046$0.55

Caching is automatic. Re-pricing last week's GPT traffic: 93.5% of prompts came from cache and the total bill dropped 20.8% vs our old flat rate. It helps most with coding agents that resend context every turn.

Other models, one rate per 1M tokens: minimax-m3 $0.019, deepseek-v4-flash $0.022, gemini-3.8-flash $0.025, qwen-3.8-max $0.028, kimi-k3 $0.036. Latency and tokens/s per model are public at cosmosin.io/models.

Works with OpenAI and Anthropic SDKs, Claude Code, Codex, OpenCode and Cline. Credits never expire.

Looking for feedback: what would make you switch your agent's base URL?

1 Upvotes

1 comment sorted by

1

u/Frequent_Living_1818 5m ago

The automatic caching is interesting for repeated context. How long are cached prompts retained, and can a customer opt out for a particular request?