Documentation

    Amazon Web Services

    Microsoft Azure

    RapidAPI

Last Update: 2026-01-26

Text to Image (OCR) API


Table of Content


Subscribe on AWS Marketplace
Code sample
API endpoint: /ocr
API Usage Dashboard & API Key Retrival
Troubleshooting

Subscribe on AWS Marketplace


Navigate to our product listing on the AWS Marketplace. Select the "View purchase options" button to proceed.

On the following page, click the "Subscribe" button to initiate the subscription process.

After subscribing, you will need to set up your account on our platform. Do this by clicking the "Set up your account" button twice.

You will be directed to the registration page. Here, fill in your account details in the provided fields. Once you have entered all necessary information, click the 'Subscribe' button to proceed.

Upon successful registration, your unique API key will be displayed. It is crucial to store this key in a secure location for future use.

Code Samples


The code samples below call the /ocr endpoint to extract text from a PDF document stored in an S3 bucket. It specifies English as the target language.

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://aws-ocr.silverlining.cloud/ocr");
request.Headers.Add("x-api-key", "<YourApiKey>");
var content = new StringContent("{\n    \"file_url\": \"https://s3.us-east-1.amazonaws.com/cdn.silverlining.cloud/vivirse-case-study.pdf\",\n    \"language\": \"en\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
API Demo Playground

This API Playground for our OCR API allows you to test the service in real-time. Simply enter the file URL (Image or PDF) you want to analyze and optional parameters like the document language, and you’ll receive the extracted JSON response directly from the API. Whether you’re integrating document digitization into your application or just experimenting with the text recognition capabilities, the playground provides a user-friendly interface to see real-time results instantly.

"To see the result, please send a request to the API."
API endpoint: /ocr


URL endpoint: https://aws-ocr.silverlining.cloud/ocr


Method: POST


"header": {
  "x-api-key": STRING,
  "Content-Type": "application/json"
}


"body": {
  "file_url": STRING,
  "language": STRING,
  "detect_orientation": BOOLEAN,
  "webhook_url": STRING
}



Required

"file_url": The publicly accessible URL of the image (JPG, PNG) or PDF document you wish to process.

Optional
"language": The language code of the document (e.g., en, de, fr, ch) to ensure optimal recognition accuracy.

"detect_orientation": A boolean flag (true/false) that enables automatic detection and correction of rotated or upside-down documents before extraction.

"webhook_url": The two-letter ISO 3166-1 alpha-2 country code for the proxy server. Use this to make the request appear as if it's coming from a specific country, which is useful for accessing geo-restricted content. If this parameter is omitted, the request will be made from the US.

API Usage Dashboard


You can monitor and review your API activity in the API Usage Dashboard at https://silverlining.cloud/dashboard. Simply log in with your email address, then verify access using the one-time password (OTP) sent to your inbox. The dashboard displays your latest 1,000 API requests directly in the browser for quick inspection. For full analytics, you can also download the complete request history as a CSV file. After clicking the download button, a secure download link will be sent to your email address.

Please note that only API requests starting from April 2025 are included.

If you need to change your account email address, contact our support team.


API Key Retrieval


If you’ve lost your API key, log in to the web dashboard (see above) and open the Settings tab. There, you’ll find all API keys for all services you’re subscribed to.

Troubleshooting

"message": "Invalid Input: The request contains incorrectly formatted parameters"

This error message means that the body parameters you have passed are malformed. Please follow the instructions given in the endpoint descriptions. Common issues include forgetting to add a comma (',') after every parameter line or missing a parenthesis somewhere.

"message": "Endpoint request timed out"

You receive this error message when the code execution exceeds the maximum timeout of 170 seconds. Try to extract data from a smaller web page.

How can I see my API usage and associated costs?

Navigate to our API Usage Dashboard to view past API requests. There, you can download a CSV export of all requests made.

To check the associated costs of your API usage, use the AWS Billing dashboard:

  1. Navigate to AWS Cost Management.
  2. In the left panel, select Cost Explorer.
  3. Use the cost filters on the right side. Under Legal entity, filter for SilverLining.Cloud.

How can I cancel my subscription?

To cancel your subscription, follow these steps:

  1. Go to the AWS Marketplace Console at https://aws.amazon.com/marketplace/library. Ensure that you are logged into the account that is subscribed to the product you want to cancel.
  2. Find the product you want to cancel and click on 'Manage.'
  3. Click on 'Actions' and then select 'Cancel subscription.'

For more detailed instructions, visit the AWS Marketplace Buyer Guide at https://docs.aws.amazon.com/marketplace/latest/buyerguide/cancel-subscription.html.