{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "google-langextract--use-langextract-with-other-model-providers",
 "repo": "google/langextract",
 "repo_url": "https://github.com/google/langextract",
 "repo_slug": "google-langextract",
 "title": "Run extraction with OpenAI or a custom provider",
 "page_title": "How to run extraction with OpenAI or a custom provider with LangExtract",
 "summary": "Configure OpenAI models or add a custom model provider instead of the default.",
 "who": "A team standardized on a different model vendor.",
 "problem": "Libraries tied to one vendor do not fit every stack.",
 "outcome": "Extraction running on the provider you choose.",
 "steps": [
  "Set the API key for your provider",
  "Follow the Using OpenAI Models or custom provider section",
  "Run the same extraction",
  "Compare results across providers"
 ],
 "agent_prompt": "Run the same langextract job with two providers and compare extraction counts and grounding accuracy.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Different models can produce different extraction counts on the same prompt.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python",
  "An API key for a cloud model, or a supported local or custom provider"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/google-langextract/use-langextract-with-other-model-providers/",
 "md": "https://dedupedai.com/use-cases/google-langextract/use-langextract-with-other-model-providers/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/google-langextract--use-langextract-with-other-model-providers.json",
 "api_version": "v1"
}
