{
  "info": {
    "_postman_id": "7fca9b9f-e47f-41ee-a2da-60d6804a4fd6",
    "name": "FlexAI Token Factory Audio API",
    "description": "OpenAI-compatible inference API for FlexAI Token Factory. A single API key provides access to open models across text, code, reasoning, vision, embedding, image, video, and audio modalities, priced by usage per model. The API is a drop-in replacement for the OpenAI API: point the OpenAI SDK (or any OpenAI-compatible client) at the FlexAI base URL and supply a FlexAI API key. This specification captures the endpoints FlexAI documents as supported; some OpenAI endpoints (assistants, threads, runs, files, fine-tuning, batches) are explicitly not served by this endpoint.\n\nContact Support:\n Name: FlexAI",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:40:06.000Z",
    "updatedAt": "2026-07-28T01:40:06.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-7fca9b9f-e47f-41ee-a2da-60d6804a4fd6"
  },
  "item": [
    {
      "name": "audio",
      "item": [
        {
          "name": "transcriptions",
          "item": [
            {
              "name": "Transcribe audio to text (speech-to-text)",
              "id": "40f595dd-285a-42a5-85e4-d27fd830c39a",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "multipart/form-data"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": "(Required) ",
                      "key": "model",
                      "value": "<string>",
                      "type": "text"
                    },
                    {
                      "description": "(Required) ",
                      "key": "file",
                      "type": "file",
                      "value": null
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/audio/transcriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "audio",
                    "transcriptions"
                  ]
                },
                "description": "Transcribe audio using an open transcription model (e.g. Whisper). Billed per minute of audio."
              },
              "response": [
                {
                  "id": "dfbaa20d-8073-4ac0-9758-901eedcd2aa4",
                  "name": "The transcription result",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "multipart/form-data"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": "(Required) ",
                          "key": "model",
                          "value": "<string>",
                          "type": "text"
                        },
                        {
                          "description": "(Required) ",
                          "key": "file",
                          "type": "file"
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/transcriptions",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "transcriptions"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-dfbaa20d-8073-4ac0-9758-901eedcd2aa4"
                },
                {
                  "id": "4efda3db-45d7-4c0e-a1cb-2e8eefcd3edc",
                  "name": "Request validation failure. The error object includes a `param` field indicating the offending path (OpenAI-compatible error envelope).",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "multipart/form-data"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": "(Required) ",
                          "key": "model",
                          "value": "<string>",
                          "type": "text"
                        },
                        {
                          "description": "(Required) ",
                          "key": "file",
                          "type": "file"
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/transcriptions",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "transcriptions"
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": {\n    \"message\": \"<string>\",\n    \"type\": \"<string>\",\n    \"param\": \"<string>\",\n    \"code\": \"<string>\",\n    \"doc_url\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-4efda3db-45d7-4c0e-a1cb-2e8eefcd3edc"
                },
                {
                  "id": "062b3ebf-38e8-44a2-a980-44333c360e92",
                  "name": "Invalid or missing API key (error code `authentication_error`; includes a `doc_url` extension pointing at the auth docs).",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "multipart/form-data"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": "(Required) ",
                          "key": "model",
                          "value": "<string>",
                          "type": "text"
                        },
                        {
                          "description": "(Required) ",
                          "key": "file",
                          "type": "file"
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/transcriptions",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "transcriptions"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": {\n    \"message\": \"<string>\",\n    \"type\": \"<string>\",\n    \"param\": \"<string>\",\n    \"code\": \"<string>\",\n    \"doc_url\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-062b3ebf-38e8-44a2-a980-44333c360e92"
                },
                {
                  "id": "1b568599-266d-4c7f-a3b4-427e84fb314f",
                  "name": "Account-level rate limit or budget exceeded. Includes `Retry-After` and `x-ratelimit-*` response headers.",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "multipart/form-data"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "formdata",
                      "formdata": [
                        {
                          "description": "(Required) ",
                          "key": "model",
                          "value": "<string>",
                          "type": "text"
                        },
                        {
                          "description": "(Required) ",
                          "key": "file",
                          "type": "file"
                        }
                      ]
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/transcriptions",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "transcriptions"
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    },
                    {
                      "disabled": false,
                      "description": {
                        "content": "Seconds to wait before retrying.",
                        "type": "text/plain"
                      },
                      "key": "Retry-After",
                      "value": "<integer>"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": {\n    \"message\": \"<string>\",\n    \"type\": \"<string>\",\n    \"param\": \"<string>\",\n    \"code\": \"<string>\",\n    \"doc_url\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-1b568599-266d-4c7f-a3b4-427e84fb314f"
                }
              ],
              "createdAt": "2026-07-28T01:40:07.000Z",
              "updatedAt": "2026-07-28T01:40:07.000Z",
              "uid": "35240-40f595dd-285a-42a5-85e4-d27fd830c39a"
            }
          ],
          "id": "ce3c3e0c-0b70-4f16-a7d2-214e6a56b532",
          "createdAt": "2026-07-28T01:40:07.000Z",
          "updatedAt": "2026-07-28T01:40:07.000Z",
          "uid": "35240-ce3c3e0c-0b70-4f16-a7d2-214e6a56b532"
        },
        {
          "name": "speech",
          "item": [
            {
              "name": "Synthesize speech from text (text-to-speech)",
              "id": "75723ccb-fc66-4e49-b6ed-363c3b6f0817",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"model\": \"<string>\",\n  \"input\": \"<string>\",\n  \"voice\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/audio/speech",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "audio",
                    "speech"
                  ]
                },
                "description": "Generate audio from input text using an open TTS model (e.g. Kokoro). Billed per character."
              },
              "response": [
                {
                  "id": "c2dcd291-5b84-4003-86bc-8b3ad7047427",
                  "name": "The synthesized audio stream",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"model\": \"<string>\",\n  \"input\": \"<string>\",\n  \"voice\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/speech",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "speech"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-c2dcd291-5b84-4003-86bc-8b3ad7047427"
                },
                {
                  "id": "6812ccb5-8370-499b-9228-f202e06f249d",
                  "name": "Request validation failure. The error object includes a `param` field indicating the offending path (OpenAI-compatible error envelope).",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"model\": \"<string>\",\n  \"input\": \"<string>\",\n  \"voice\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/speech",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "speech"
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": {\n    \"message\": \"<string>\",\n    \"type\": \"<string>\",\n    \"param\": \"<string>\",\n    \"code\": \"<string>\",\n    \"doc_url\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-6812ccb5-8370-499b-9228-f202e06f249d"
                },
                {
                  "id": "ec75b739-62eb-44f1-9684-5d30094491d7",
                  "name": "Invalid or missing API key (error code `authentication_error`; includes a `doc_url` extension pointing at the auth docs).",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"model\": \"<string>\",\n  \"input\": \"<string>\",\n  \"voice\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/speech",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "speech"
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": {\n    \"message\": \"<string>\",\n    \"type\": \"<string>\",\n    \"param\": \"<string>\",\n    \"code\": \"<string>\",\n    \"doc_url\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-ec75b739-62eb-44f1-9684-5d30094491d7"
                },
                {
                  "id": "aa95f93b-982e-4ade-8a80-df039ff199b1",
                  "name": "Account-level rate limit or budget exceeded. Includes `Retry-After` and `x-ratelimit-*` response headers.",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"model\": \"<string>\",\n  \"input\": \"<string>\",\n  \"voice\": \"<string>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/audio/speech",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "audio",
                        "speech"
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    },
                    {
                      "disabled": false,
                      "description": {
                        "content": "Seconds to wait before retrying.",
                        "type": "text/plain"
                      },
                      "key": "Retry-After",
                      "value": "<integer>"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": {\n    \"message\": \"<string>\",\n    \"type\": \"<string>\",\n    \"param\": \"<string>\",\n    \"code\": \"<string>\",\n    \"doc_url\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T01:40:07.000Z",
                  "updatedAt": "2026-07-28T01:40:07.000Z",
                  "uid": "35240-aa95f93b-982e-4ade-8a80-df039ff199b1"
                }
              ],
              "createdAt": "2026-07-28T01:40:07.000Z",
              "updatedAt": "2026-07-28T01:40:07.000Z",
              "uid": "35240-75723ccb-fc66-4e49-b6ed-363c3b6f0817"
            }
          ],
          "id": "3598e040-2975-46df-8705-dc2a7cb98f4f",
          "createdAt": "2026-07-28T01:40:07.000Z",
          "updatedAt": "2026-07-28T01:40:07.000Z",
          "uid": "35240-3598e040-2975-46df-8705-dc2a7cb98f4f"
        }
      ],
      "id": "d4177e19-7a2d-4d14-a4d1-94da71c5b2e3",
      "createdAt": "2026-07-28T01:40:07.000Z",
      "updatedAt": "2026-07-28T01:40:07.000Z",
      "uid": "35240-d4177e19-7a2d-4d14-a4d1-94da71c5b2e3"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://tokens.flex.ai/v1"
    }
  ]
}