This directory contains a minimalistic sample that sends requests to the API4AI General Classification API.
The sample is implemented in Swift using URLSession class.
The General Classification API offers a complete solution for image classification. Its algorithm is trained on about a thousand different types of objects covering a significant part of potential image themes from household tools to a wide variety of animals
Open sample.xcodeproj project in XCode as usual and click "Run".
Optionally you may specify image URL or path to image file as application argument via "Product -> Scheme -> Edit scheme...".
Build in Release configuration:
xcodebuild -scheme sample build -configuration Release SYMROOT=$(PWD)/buildTry sample with default args:
./build/Release/sampleTry sample with your local image:
./build/Release/sample image.jpgdemo.api4ai.cloud.
Demo endpoint is rate limited and must not be used in real projects.
✅ The primary entry point for accessing API is the API4AI Developer Portal. Here, you can obtain your own API key to send requests, set up billing, and monitor usage. API is available on a pay-as-you-go model. Simply top up your balance and consume any API at any time you want.
🐙 An alternative way to access APIs is through Rapid API Hub (also known as Nokia API Hub), a well-known public API hub and marketplace where you can find solutions developed by the API4AI team, as well as from other vendors if you wish. To get started, register at RapidAPI, obtain an API key, and subscribe to the API. API at RapidAPI is available via a subscription-based model, with free plans also offered. Subscriptions are fully managed by RapidAPI.
Contact us in case of any questions or to request a custom pricing plan that better meets your business requirements.
- 📩 Email: hello@api4.ai
- 🔗 Website: https://api4.ai
- 🤖 Telegram demo bot: @a4a_img_labelling_bot
- 🟡 API4AI Developer Portal: https://portal.api4.ai
- 🔵 Our API at RapidAPI marketplace: https://rapidapi.com/api/general-classification1/details