Skip to main content
Once you have created an API key, use it to authenticate requests to RamaLama Cloud. Your API key provisions access to a variety of hosted API gateways, allowing you to access models from multiple providers through a unified interface.

Authentication

Include your API key in the Authorization header with the Bearer prefix:

Accessing Models

Models are referenced using the format provider/model-name. This allows you to call models from different providers through the same API endpoint.

Example: Calling GPT-5.1

Environment Variables

Store your API key in an environment variable to avoid hardcoding it:

Error Responses

Security Tips

  • Never expose API keys in client-side code
  • Use environment variables or secret management tools
  • Implement key rotation in production environments