How Will Gen AI Transform API Developer Experience?
Tags: ai, api
Published: 2024-05-10 09:59:34

---
title: How Will Gen AI Transform API Developer Experience?
published: true
date: 2024-04-16 13:48:45 UTC
tags: AI,APIs
canonical_url: https://blog.treblle.com/how-gen-ai-transforms-api-developer-experience/
---

 ![How Will Gen AI Transform API Developer Experience?](https://blog.treblle.com/content/images/2024/04/gen-ai-developer-journey.jpg)

Generative AI is making headlines over and over again.

[Gartner](https://www.gartner.com/en/newsroom/press-releases/2023-11-06-gartner-says-ai-ambition-and-ai-ready-scenarios-must-be-a-top-priority-for-cios-for-next-12-24-months), for instance, predicts that by 2025, gen AI will be used by 90% of companies worldwide. This is partially due to AI's ability to make working with complex technologies, such as APIs, more automated and accessible.

Large language models (LLMs) could significantly transform how developers (and end users) interact with APIs, taking low-code/no-code to a new frontier. LLMs could also make understanding documentation easier and quickly spin up sample requests in various languages. In short, the API game is set to get a quick and sudden stimulus shot in the wake of generative AI.

Below, we'll consider some ways in which generative AI will likely enhance the developer experience around integrating with APIs. From initial research to code generation, auto-complete, testing, and more, AI is poised to greatly accelerate the API developer experience. It's hard to predict the outcomes of such a new transformative technology. However, as we'll see, some of the exciting AI-driven experiences mentioned below are already being implemented in production today.

### Quick Research and Prototyping

First off, how do you integrate with an awesome API if you don't know how to find it? AI is set to greatly improve the research and discovery phase for new software projects. Since LLMs can suggest the proper architecture and tooling for a specific development project, they are already augmenting how developers find and consume internal and public-facing APIs.

> First is leveraging AI to help assess various tools, vendors, and APIs you want to work with.

says Ash Arnwine, Director Of Developer Relations, Nylas, on the [Spiceworks blog](https://www.spiceworks.com/tech/devops/guest-article/api-summit-takeaways/). He forecasts AI as having many tangible effects on the day-to-day API developer's life. One outcome is dramatically reducing the time and effort required to gather a shortlist of top tooling options for the job at hand.

### Supercharging Public API Documentation

Secondly, AI is set to advance how developers understand and interact with API documentation. By training machine learning models on internal developer resources, such as OpenAPI definitions, code samples, and tutorials, API providers can create developer portal assistants that respond with detailed and accurate API integration advice.

One example in practice is Bill, from Plaid, described as "a robot platypus that reads our docs for fun." Embedded into the [Plaid API documentation,](https://plaid.com/docs/api/products/statements/?showChat=true) Bill can respond with instructions on how to program specific API functions given a natural language prompt, including the exact endpoints to call and a thorough sample code.

For example, this is what Bill returns when asked how to retrieve a user's current balance statement:

![How Will Gen AI Transform API Developer Experience?](https://blog.treblle.com/content/images/2024/04/Bill-Plaid-AI-assistant.png)
_Bill, Plaid's chatbot_

With such advanced code generation capabilities, there is an argument to be made that AI assistants like this could replace the need to reference API documentation in its entirety. In fact, API Strategist and OAI Ambassador Erik Wilde, [writing on LinkedIn](https://www.linkedin.com/posts/erikwilde_is-api-developer-experience-dx-overrated-activity-7105098672605929472-_uQZ) even goes so far as to suggest AI layers that consume APIs will make current developer experience woes null and void.

> We will see a shift in API consumption where DX is not part of the picture anymore because we have AI-based applications consuming APIs. That shift will happen, and with a slightly wider view on API value we can make sure that we are prepared for it.

### Generating API Requests Within the IDE

When you think of generative AI in software development, code generation and auto-completion are typically top of mind. Tools like Copilot, CodeWhisperer, and TabNine are transforming how many programmers churn out code, usually leading to improved productivity and satisfaction. One [study from Microsoft](https://www.microsoft.com/en-us/research/publication/the-impact-of-ai-on-developer-productivity-evidence-from-github-copilot/), for instance, found that a group with access to an AI pair programmer was able to complete its task 55.8% faster than the control group.

Code completion is becoming more commonplace within integrated development environments (IDEs). Therefore, AI-assisted development will naturally involve API integration code. For instance, at the [Austin API Summit](https://nordicapis.com/6-key-takeaways-from-austin-api-summit-2024/), Jim Bennett showcased how Copilot can be used to understand and interact with local SDKs within VSCode. While the acceptance rate of LLM-generated auto-complete is [still relatively low](https://cacm.acm.org/research/measuring-github-copilots-impact-on-productivity/), it will likely improve as LLMs become more fine-tuned and contextually aware.

### Improving API Testing and Observability

Another area AI-driven assistants can accelerate is API testing. Application developers often need to test how to interact with APIs and ensure they perform as expected within their language of choice. That, and they must often test a series of interlinked API flows.

One interesting development in the realm of AI-powered tools is [Alfred](https://treblle.com/product/api-assistant), an assistant created by Treblle. Named after Batman's iconic butler, Alfred is adept at processing OpenAPI specifications and SDKs to thoroughly understand an API's functionality. Utilizing this deep knowledge, Alfred not only answers integration-related queries but also generates operational code. Moreover, it can craft tests in various programming languages and conduct [schema validation](https://blog.treblle.com/how-to-use-api-insights-to-flag-openapi-issues/). Explore an [in-depth exploration of Alfred](https://blog.treblle.com/building-alfred-our-ai-powered-api-assistant/), including its capabilities and features.

{% embed https://youtu.be/ifXv_Zrxi9o %}
_Video overview of Alfred, the AI assistant_

Postman similarly has an assistant, [PostBot](https://blog.postman.com/introducing-postbot-postmans-new-ai-assistant/), that can aid in auto-complete for API flows. These sorts of AIs could enhance developer productivity and API experience by significantly speeding up the [time to first call](https://nordicapis.com/why-time-to-first-call-is-a-vital-api-metric/) and taking the hassle out of routine testing.

Specific testing and development environments could also benefit from using generative AI to create dummy data to query instead of production data, which may contain personally identifiable information (PII). This is especially relevant in highly regulated applications within financial, healthcare, or government environments.

### Other Ways AI Will Evolve API Experiences

Modern LLMs are opening up a world where natural-language-driven software development is accessible to seasoned programmers and citizen developers alike. Yet, this new era will hinge on framing developer resources to be correctly ingested by AIs and pruning the training data to avoid hallucination.

Above, we've only scratched the surface of how the current generative AI revolution impacts the API developer experience. Here are some other ways AI might enhance the experiences developers have when using web APIs:

- Automatically documenting and cataloging APIs to improve tooling discoverability.
- Extracting meaning from unstructured data returned in API responses
- Fine-tuning machine-to-machine communication for [specific industries](https://medium.com/slope-stories/slope-transformer-the-first-llm-trained-to-understand-the-language-of-banks-88adbb6c8da9).
- Automating [API security](https://blog.treblle.com/how-ai-can-enable-zero-trust-api-security/), such as generating security policies for APIs or scanning runtime traffic.
- Augmenting developer dashboards with predictive analysis to forecast usage and costs.

As a result of these advances, AI will likely make APIs increasingly more accessible to non-developers. This is important, given that about half of API users already are non-developers. For more insights into how AI can simplify API documentation, see [these AI prompts that help make sense of the most confusing API documentation](https://blog.treblle.com/18-ai-prompts-to-make-sense-of-the-most-confusing-api-documentation/).

### Expanding the Reach and Utility of APIs Through AI

The integration of artificial intelligence into API management and development not only simplifies the technical demands but also broadens the potential user base. By automating complex processes and breaking down data silos, AI enables more intuitive interactions between humans and systems, thereby democratizing access to powerful technological tools. This shift could revolutionize industries by making high-level programming and analysis capabilities available to those without traditional coding expertise.

Furthermore, as AI continues to evolve, we can anticipate even more sophisticated applications that further streamline workflows and enhance security protocols. This includes proactive error handling and real-time adjustments to API operations, which could significantly decrease downtime and improve user satisfaction.

In conclusion, the fusion of AI with API technology holds the promise of transforming the digital landscape. By reducing barriers to entry and increasing the efficiency and security of web APIs, AI is not only catering to the current needs of developers and businesses but is also paving the way for innovative solutions that could reshape how we interact with technology. As we continue to explore and expand these capabilities, the role of APIs will become more central in creating agile, user-friendly digital environments.

* * *

 ![How Will Gen AI Transform API Developer Experience?](https://blog.treblle.com/content/images/2024/04/alfred.png)

#### 

Learn how Alfred, Treblle's AI assistant, can transform your API development experience by automating and optimizing your workflows.

[Talk to our API Expert!](https://treblle.com/product/api-assistant)