AI and APIs

Computers are still dumb: bringing your AI magic to enterprises — how APIs make your product scale

529views

Hi — I’m Ben Morss, Developer Evangelist at DeepL. Over the years, I’ve managed APIs, advocated for developers, and built product experiences at scale. Today I want to walk you through a practical, somewhat tongue-in-cheek playbook for taking your delightful AI magic and getting it into the hands (and workflows) of enterprises. If your startup creates something shiny — whether it’s agents that do laundry, models that generate videos, or a fantastical system that turns text into full-blown Broadway musicals — you’ll need more than buzz and demos to scale. You’ll need an API and an API strategy that meets customers where they already live.


Why an API is the bridge from cool tech to real business

Let’s be blunt: making a demo that wows your mom is great, but one demo won’t drive sustained revenue. Large organizations consume software differently. They integrate, automate, and standardize. They don’t want to use your web UI for every single task — they want programmatic access so they can embed your magic in their tools, pipelines, and reporting. An API is not optional if you want predictable volume, repeatable integrations, and enterprise adoption.

APIs are the way you scale usage beyond direct, one-off interactions. They are how a corporate communications team automates a weekly musical summary of earnings calls, how a retailer auto-produces product-launch jingles at scale, or how an engineering team generates singable release notes from PR descriptions. If your product is the magic, APIs are the plumbing that makes it useful across an organization.

“You must come to your customers. Your API and resources should let people use your stuff as often as possible, wherever they already work.”


Start with input: meet customers where their data lives

Enterprises don’t keep all their content as a pretty, single UTF-8 string. They have many different sources and file types. If you want them to use your AI, you must accept the variety of inputs they actually have — not force them to convert everything to some toy format.

Character encodings and directionality

Text encoding still matters. Most modern systems use UTF-8, but lots of legacy or export files might come in ISO-8859-1, ASCII, or other encodings. Your API should:

  • Detect and auto-handle common encodings where safe.
  • Return clear errors when an unsupported encoding is supplied.
  • Support bidirectional text (e.g., Arabic, Hebrew) so RTL languages don’t get mangled.

These details sound tedious, but they’re the difference between an integration that works globally and one that breaks for entire teams.

Files, not just strings

Yes, an endpoint that accepts a string is a good start. But the moment you want broad enterprise adoption, you’ll need to accept documents and files where content actually lives. Expect to parse and extract text from:

  • Word documents (DOCX) and retain formatting hints if needed.
  • Google Docs via Google’s API — many teams author content there and won’t export it manually.
  • PDFs, including multi-column layouts and embedded images.
  • Spreadsheets (XLS, XLSX) and Google Sheets for tables, forecasts, and structured data.
  • Presentations (PPTX / Google Slides) which are common vessels for corporate narratives.
  • Emails — marketing, transactional, internal — often an important content source.

Handling these formats properly sometimes requires more than naive text extraction. For example, PDFs often mix text and images and have precise layout constraints. When translating (or repurposing) content, text length can change; you might need to shrink fonts, adjust line breaks, or preserve spatial relationships so content still fits.

Images and OCR

Text is often locked inside images: scanned PDFs, screenshots, product photos with labels, or scanned invoices. Optical Character Recognition (OCR) should be part of your input pipeline. You can use well-known libraries like Tesseract or modern models trained for document understanding. When extracting text from images, consider:

  • Detecting and preserving layout blocks so text maps back to the correct place.
  • Extracting alt text (or generating it) for images so replacement UI and semantics are preserved.
  • Handling noisy images and multi-language OCR.

For a product that converts content to musicals, these details matter: if the text is in the image, you want that lyric in the right verse, not stuck in the chorus—or worse, missing entirely.


Structured data sources and third-party platforms

Enterprises also expect you to integrate with their systems. Consider adding connectors for:

  • Shopify, WooCommerce, or other ecommerce APIs to pull product titles and descriptions automatically.
  • GitHub (or other source control systems) to create melodic PR summaries or singable release notes.
  • Jira and other ticketing systems for status updates and sprint retros that are easier to digest when sung.
  • CRM or ERP systems for customer- or transaction-driven content.

Meeting users where their data is reduces friction and removes the “go convert all your files” ask — and that’s how you win enterprise users.

HTML and web pages: tag-aware extraction

Web content is a special case. Web pages aren’t flat text; they’re structured HTML with markup, scripts, and style. Naively stripping tags to get everything between them will create garbage. If you want to convert a web page into a musical, you must be selective.

Key considerations for HTML ingestion:

  • Remove irrelevant content: script and style blocks, inline JS, and analytics code should be ignored.
  • Respect attributes: alt text on images, ARIA labels, and title attributes can be valuable input.
  • Preserve semantic tags: headings (h1-h6) signal hierarchy and can become song titles, choruses, or scene changes.
  • Respect visibility: text nested inside elements with display: none or hidden attributes probably shouldn’t be sung — unless it’s intentionally concealed content (like an accordion that might later be revealed).
  • Handle inline text formatting: bold and emphasis may imply tonal or lyrical emphasis; do you carry that emphasis over when text expands or moves during generation?

