Description: Test run
Topic: AI Technology
Execution Time: 5 min
Welcome to the PantheraAI Services API documentation! This API provides a suite of advanced artificial intelligence capabilities, enabling developers to integrate powerful AI models into their applications. Our services currently include state-of-the-art Text Generation, Image Analysis, and Sentiment Analysis.
This documentation will guide you through authenticating with the API, understanding available endpoints, crafting requests, interpreting responses, and handling potential errors.
Key Features:
Target Audience: Developers, data scientists, and product managers looking to integrate AI functionalities into their platforms.
All requests to the PantheraAI Services API must be authenticated using an API Key. Your API Key acts as a secure credential that grants access to our services.
Include your API Key in the Authorization header of every request, using the Bearer scheme.
Header Example:
**Error (HTTP 4xx/5xx):** See [Error Handling](#5-error-handling). --- ### 4.2. Image Analysis Analyzes an image to extract features like labels, objects, and textual content. * **Endpoint:** `/image/analyze` * **Method:** `POST` #### Request **Headers:** * `Content-Type: application/json` * `Authorization: Bearer YOUR_API_KEY` **Body Parameters (JSON):** | Parameter | Type | Required | Description | Example | | :-------------- | :------- | :------- | :---------------------------------------------------------------------------- | :----------------------------------------- | | `image_url` | `string` | Yes (or `image_base64`) | Publicly accessible URL of the image to analyze. | `"https://example.com/cat.jpg"` | | `image_base64` | `string` | Yes (or `image_url`) | Base64 encoded string of the image. Max size: 5MB. | `"data:image/jpeg;base64,/9j/4AAQ..."` | | `features` | `array` | No | List of features to extract. Default: `["labels"]`. Available: `["labels", "objects", "text", "faces"]` | `["labels", "objects"]` | **Example Request (Curl with URL):**
To ensure fair usage and maintain API stability, requests are subject to rate limits.
* X-RateLimit-Limit: The total number of requests allowed in the current window.
* X-RateLimit-Remaining: The number of requests remaining in the current window.
* X-RateLimit-Reset: The time (in UTC epoch seconds) when the current window resets.
If you exceed the rate limit, you will receive a 429 Too Many Requests HTTP status code. Implement retry logic with exponential backoff to handle rate limits gracefully.
The PantheraAI Services API uses URI versioning. The current version is v1. Future breaking changes will be introduced under a new version (e.g., /v2). Non-breaking changes will be deployed to the existing v1 endpoint.
If you encounter any issues, have questions, or would like to provide feedback, please reach out to our support team:
support@pantherahive.aicurl examples to quickly test each endpoint and understand its basic functionality.try-except blocks (or equivalent) and handle expected HTTP error codes (e.g., 400, 401, 403, 429) to make your application robust.features you need for image analysis to optimize response time and potentially reduce processing costs.This comprehensive documentation should enable developers to quickly and effectively integrate PantheraAI Services into their applications.