2026-10-11 · 4 min read
Getting Started with Air Credits for Developers
Learn how developers can enable models, purchase Air Credits, and utilize the Air Inference marketplace to access AI inference capabilities seamlessly.
Getting Started with Air Credits for Developers
In the rapidly evolving world of artificial intelligence, developers are continuously seeking ways to leverage AI models for various applications. Air Inference provides a seamless platform where developers can enable models, purchase Air Credits, and access an array of AI inference capabilities. This guide will walk you through the process of getting started with Air Credits, enabling models, and utilizing the marketplace to call the /api/v1 chat completions endpoint.
Understanding Air Credits
Air Credits are the currency used within the Air Inference marketplace. As a developer, you can purchase Air Credits to access various AI models hosted by different providers. These credits allow you to interact with APIs compatible with OpenAI, enabling you to build, test, and deploy AI solutions efficiently.
Why Use Air Credits?
- Cost-Effective: Instead of paying for each individual API call, you simply top up your Air Credits and use them as needed.
- Flexibility: With a variety of models available, you can choose the one that best fits your needs.
- Ease of Access: The Air Inference marketplace hosts multiple providers, making it easier to find and utilize the models you need without extensive setup.
Setting Up Your Air Inference Account
Before you can start purchasing Air Credits and utilizing the API, you need to set up your account on Air Inference. Here are the steps to get you started:
Step 1: Create an Account
- Visit the Air Inference website at airinference.com.
- Click on the “Sign Up” button.
- Fill in the required information, including your email address, password, and any other requested details.
- Verify your email address by clicking on the link sent to your inbox.
Step 2: Top Up Air Credits
Once your account is set up, you can purchase Air Credits. Here’s how:
- Log into your Air Inference account.
- Navigate to the “Billing” or “Air Credits” section of your dashboard.
- Choose the amount of Air Credits you wish to purchase.
- Complete the payment process using your preferred payment method. Note that while Air Inference charges a fee (approximately 10%), the convenience and versatility of the marketplace often outweigh this cost.
Step 3: Enable Models
After topping up your Air Credits, you can begin enabling models. This process involves selecting the AI models you want to use for your projects. Here’s how to do it:
- In the Air Inference dashboard, navigate to the “Marketplace” or “Models” section.
- Browse through the list of available models. You can filter by categories such as language models, image processing, etc.
- Click on the model you wish to enable.
- Follow the prompts to enable the model. This may involve reviewing the model's documentation and ensuring it meets your requirements.
Calling the API
Once you have enabled the models you need, you can start making API calls to access AI inference capabilities. The Air Inference marketplace provides an OpenAI-compatible API that you can use to call the /api/v1 endpoint for chat completions.
Making API Calls
To interact with the API, you will need to set up your development environment to make HTTP requests. Here’s a basic outline of how to set up your API calls:
-
Select Your Programming Language: You can use any programming language that supports HTTP requests, such as Python, JavaScript, or even cURL from the command line.
-
Authentication: Ensure that you include your Air Inference API key in your requests. This key is available in your account settings.
-
API Endpoint: The endpoint for chat completions is
/api/v1/chat/completions.
Example API Call
Here’s a simplified example of how you might call the API using cURL:
curl -X POST https://api.airinference.com/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "Hello, how can I use Air Inference?"}]
}'
In this example, replace YOUR_API_KEY with your actual API key. The payload includes the model you are using and the conversation context.
Error Handling
When making API calls, you may encounter errors. Here are some common issues and how to address them:
- Invalid API Key: Ensure your API key is correct and active.
- Insufficient Air Credits: Make sure you have enough Air Credits in your account to cover the cost of the API call.
- Model Not Enabled: If you receive an error indicating that the model is not enabled, revisit the marketplace to ensure it is properly enabled.
Best Practices for Using Air Inference
To maximize your experience with Air Inference, consider the following best practices:
Monitor Usage
Keep an eye on your Air Credits balance and API usage. This will help you manage your budget effectively and avoid unexpected charges.
Experiment with Different Models
Don’t hesitate to try out different models for various tasks. Each model has its strengths and weaknesses, so experimenting can lead to better results for your specific use case.
Review Documentation
Familiarize yourself with the documentation provided by Air Inference for each model you enable. This will give you insights into best practices, limitations, and optimal usage scenarios.
Engage with the Community
Join forums or communities related to Air Inference. Engaging with other developers can lead to valuable tips, shared experiences, and solutions to common problems.
Conclusion
Air Inference is an innovative marketplace that simplifies access to AI inference capabilities for developers. By purchasing Air Credits, enabling models, and utilizing the /api/v1 chat completions endpoint, you can seamlessly integrate AI into your applications. As you navigate this platform, remember to monitor your usage, explore different models, and leverage the community for support.
With these steps, you are well on your way to harnessing the power of AI through the Air Inference marketplace. Start building today and unlock new possibilities with AI!