Skip to main content
1

Apply for access

Email [email protected] with:
  • Proof of your organization’s status (501(c)(3) nonprofit, small business / startup, government entity, school, library, etc.)
  • Any other documentation showing your eligibility
  • Brief description of how you plan to use the API
We support 501(c)(3) nonprofits, government entities, schools, libraries, startups, and other qualifying organizations.
2

Install the OpenAI package

Install the official OpenAI package:
pip install openai
3

Make your first API call

Test the API with a simple chat completion:
import openai

client = openai.OpenAI(
    api_key="your-api-key",
    base_url="https://ai.cyrionlabs.org/v1"
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[
        {"role": "user", "content": "Hello! How can AI help nonprofits?"}
    ]
)

print(response.choices[0].message.content)

Authentication

All API requests require authentication using your API key. Include it in the Authorization header:
Authorization: Bearer your-api-key

Base URL

Use the following base URL for all API requests:
https://ai.cyrionlabs.org/v1
Keep your API key secure and never share it publicly. If you suspect your key has been compromised, regenerate it immediately in your dashboard.

Base URL

All API requests should be made to:
https://api.cyrionlabs.com

Rate Limits

CyrionAI provides generous rate limits for nonprofit organizations:
  • Chat Completions: 100 requests per minute
  • Image Generation: 20 requests per minute
  • Video Generation: 10 requests per minute
  • Audio Transcription: 50 requests per minute
Rate limits are per API key. Contact us if you need higher limits for your use case.

Error Handling

The API returns standard HTTP status codes. Common errors include:
  • 401 Unauthorized - Invalid or missing API key
  • 429 Too Many Requests - Rate limit exceeded
  • 400 Bad Request - Invalid request parameters
  • 500 Internal Server Error - Server error
Example error response:
{
  "error": {
    "message": "Invalid API key",
    "type": "invalid_request_error",
    "code": "invalid_api_key"
  }
}

Next Steps

Now that you’ve made your first API call, explore these resources:

Need Help?

If you run into any issues: