FAQ
Answers to common questions about Rock API — pricing, OpenAI compatibility, models, providers, and how it compares to alternatives like OpenRouter, LiteLLM, and Portkey.What is Rock API?
Rock API is a unified AI API gateway that provides OpenAI-compatible access to 50 models from 3 providers (OpenAI, Anthropic, and Google) at 0.7x standard pricing — a flat 30% discount on every API call. Instead of managing separate accounts, API keys, and billing with each provider, developers use one base URL (https://rockapi.ai/v1), one API key, and one prepaid balance to access all models.
Are Rock API, RockAPI, rockapi, RockAI, and rock ai the same?
The official product name is Rock API, and the official dashboard domain is rockapi.ai. Developers often search for the same platform with compact or lowercase spellings such as RockAPI, rockapi, and rock api. Some AI-related searches also use RockAI or rock ai; if you are looking for the OpenAI-compatible AI API gateway atrockapi.ai, you are in the right place. See RockAPI (Rock API) for the brand and domain overview.
How does Rock API work?
Rock API sits between your application and the upstream model providers. When you send a request tohttps://rockapi.ai/v1, Rock API authenticates you, routes the request to the correct provider (OpenAI, Anthropic, or Google), and streams the response back. You are charged at 0.7x the provider’s standard rate. Your application code stays identical to the OpenAI SDK format — only the base_url changes.
What models does Rock API support?
Rock API supports 50 models across three providers:
All models are accessible through the same OpenAI-compatible API format. See Models and Providers for the full list.
How much does Rock API cost?
Rock API charges 0.7x the standard provider price for every model — a guaranteed 30% savings. There are no monthly fees, no minimum commitments, and no markup. You pay only for tokens consumed.
A team spending 300/month ($3,600/year) by switching to Rock API.
Is Rock API compatible with the OpenAI SDK?
Yes. Rock API is a drop-in replacement for the OpenAI SDK. You change only thebase_url parameter — all other code (messages, streaming, function calling, tool use) works identically. This applies to the Python SDK, Node.js SDK, curl, and any OpenAI-compatible client.
How is Rock API different from OpenRouter?
Rock API and OpenRouter both provide unified AI API access, but they differ in pricing strategy and focus:
Choose Rock API if you want guaranteed savings on the top-tier models you already use. Choose OpenRouter if you need access to niche or open-source models.
How is Rock API different from LiteLLM?
LiteLLM is an open-source proxy that you self-host. Rock API is a managed service with built-in cost savings:
Choose Rock API for instant savings without DevOps. Choose LiteLLM if you need full routing control inside your own VPC.
Does Rock API support streaming?
Yes. Rock API supports server-sent events (SSE) streaming for all models, including OpenAI, Anthropic, and Google models. Setstream: true in your request and Rock API streams tokens as they are generated by the upstream provider. Streaming responses use the same OpenAI-compatible format (data: [DONE] termination).
Does Rock API support cached tokens?
Yes. Rock API passes through cached token pricing from providers that support it (OpenAI and Anthropic). When a provider returns a cache hit, Rock API charges you the discounted cached-token rate at 0.7x — so you benefit from both the cache discount and Rock API’s 30% savings. Theusage object in the response includes cached_tokens when applicable.
How do I get started with Rock API?
Getting started takes less than 2 minutes:- Sign up at rockapi.ai/sign-up
- Add balance — prepaid, pay only for what you use
- Generate an API key at rockapi.ai/keys
- Update your code — change
base_urltohttps://rockapi.ai/v1
What payment methods does Rock API accept?
Rock API uses a prepaid balance model. You add funds to your account before making API calls, and token costs are deducted from your balance in real time. This gives you full spending control with no surprise invoices. Balance top-ups are available through the dashboard at rockapi.ai.What happens if my balance runs out?
If your prepaid balance reaches zero, API requests will return an error until you add more funds. Rock API does not allow negative balances or overage charges. You can monitor your balance and usage in real time through the dashboard, and set up low-balance alerts to avoid interruptions.Is my data secure with Rock API?
Rock API does not store or log your prompts or completions. Requests are forwarded to upstream providers in real time and responses are streamed back to you. Rock API retains only metadata for billing (token counts, model used, timestamp). See Security and Privacy for full details.Start building
Create an account, generate an API key, and start saving 30% on 50 AI models in under 2 minutes.
