๐ Getting Started
Welcome! This page will help you get up and running with Visionary.ai in just a few minutes. Whether you're building on iOS, Android, or working with the API directly, this guide gives you the foundation you need.
๐ Authenticationโ
To use Visionary.ai, you must include an API key in every request.
Base URL: https://api.visionary.ai/v1/
Authorization: Bearer YOUR_API_KEY
๐ Youโll receive your API key after registration.
For this fictional project, you can use the placeholder:
Authorization: Bearer demo-api-key
๐ธ Supported Image Formatsโ
Visionary.ai currently accepts:
- JPEG (.jpg, .jpeg)
- PNG (.png)
- WEBP (.webp)
Maximum file size: 5MB
Minimum image resolution: 200x200 px
๐งพ Request Structureโ
You can send image data in base64 format or as multipart/form-data (recommended for mobile apps).
Example: JSON (Base64)โ
{
"image": "data:image/jpeg;base64,/9j/4AAQSkZ..."
}
Example: Multipart (via curl)โ
curl -X POST https://api.visionary.ai/v1/analyze \
-H "Authorization: Bearer demo-api-key" \
-F "image=@/path/to/your/image.jpg"
๐ Common HTTP Errorsโ
Code | Message | Cause |
---|---|---|
401 | "Unauthorized" | Invalid or missing API key |
413 | "Payload Too Large" | Image exceeds 5MB |
422 | "Unprocessable Entity" | Invalid image format |
500 | "Internal Server Error" | Something went wrong |
๐งช Test Your First Callโ
You can test the /analyze
endpoint using your preferred HTTP client or Postman.
๐ฆ SDK Quickstartsโ
If you're using the SDKs, jump ahead:
-
๐ฒ Android Quickstart
-
๐ iOS Quickstart
๐ What's next?โ
โก๏ธ Learn how to detect objects and scenes with the /analyze
endpoint.