{ "info": { "_postman_id": "dfb618a2-8d7e-4b7d-89f0-9215eef2cb16", "name": "FlexAI Token Factory Audio Completions 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:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "lastUpdatedBy": "35240", "uid": "35240-dfb618a2-8d7e-4b7d-89f0-9215eef2cb16" }, "item": [ { "name": "completions", "item": [ { "name": "Create a text completion (legacy)", "id": "5ab38955-3c7a-4272-99b2-8cf10b97d7fd", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"model\": \"\",\n \"prompt\": \"\",\n \"max_tokens\": \"\",\n \"temperature\": \"\",\n \"stream\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/completions", "host": [ "{{baseUrl}}" ], "path": [ "completions" ] }, "description": "Legacy text-completion endpoint kept for OpenAI compatibility. Prefer /chat/completions for new work." }, "response": [ { "id": "cbce1566-1afe-43c6-a958-2269c69a386a", "name": "A text completion", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "description": "Added as a part of security scheme: bearer", "key": "Authorization", "value": "Bearer " } ], "body": { "mode": "raw", "raw": "{\n \"model\": \"\",\n \"prompt\": \"\",\n \"max_tokens\": \"\",\n \"temperature\": \"\",\n \"stream\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/completions", "host": [ "{{baseUrl}}" ], "path": [ "completions" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:40:09.000Z", "updatedAt": "2026-07-28T01:40:09.000Z", "uid": "35240-cbce1566-1afe-43c6-a958-2269c69a386a" }, { "id": "f52567e9-3e4a-4157-bb68-23794f584882", "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 " } ], "body": { "mode": "raw", "raw": "{\n \"model\": \"\",\n \"prompt\": \"\",\n \"max_tokens\": \"\",\n \"temperature\": \"\",\n \"stream\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/completions", "host": [ "{{baseUrl}}" ], "path": [ "completions" ] } }, "status": "Bad Request", "code": 400, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"error\": {\n \"message\": \"\",\n \"type\": \"\",\n \"param\": \"\",\n \"code\": \"\",\n \"doc_url\": \"\"\n }\n}", "createdAt": "2026-07-28T01:40:09.000Z", "updatedAt": "2026-07-28T01:40:09.000Z", "uid": "35240-f52567e9-3e4a-4157-bb68-23794f584882" }, { "id": "42dcb724-09b8-47f7-9094-633be0e95241", "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 " } ], "body": { "mode": "raw", "raw": "{\n \"model\": \"\",\n \"prompt\": \"\",\n \"max_tokens\": \"\",\n \"temperature\": \"\",\n \"stream\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/completions", "host": [ "{{baseUrl}}" ], "path": [ "completions" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"error\": {\n \"message\": \"\",\n \"type\": \"\",\n \"param\": \"\",\n \"code\": \"\",\n \"doc_url\": \"\"\n }\n}", "createdAt": "2026-07-28T01:40:09.000Z", "updatedAt": "2026-07-28T01:40:09.000Z", "uid": "35240-42dcb724-09b8-47f7-9094-633be0e95241" }, { "id": "0ace17b2-9ac1-4dc6-a65f-22052fc6465d", "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 " } ], "body": { "mode": "raw", "raw": "{\n \"model\": \"\",\n \"prompt\": \"\",\n \"max_tokens\": \"\",\n \"temperature\": \"\",\n \"stream\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/completions", "host": [ "{{baseUrl}}" ], "path": [ "completions" ] } }, "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": "" } ], "cookie": [], "responseTime": null, "body": "{\n \"error\": {\n \"message\": \"\",\n \"type\": \"\",\n \"param\": \"\",\n \"code\": \"\",\n \"doc_url\": \"\"\n }\n}", "createdAt": "2026-07-28T01:40:09.000Z", "updatedAt": "2026-07-28T01:40:09.000Z", "uid": "35240-0ace17b2-9ac1-4dc6-a65f-22052fc6465d" } ], "createdAt": "2026-07-28T01:40:09.000Z", "updatedAt": "2026-07-28T01:40:09.000Z", "uid": "35240-5ab38955-3c7a-4272-99b2-8cf10b97d7fd" } ], "id": "3014e9a4-6125-49e7-b2b0-cb7958a9e0b6", "createdAt": "2026-07-28T01:40:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-3014e9a4-6125-49e7-b2b0-cb7958a9e0b6" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://tokens.flex.ai/v1" } ] }