Based on this issue, it seems the typescrypt generator is going to be a more maintainable replacement than the generators you proposed. While it is currently flagged as 'experimental', I believe it will become a more solid option in the near future.

Answer from javier gil on Stack Overflow
🌐
OpenAPI Generator
openapi-generator.tech › docs › generators › typescript-axios
Documentation for the typescript-axios Generator | OpenAPI Generator
February 10, 2026 - These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to configuration docs for more details
Discussions

node.js - OpenAPI Generator `typescript-fetch` vs `typescript-node` vs `typescript-axios` - Stack Overflow
I don't have any specific preference if it comes to axios vs fetch. I'm rather trying to figure out what generator is the most stable and maintained one. I tried to compare open and closed issues in the project's repository but couldn't come up with a clear answer to my question: What should I choose and why? ... By now I tried typescript... More on stackoverflow.com
🌐 stackoverflow.com
OpenAPI-generator, typescript-axios, and Vue?
I have a sample app here: https://github.com/CharlieDigital/dn6-mongo-react-valtio It's a React based sample, but the output TS for the client generation is agnostic. I also have Vue samples, but none currently publicly shared. Here is the directory with the generated models and service clients: https://github.com/CharlieDigital/dn6-mongo-react-valtio/tree/main/web/src/services (Schema file is also in there). I've used the openapi-typescript-codegen package and it's been consistently trouble free for me. You can see how I have it setup in the scripts in package.json. What my POST routes look like: /hook/add: post: tags: - Hooks summary: Creates a hook for the given project. operationId: AddHook requestBody: content: application/json: schema: $ref: '#/components/schemas/Hook' text/json: schema: $ref: '#/components/schemas/Hook' application/*+json: schema: $ref: '#/components/schemas/Hook' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Hook' application/json: schema: $ref: '#/components/schemas/Hook' text/json: schema: $ref: '#/components/schemas/Hook' Generated client: /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Hook } from '../models/Hook'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class HooksController { /** * Creates a hook for the given project. * @param requestBody * @returns Hook Success * @throws ApiError */ public static addHook( requestBody?: Hook, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/hook/add', body: requestBody, mediaType: 'application/json', }); } // Omitted } More on reddit.com
🌐 r/vuejs
7
3
October 18, 2022
OpenApi Generator typescript-axios Only interfaces output with typescript axios generator - Stack Overflow
I started using the OpenApi Generator for TypeScript and Axios. It works really good! The only thing I'm wondering is, how can I generate classes instead of interfaces? With e.g. typescript-node ... More on stackoverflow.com
🌐 stackoverflow.com
typescript - How to use Axios API client generated by OpenAPITools code generator? - Stack Overflow
I am using Swagger/OpenAPI Codegen to generate an API client for the Fetch client in my Vue app and want to use Axios instead. I started by using the OpenAPITools typescript-axios code generator: j... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › OpenAPITools › openapi-generator › blob › master › samples › client › petstore › typescript-axios › builds › default › api.ts
openapi-generator/samples/client/petstore/typescript-axios/builds/default/api.ts at master · OpenAPITools/openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) - openapi-generator/samples/client/petstore/typescript-axios/builds/def...
Author   OpenAPITools
🌐
npm
npmjs.com › package › openapi-client-axios-typegen
openapi-client-axios-typegen - npm
Typescript type generator for openapi-client-axios. Latest version: 7.8.0, last published: 6 months ago. Start using openapi-client-axios-typegen in your project by running `npm i openapi-client-axios-typegen`. There are 9 other projects in the npm registry using openapi-client-axios-typegen.
      » npm install openapi-client-axios-typegen
    
Published   Oct 24, 2025
Version   7.8.0
🌐
GitHub
github.com › OpenAPITools › openapi-generator › blob › v5.2.1 › docs › generators › typescript-axios.md
openapi-generator/docs/generators/typescript-axios.md at v5.2.1 · OpenAPITools/openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) - OpenAPITools/openapi-gener...
Author   OpenAPITools
🌐
Reddit
reddit.com › r/vuejs › openapi-generator, typescript-axios, and vue?
r/vuejs on Reddit: OpenAPI-generator, typescript-axios, and Vue?
October 18, 2022 -

Have any of you had experience using API clients generated by openapi-generator with Vue 3, specifically using the typescript-axios generator? It works well for me for HTTP GET requests, but I’m seeing issues with it not specifying the correct Content-Type for HTTP POST/PUT. My OpenAPI spec clearly defines the content type as application/json, but I can see on the wire the client is specifying text/plain. Are there any decent examples showing how to best use this generated code? Is there a better way of handling OpenAPI clients in Vue 3 apps? It’s a sizable API definition, so generating the client and its model objects by hand would be very time consuming. I was hoping to speed up development using the generated API client, but now I’m stuck for a sizable part of the API. Thoughts?

