What to compare with direct provider access
Direct integration can suit an application that needs one provider’s native features. A gateway can help when you evaluate several model families or consolidate key management and usage review. Check the actual service scope before moving traffic.
Rock API’s OpenAI-compatible model base URL is
https://rockapi.ai/v1. Compatibility applies to supported requests and models. Automatic fallback, identical responses, and access to every provider feature require separate verification; they do not follow from having a single URL.
Send a first request as a buyer
- Open the current model catalog and prices. Choose a model that supports chat, copy its exact ID, and confirm access for your account and selected group.
- Create an account, review balance requirements, and create a platform key on the API keys page. Store it server-side as
ROCK_API_KEY. - Set
ROCK_API_MODELto that copied ID. Use the complete SDK base URLhttps://rockapi.ai/v1; curl calls the full endpoint below. - Send a short request before adding tools, images, or streaming.
Verify the response and the charge
Check the HTTP status, response body, selected model, and any returned usage. Find the corresponding dashboard entry and compare its group, usage categories, and settled consumption. The billing guide explains usage-based, per-call, and dynamic charges. A temporary reservation can differ from the final charge. There is no universal discount across models. For401 or 403, inspect credentials and permissions; for 400 or 404, inspect the model, body, and path. For 429, check quota and rate limits before retrying. Preserve a timestamp and request ID when available, with secrets removed. Follow errors and rate limits for diagnosis.
After the small request works, use the migration acceptance guide to test your application’s actual features. Review security and privacy before sending private data through any additional service layer.