Tag handling is a place where straightforward rules outperform models. Models are powerful, but HTML has many edge cases and semantics that are best interpreted by deterministic logic. Build robust parsing rules and use models on top of that cleaned, semantically-aware content.


Output: make it easy for customers to use your results

Once you produce your musical (or video, or synthesized response), where should it live and how should it be delivered? Expectations vary. Some teams want an immediate response; others want asynchronous workflows. Plan to support both.

Sync vs. async

For small text snippets a synchronous API call might suffice: submit a short piece of text and receive a small audio clip. But many enterprise use cases involve large jobs (long documents, many items in a catalog), and generating audio/video can be time-consuming and heavy on compute.

Offer an asynchronous job model:

  1. Accept the request and return a job ID immediately.
  2. Process the job server-side.
  3. Provide polling or webhooks to notify the user when the job finishes.
  4. Allow downloading of artifacts (audio, video, score PDFs, karaoke tracks) or pushing them to storage services.

Do the heavy lifting for your customers. Manage job queues, retries, and backpressure on your side — don’t force customers to orchestrate large numbers of compute-heavy tasks themselves.

Storage, distribution, and platform integrations

Where should the final output go? Different customers will want different things:

  • Direct download to their servers.
  • Automatic upload to cloud storage: Google Drive, Dropbox, Box, iCloud.
  • Publishing to music platforms: Spotify, YouTube Music, Apple Music, or multi-platform aggregators.
  • Private hosting or intranet delivery for internal-only materials.

If you support publishing to music platforms you’ll need to consider metadata: lyrics, composer/producer credits, album/track metadata, licensing information, and whether materials are public or private. Enterprises may require “private mode” for internal meetings turned into musicals — you must respect that.

Monetization and rights management

Music introduces additional commercial considerations. If your system’s output can be played publicly, broadcast, or otherwise monetized, you’ll want to handle:

  • Publishing rights and registrations (ASCAP/BMI/etc.) to collect performance royalties.
  • Catalog management so customers can claim and monetize works created through your platform.
  • Licensing flows and clear terms for customer ownership vs. platform rights.

These back-of-house systems are often overlooked in early prototypes, but they’re essential if you want to open up revenue streams beyond subscriptions and seats.


Generate derivatives: scores, karaoke, and printed books

If your product can create a full musical, you have opportunities beyond audio/video files. Think about additional assets you can generate and sell:

  • Librettos and scripts for directors and actors.
  • Sheet music and conductor/ensemble parts for live performances.
  • Karaoke tracks and stems so teams can remix and adapt pieces for local events.
  • Simplified arrangements for in-house singing or town-hall renditions.

Generating these artifacts is harder than generating audio — it moves you into the territory of music notation and domain-specific content generation — but it also unlocks venues (literal ones) and new monetization paths.


Developer experience: SDKs, examples, and best practices

Enterprises hire developers who prefer languages that work in their stack. To lower integration friction, provide SDKs and high-quality examples in multiple languages. Don’t assume everyone uses JavaScript.

  • Offer SDKs for common languages: JavaScript/Node, Python, Java, C#, and yes, even PHP for many legacy web apps.
  • Auto-generate SDKs from an OpenAPI/Swagger spec where possible, then polish them.
  • Provide runnable examples and best-practice patterns for both sync and async use-cases.
  • Use sample UIs that demonstrate correct async handling (job submission, state updates, webhooks) to prevent bad UX like users spamming the generate button.

Modern AI can help bootstrap these libraries — translating code across languages or generating spec-driven clients — but human review is essential to catch language idioms, error handling patterns, and documentation polish.


Latency, availability, and data residency

Two operational considerations come up again and again with enterprise customers: latency and data residency.

Latency

Latency matters. If your service sits in Europe and a team in India makes millions of calls, those round trips add up. Reduce latency by:

  • Deploying nearer to customers (multi-region or edge-based approaches).
  • Using quantized or smaller models (FP8, FP4) when acceptable to trade small amounts of quality for speed.
  • Implementing caching, batching, and partial-result streaming where appropriate.

Helping developers with client-side guidance on async flows is equally important. A good UX pattern is to show a clear “in progress” state, give users useful progress indicators, and deliver notifications/webhooks when the job completes. This prevents user frustration and accidental duplicate requests.

Data residency and privacy

Many industries have strict rules about where data may be stored and processed. Financial institutions, governments, and certain regulated industries require data to remain in-country or under certain controls. To close enterprise deals, provide:

  • Options for regional data storage and processing.
  • Clear data handling policies and compliance artifacts (SOC2, ISO27001, etc.).
  • On-prem or private-cloud deployments for sensitive customers where applicable.

