FR-3: Vision API
Integration (Minimax)
- The relay sends the image to Minimax’s vision endpoint
- The API key is already available (the user has a token plan)
- The payload must include the image (base64 or URL, depending on
Minimax’s API format) and a prompt
- Recommended prompt: “Describe this image in one concise
sentence.”
- The response is parsed to extract the description text
- If the API returns an error (rate limit, invalid key, model
unavailable), the error is logged and the client shows a failure
state
- The API call must have a timeout (e.g., 15 seconds)