Using the AI Utility APIs

This guide will help you get started with using ApyHub's AI Utility APIs.
Using the AI Utility APIs
Joshua Daniel
Last updated on January 10, 2024
It's time for some new AI APIs. One of the issues that are emerging with AI is that developers need to adapt their code to the ever-changing landscape of AI provider libraries. Our goal at ApyHub remains to make the life of developers easier and free of such hassles. With ApyHub’s AI Utilities, that vision becomes a reality.

What are ApyHub AI APIs?

  • ApyHub AI APIs provide an unified interface for different AI services from various providers like Google, AWS, and Azure
  • These APIs cover diverse AI functionalities like image recognition and natural language processing. See here for the full list of APIs.
ApyHub AI Utility APIs

What do you need in order to use the AI Utility APIs?

  • An Active ApyHub account. Don't have one yet? Create one here.
  • Early Access enabled for your Account. Enabling “Early Access” will give you the opportunity to be the first to try out and experience all the new cool APIs we launch.
  • Your Credentials from the provider for the AI services.

How do you make an API request?

In the ApyHub API playground

  • From your dashboard navigate to the AI utility API’s page.
  • In the API Playground section, provide the input file/text and select a service provider in the requested_service field.
(The list of supported providers can be found in the Utility APIs documentation. Kindly note that the atoms cost varies for each provider. You can refer to the documentation for more details).

For ApyHub as a provider

  • For ApyHub as a requested_service, there are no additional keys required. Once the provider is selected, hit on Send Request.
enter image description here

For other AI Providers

  • Click on Show optional inputs and
  • Enter the Authentication token for the provider and hit Send request.
ApyHub AI Utility APIs

In your API client

  • From your preferred code base or API client, configure the requests using the details provided in the documentation of the API.
  • If ApyHub is selected as requested_service, then no additional keys are needed. If a non ApyHub provider is selected as requested_service, the Credentials for the preferred provider has to be provided in the request body with the key syntax mentioned in the documentation.
ApyHub AI Utility APIs
  • Provide the Input Content that has to be processed and submit the API request.
Note: For Non-ApyHub providers, ApyHub takes care of the Authentication and returns the response provided by the Provider’s library.

What can you expect?

  • Swift and accurate responses tailored to your specifications.
  • Reliable and consistent results for AI-driven tasks.
  • Hassle-free integration; ApyHub manages changes in provider libraries.
  • Future-proof AI integration experience for developers.
ApyHub AI Utility APIs
Note: The output response will depend on the Provider and is subjected to change depending on the Provider.
ApyHub is fully committed to shielding you from the intricacies of individual provider libraries. Simply integrate with your credentials, and let ApyHub handle the rest.
And what about any changes or updates to each provider library? Consider it taken care of – we ensure your code remains seamlessly compatible.
Do you have any questions about the AI APIs? Feel free to write to us at hello@apyhub.com or join our discord community.
Looking for an AI Tool for improving productivity? Checkout the amazing AI tools from here
Happy coding from ApyHub 🙂