Being proactive about data residency — and giving customers configuration options — is often the single biggest engineering ask that separates pilots from production contracts.


Multi-tenant features, permissions, and admin controls

Enterprise usage isn’t single-user. An organization might have dozens, hundreds, or thousands of users with different roles. Provide the administrative features real organizations expect:

  • Organization and team hierarchies.
  • Role-based access control (RBAC): who can generate, publish, or manage assets.
  • Admin panels and usage dashboards that show quotas, spend, job history, and security logs.
  • API key management with scopes and quotas per key.

These features often get deprioritized in early builds, but they’re critical for enterprise security reviews and operational readiness.


Practical guidance: shipping an API that enterprises will actually use

Here are pragmatic steps to get you from prototype to enterprise-ready API:

  1. Start with a clear, well-documented core endpoint for your main transformation — but plan for the rest of the I/O ecosystem.
  2. Invest in input normalization: robust parsers for DOCX, PDF, HTML, images, spreadsheets, and third-party platforms.
  3. Build deterministic rules for structural content (HTML tag handling, visibility, and semantic mapping).
  4. Offer both synchronous and asynchronous flows, with webhooks and job IDs for long-running work.
  5. Provide SDKs, examples, and a sample UI that demonstrates best practices for async calls and error handling.
  6. Plan for latency and data residency early — these can block deals if ignored.
  7. Add admin, billing, and rights-management features as you move from pilot to production.
  8. Think beyond the immediate output: derivative assets (lyrics, scores, parts) open new channels.

Don’t underestimate the non-glamorous bits. Input parsing, tag handling, admin controls, and integration wiring are not fun, but they’re the infrastructure that makes your magic usable and valuable to real customers.


Common pitfalls and how to avoid them

When teams build AI products, a few predictable mistakes keep recurring. Here are the ones I see most often and how to avoid them:

  • Only accepting plain text: Integrations fail when customers must manually convert everything. Add file and platform connectors early.
  • Trusting models with structural logic: Models are powerful, but HTML semantics, visibility, and business rules need deterministic handling.
  • Underestimating delivery needs: Music and video are large; plan storage, CDN delivery, and streaming options.
  • Missing developer UX: Poor SDKs and examples slow adoption. Invest in polished, idiomatic client libraries.
  • Ignoring compliance: Data residency and audit controls are deal blockers for many organizations.

Fixing these early saves months of churn and increases the likelihood that pilots convert into production contracts.


Final thoughts: come to your customers, don’t make them come to you

To scale AI products into enterprises, you must be the integrator, the plumber, and the librarian who makes the magic consumable and manageable. Your model is the star — but your API is the stage crew that keeps everything running during the show. Focus on input coverage, robust parsing, practical output workflows, developer experience, and operational controls. Meet customers where they are, in the languages and systems they already use, and you’ll see adoption accelerate.

“Don’t make the customer deal with job queues and orchestration — handle that for them. Let them send text and receive results when ready.”

If you do that — if you obsess over the real-world ways enterprises store, process, and distribute content — your AI magic becomes a practical tool that teams can build on. And once your magic is embedded into business workflows, it stops being a demo and starts being a product that pays the bills.


Key takeaways

  • APIs are essential to scale AI products into enterprises.
  • Support many input formats: text, documents, images, HTML, and platform connectors.
  • Use deterministic rules alongside models for structural content handling.
  • Offer async job models, webhooks, and easy delivery to storage and publishing platforms.
  • Provide SDKs for a range of developer languages and show best practices for async UIs.
  • Consider latency, data residency, compliance, and admin features early.
  • Think beyond the audio file: metadata, scores, and publishing rights unlock revenue streams.

Good engineering and thoughtful product design around your API are what let an impressive ML model turn into a sustainable business. Build the plumbing, honor the edge cases, and make your customers’ lives simpler — then your AI magic will actually change how large organizations communicate and operate.

Go build something delightful, and remember: computers are still dumb, but a good API makes them useful.

Ben Morss

Ben Morss

Developer Evangelist at DeepL
Ben Morss is Developer Evangelist at DeepL, with nearly a decade at Google advancing web APIs, AMP, and mobile performance. A seasoned speaker and engineer, he’s built global developer communities, created impactful technical solutions, and remains passionately engaged in music and creative projects.

APIdays | Events | News | Intelligence

Attend APIdays conferences

The Worlds leading API Conferences:

Singapore, Zurich, Helsinki, Amsterdam, San Francisco, Sydney, Barcelona, London, Paris.

Get the API Landscape

The essential 1,000+ companies

Get the API Landscape
Industry Reports

Download our free reports

The State Of Api Documentation: 2017 Edition
  • State of API Documentation
  • The State of Banking APIs
  • GraphQL: all your queries answered
  • APIE Serverless Architecture