# Table of Contents - [OnlySq API — Free Access to 40+ AI Models](#onlysq-api-free-access-to-40-ai-models) --- # OnlySq API — Free Access to 40+ AI Models Get started Working with OnlySq API2.0 ========================== Copy page Only Sq is a dedicated team of programmers specializing in the development of API2.0, sites, bots and many scripts. The team focuses on integrating advanced neural network models into their API offerings, enhancing the functionality and performance of their services. They prioritize user experience and efficient data processing, ensuring that their API is both powerful and easy to use for developers. The API is free, with RPM limits based on account level. Starting with patch 4.0.1 (November 29, 2025), every request to `v2/imagen` must have Authorization header JSON {"Authorization": "Bearer apikey"} Use your personal API key from [Go to your profile](https://my.onlysq.ru/) . Key `openai` no longer works. You can check your current personal limits here: [https://my.onlysq.ru/usage](https://my.onlysq.ru/usage) SDKs ---- OnlySq supports calls via OpenAI SDK libraries as the primary way of accessing API, providing advanced models for the user and ease of use for the developer. To get started, please see the installation methods and code snippets below. PythonTypeScript pip install -U openai from openai import OpenAI client = OpenAI( base\_url="https://api.onlysq.ru/ai/openai", api\_key="YOUR\_API\_KEY", ) completion = client.chat.completions.create( model="gpt-4o-mini", messages=\[\ \ {\ \ "role": "user",\ \ "content": "Say 5 short facts about AI.",\ \ },\ \ \], ) print(completion.choices\[0\].message.content) ### Example response (via the Python SDK) Response Here are five short facts about AI: 1. **AI Learns from Data** – AI systems improve by analyzing large amounts of data, identifying patterns, and making predictions. 2. **Narrow vs. General AI** – Most AI today is "narrow" (task-specific), while "general AI" (human-like reasoning) is still theoretical. 3. **AI Powers Everyday Tech** – Virtual assistants (Siri, Alexa), recommendations (Netflix, Spotify), and spam filters all use AI. 4. **Ethical Concerns Exist** – AI raises issues like bias in algorithms, job displacement, and privacy risks. 5. **AI is Evolving Fast** – Breakthroughs in deep learning and generative AI (like ChatGPT) are rapidly advancing the field. Would you like more details on any of these? API Reference ------------- Integrate natural language processing and generation into your projects with a few lines of code and internet connection Go to OpenAI -> ### OpenAI SDK SDK is the primary way of accessing OnlySq API models. Look at the code examples and build something cool! Go to OpenAI -> Levels & RPM Previous Tools Next Ctrl+I ---