Enhance API for seamless Gemini integration, while optimizing text extraction and PDF conversion capabilities.