Top answer
1 of 1
1
I have a sample app here: https://github.com/CharlieDigital/dn6-mongo-react-valtio It's a React based sample, but the output TS for the client generation is agnostic. I also have Vue samples, but none currently publicly shared. Here is the directory with the generated models and service clients: https://github.com/CharlieDigital/dn6-mongo-react-valtio/tree/main/web/src/services (Schema file is also in there). I've used the openapi-typescript-codegen package and it's been consistently trouble free for me. You can see how I have it setup in the scripts in package.json. What my POST routes look like: /hook/add: post: tags: - Hooks summary: Creates a hook for the given project. operationId: AddHook requestBody: content: application/json: schema: $ref: '#/components/schemas/Hook' text/json: schema: $ref: '#/components/schemas/Hook' application/*+json: schema: $ref: '#/components/schemas/Hook' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Hook' application/json: schema: $ref: '#/components/schemas/Hook' text/json: schema: $ref: '#/components/schemas/Hook' Generated client: /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Hook } from '../models/Hook'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class HooksController { /** * Creates a hook for the given project. * @param requestBody * @returns Hook Success * @throws ApiError */ public static addHook( requestBody?: Hook, ): CancelablePromise { return __request(OpenAPI, { method: 'POST', url: '/hook/add', body: requestBody, mediaType: 'application/json', }); } // Omitted }
🌐
Medium
medium.com › @devriesrjj › generating-front-end-api-code-2517b8d89b26
Generating Client-Side API code
November 16, 2024 - Hi there! Here’s a quick guide on how to generate your client-side code using the OpenAPI Generator typescript-axios generator.
Find elsewhere
🌐
npm
npmjs.com › package › openapi-client-axios
openapi-client-axios - npm
August 13, 2025 - openapi-client-axios comes with a CLI command openapicmd typegen to generate Typescript types for type safety and code autocomplete.
      » npm install openapi-client-axios
    
Published   Feb 22, 2026
Version   7.9.0
🌐
Jiratech
jiratech.com › media › posts › integrate-openapi-specification-using-openapi-generator-to-a-reactjs-project-with-typescript-and-axios
Integrate OpenApi specification using openapi-generator to a ReactJs project with Typescript and Axios
July 23, 2020 - openapi-generator generate -i [*json file path*] -g [* client generator*] -o [*folder path where you want to generate the code*] Now you can add this in your package.json scripts category. I use ‘typescript-axios’ as *client generator*. I use axios because it is a popular library for http calls and I use it in most of my React projects.
🌐
Nahkies
openapi-code-generator.nahkies.co.nz › guides › client-templates › typescript-axios
typescript-axios - OpenAPI Code Generator - Michael Nahkies
Generate a strongly-typed axios client SDK with typed methods for each endpoint and optional runtime response validation for your OpenAPI or TypeSpec definitions.
🌐
Medium
medium.com › @jiratech › integrate-openapi-specification-using-openapi-generator-to-a-reactjs-project-with-typescript-and-766834629b
Integrate OpenApi specification using openapi-generator to a ReactJs project with Typescript and Axios | by Jiratech | Medium
July 28, 2020 - To achieve this goal we need to import the class UserApi from the generated folder and instantiate it: const userApi = new UserApi(). The instance of the class contains all the functions that you need for making api calls to the server.
🌐
Openapistack
openapistack.co › quick start: client
Quick Start: Client | openapi-stack
import OpenAPIClientAxios from ... created", res.data); } Use the openapicmd typegen command to generate typescript type files (.d.ts) for OpenAPIClient instances using an OpenAPI definition file....
🌐
Hmos
hmos.dev › en › how-to-use-oas-generator
How to use OAS generator in Front-end environment? | hmos.dev
March 28, 2022 - npm install @openapitools/openapi-generator-cli openapi-generator-cli generate -g typescript-axios -i ./src/yaml/petstore.yaml -o ./src/generate
🌐
Medium
medium.com › tribalscale › how-to-automate-api-code-generation-openapi-swagger-and-boost-productivity-1176a0056d8a
How to automate API code generation (OpenAPI/Swagger) and boost productivity | by Sanjin Celeski | TribalScale | Medium
September 29, 2020 - Note: Prerequisite for the generator is to have JDK installed on your machine. ... For demo purpose, we use convenient sample Pet Store server based on the latest (OpenAPI 3.0) specification: https://petstore3.swagger.io · // Bootstrap RN project using TS template npx create-react-native-app my-app --template with-typescript// CD into the project cd my-app// Add project dependencies yarn add axios url// Add client generator (as Dev dependency) yarn add -D @openapitools/openapi-generator-cli// Create Api folder (for everything API related) mkdir Api// Download OAS file to Api folder curl https://petstore3.swagger.io/api/v3/openapi.json > ./Api/openapi.json// Add generator script to package.json npx add-project-script -n "openapi" -v "openapi-generator generate -i ./Api/openapi.json -g typescript-axios -o ./Api/generated"// Generate the client (requires JDK installed) yarn openapi
🌐
Arnaudcortisse
arnaudcortisse.com › blog › trying-out-nestjs-part-4
Trying out NestJS part 4: Generate typescript clients from OpenAPI documents
There are plenty of tools that we can use in order to generate OpenAPI clients. The one I'm going to use is the following: typescript-axios.
🌐
GitHub
github.com › OpenAPITools › openapi-generator › blob › master › modules › openapi-generator › src › main › resources › typescript-axios › api.mustache
openapi-generator/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache at master · OpenAPITools/openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3) - openapi-generator/modules/openapi-generator/src/main/resources/typesc...
Author   OpenAPITools