Detect, label, format and enrich the code in your app or in your data pipeline.
Code Detection API is a machine learning-based service that determines whether a given text string contains code, identifies the programming language of detected snippets, and returns a formatted, syntax-highlighted version of the code. It is offered by Runtime as the first in a planned line of Technical Language Processing APIs aimed at processing unstructured technical text.
The service targets two groups: app developers who want to distinguish code from plain text in features like notes, messages, code editors, or blog/publication platforms, and AI, machine learning, and analytics teams who need to identify, label, and enrich code within large datasets or data pipelines where code is mixed with natural language. Cited use cases include improving in-app search by tagging snippets as code, and scrubbing data pipelines to separate code from text.
Separate pricing tracks exist for App Developers and for AI and Machine Learning teams, each with Basic, Pro, and Enterprise tiers plus a custom-priced option, billed monthly or yearly. Plans are differentiated by API credit allotments and feature sets such as text-vs-code detection, code classification, model metadata, confidence intervals on language and text classification, user-specific bias, batched requests (AI/ML tier only, with per-call and total batch limits), noise reduction and embedding/tokenizer support on higher AI/ML tiers, and tag generation listed as a coming-soon feature across paid tiers. A 14-day free trial is offered. Case studies mention integration with the Pieces.app snippet tool and use in a machine learning pipeline.
Yes, there is a 14 day free trial across all plans.
App Developer plans start at $19.99/month (Basic) up to $319.99/month (Enterprise), with AI/ML team plans ranging from $39.99/month (Basic) to $359.99/month (Enterprise); custom pricing is available for larger needs.
It's built for app developers who want to detect and format code in their apps, and for AI/ML and analytics teams who need to label and enrich code within large datasets.
It can classify whether text contains code, detect the code's language, and return formatted, syntax-highlighted snippets with metadata.
Yes, AI/ML team plans include batched requests, with limits ranging from 100 to 400 maxed batch requests per call depending on the plan.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
A collection of information retrieval and natural language APIs.
Chat with pdf using GPT4 and ChatGPT.
Natural language processing and text analysis.
This API converts any text to speech automatically.
Detects text language.
This API detects the language from any text (+ 50 languages supported).