GC Document AI API

google/gc-document-ai
Google Cloud Document AI extracts structured data and text from documents using optical character recognition and AI.
Output
$0.006 / page
Released
Dec 16, 2025

Overview

What is GC Document AI API?

Google Cloud Document AI extracts structured data and text from documents using optical character recognition and AI.

Technical Specifications
- Supported inputs: Document, Image
- Output: Text

Performance Benchmarks
[embed]

GC Document AI API Pricing
- Pricing on request

Where to Use GC Document AI

Audio generation
Create speech, sound effects, or music from prompts.

Use cases

Document AI is suited to automating data entry by extracting structured data from documents, including documents used in workflows like mail rooms, shipping yards, mortgage processing, and procurement.

It is also documented for classifying documents, such as emails, contracts, and invoices, which helps automate filing and organization.

Another stated use case is identifying and redacting sensitive information, including personal data and financial information, to support privacy protection and data compliance.

It is also used to search, store, govern, and manage documents and their extracted data, including enabling semantic search and cloud-based access.

How to use GC Document AI API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to google/gc-document-ai.
import requests

headers = {"Authorization": "Bearer " + AIMLAPI_KEY}
res = requests.post(
    "https://api.aimlapi.com/v1/ocr",
    headers=headers,
    json={
      "model": "google/gc-document-ai",
      "document": "https://example.com/invoice.pdf",
      "mimeType": "application/pdf"
    },
).json()
print(res)
const res = await fetch("https://api.aimlapi.com/v1/ocr", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "google/gc-document-ai",
    document: "https://example.com/invoice.pdf",
    mimeType: "application/pdf",
  }),
}).then((r) => r.json());
console.log(res);
curl -s https://api.aimlapi.com/v1/ocr \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gc-document-ai",
    "document": "https://example.com/invoice.pdf",
    "mimeType": "application/pdf"
  }'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

GC Document AI API Pricing

TypePrice
Output
$0.006 / page

GC Document AI vs other models

ModelInputOutputContextBest for
$0.006 / page
Document text extraction
$0.004 / page
Document text extraction
$0.002 / page
Document text extraction
$0.01 / page
Document text extraction

Frequently asked questions

GC Document AI takes document, image as input and returns text.

GC Document AI became available on December 16, 2025.

GC Document AI is priced at $0.0078 / page.

GC Document AI is billed per generation — a fixed charge per output rather than by prompt length.

GC Document AI was built by Google.

Use google/gc-document-ai as the model id on AI/ML API.

Yes. GC Document AI is served through AI/ML API, so the same key and endpoint format used for other models applies.

It uses optical character recognition combined with AI to extract structured data and text from documents.

Start building with GC Document AI

Get API Key
1000+ models, one API.