Skip to content

Files

Latest commit

 

History

History

urlsession

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 16, 2024
Feb 16, 2024
Feb 16, 2024
Feb 20, 2024

README.md

API4AI Alcohol Label Recognition

This directory contains a minimalistic sample that sends requests to the API4AI Alcohol Label Recognition API. The sample is implemented in Swift using URLSession class.

Overview

This ready-to-use API takes an images as inputs and gives you the kind of the drink, brand and other drink-specific information.

Getting started (XCode)

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...".

Getting started (Command line)

Build in Release configuration:

xcodebuild -scheme sample build -configuration Release SYMROOT=$(PWD)/build

Try sample with default args:

./build/Release/sample

Try sample with your local image:

./build/Release/sample image.jpg

About API keys

This demo by default sends requests to free endpoint at demo.api4ai.cloud. Demo endpoint is rate limited and should not be used in real projects.

Use RapidAPI marketplace to get the API key. The marketplace offers both free and paid subscriptions.

Contact us in case of any questions or to request a custom pricing plan that better meets your business requirements.

Links