OMD Documentation

Netlify Function: transcribe

This Netlify serverless function provides a backend for the omdTranscriptionService. It receives an image, sends it to the Gemini API for transcription, and returns the result.

Endpoint

/.netlify/functions/transcribe

Method

POST

Request Body

The request body should be a JSON object with the following properties:

Responses

Success Response (200 OK)

A successful response will be a JSON object with the following properties:

Error Responses

Environment Variables

This function requires the following environment variable to be set in your Netlify environment:

CORS

The function is configured to allow cross-origin requests from any origin.

↑ Top