Home  /  Image to text api

Image to text API

One simple API to convert all file types from your application: over 200 formats, excellent documentation, support team

  • Prepaid packages
  • Prepaid packages
  • Prepaid packages

require_once(__DIR__ . '/vendor/autoload.php');

$apiKey = 'myApiKey';

$client = new Webpractik\OcfConverter\Sdk\OcfClient($apiKey);

$filePath = '/path/to/file/to/convert.png';
$extensionToConvertTo = 'pdf';

try {
    $task = $client->uploadFile($filePath, $extensionToConvertTo);

    $result = $task->waitForConversion();

    if ($result->isSuccess()) {
        $resultUrl = $result->getResultingFileUrl();

        $resultFileName = basename($resultUrl);

        if (file_put_contents($resultFileName, file_get_contents($resultUrl))) {
} catch (Exception $e) {
    echo 'Exception: ', $e->getMessage(), PHP_EOL;

Benefits of using our API

Our online file converter - your solution for easy image-to-text conversion. Our Image to Text API offers a wide array of advantages, setting it apart as the ultimate choice for your document conversion needs.
Unlimited file size
Users can convert files of any size without restrictions, providing convenience and flexibility when working with a variety of data.
Unlimited maximum conversion time per file
The absence of time restrictions on the conversion process allows you to process even large and complex files without having to wait for the process to complete.
Unlimited simultaneous conversions
Users have the ability to simultaneously convert multiple files, which increases efficiency and saves time when working with large amounts of data.
User friendly
Easy extract text from images using our user-friendly Image to Text API. Simply upload your images and receive accurate text conversion with ease. Simplify your workflow seamlessly with our intuitive converter.
Speed and Efficiency: Experience rapid conversions, whether you have a single image or a bulk of documents to process. Our API is for swift and efficient results.
Experience unmatched reliability with our Image to Text API. With advanced algorithms and rigorous quality assurance, trust us for accurate text extraction from images every time. Simplify your workflow with our dependable conversion solution.
What our customers say