API Documentation
Image Analysis Endpoint
Endpoint
POST https://tokenify.live/api/predict
Request Body
{ "image_url": string, // URL of the image to analyze "prompt": string // Question about the image }
Response
// Success Response { "data": string // AI-generated response about the image } // Error Response { "error": string // Error message }
Example Usage
curl -X POST https://tokenify.live/api/predict -H 'Content-Type: application/json' -d '{ "image_url": "https://images.unsplash.com/photo-1611003228941-98852ba62227", "prompt": "What is in this image?" }'
Error Codes
400 Bad Request
Missing required parameters (image_url or prompt)
500 Internal Server Error
Failed to process the prediction or server error