{ "info": { "_postman_id": "7686da2c-efc3-4c3b-85cf-517bc2b1c076", "name": "FlexAI Token Factory Audio Chat 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:07.000Z", "updatedAt": "2026-07-28T01:40:07.000Z", "lastUpdatedBy": "35240", "uid": "35240-7686da2c-efc3-4c3b-85cf-517bc2b1c076" }, "item": [ { "name": "chat", "item": [ { "name": "completions", "item": [ { "name": "Create a chat completion", "id": "119d68c5-65d7-4c2b-974c-e412ec14990d", "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 \"messages\": [\n {\n \"role\": \"tool\",\n \"content\": \"\",\n \"name\": \"\"\n },\n {\n \"role\": \"system\",\n \"content\": \"\",\n \"name\": \"\"\n }\n ],\n \"temperature\": \"\",\n \"top_p\": \"\",\n \"stop\": \"\",\n \"seed\": \"\",\n \"user\": \"\",\n \"max_tokens\": \"\",\n \"stream\": \"\",\n \"stream_options\": {\n \"include_usage\": \"\"\n },\n \"tool_choice\": \"\",\n \"response_format\": {},\n \"presence_penalty\": \"\",\n \"frequency_penalty\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/chat/completions", "host": [ "{{baseUrl}}" ], "path": [ "chat", "completions" ] }, "description": "Generate a model response for a chat conversation. OpenAI-compatible. Supports streaming via server-sent events when stream=true. Note: non-streaming responses are capped at 2048 output tokens regardless of max_tokens (finish_reason \"length\"); n > 1 is rejected with a 400." }, "response": [ { "id": "621c233e-c2d8-4eae-979c-47f39c172ea2", "name": "A chat completion (or an SSE stream when stream=true)", "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 \"messages\": [\n {\n \"role\": \"tool\",\n \"content\": \"\",\n \"name\": \"\"\n },\n {\n \"role\": \"system\",\n \"content\": \"\",\n \"name\": \"\"\n }\n ],\n \"temperature\": \"\",\n \"top_p\": \"\",\n \"stop\": \"\",\n \"seed\": \"\",\n \"user\": \"\",\n \"max_tokens\": \"\",\n \"stream\": \"\",\n \"stream_options\": {\n \"include_usage\": \"\"\n },\n \"tool_choice\": \"\",\n \"response_format\": {},\n \"presence_penalty\": \"\",\n \"frequency_penalty\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/chat/completions", "host": [ "{{baseUrl}}" ], "path": [ "chat", "completions" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"id\": \"\",\n \"object\": \"\",\n \"created\": \"\",\n \"model\": \"\",\n \"choices\": [\n {\n \"index\": \"\",\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"\",\n \"name\": \"\"\n },\n \"finish_reason\": \"length\"\n },\n {\n \"index\": \"\",\n \"message\": {\n \"role\": \"tool\",\n \"content\": \"\",\n \"name\": \"\"\n },\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": \"\",\n \"completion_tokens\": \"\",\n \"total_tokens\": \"\"\n }\n}", "createdAt": "2026-07-28T01:40:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-621c233e-c2d8-4eae-979c-47f39c172ea2" }, { "id": "1f8307ec-76c0-4cc5-bf36-5eb997384dd9", "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 \"messages\": [\n {\n \"role\": \"tool\",\n \"content\": \"\",\n \"name\": \"\"\n },\n {\n \"role\": \"system\",\n \"content\": \"\",\n \"name\": \"\"\n }\n ],\n \"temperature\": \"\",\n \"top_p\": \"\",\n \"stop\": \"\",\n \"seed\": \"\",\n \"user\": \"\",\n \"max_tokens\": \"\",\n \"stream\": \"\",\n \"stream_options\": {\n \"include_usage\": \"\"\n },\n \"tool_choice\": \"\",\n \"response_format\": {},\n \"presence_penalty\": \"\",\n \"frequency_penalty\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/chat/completions", "host": [ "{{baseUrl}}" ], "path": [ "chat", "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:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-1f8307ec-76c0-4cc5-bf36-5eb997384dd9" }, { "id": "504b26cf-4eb9-4b45-bd25-c8144887c2da", "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 \"messages\": [\n {\n \"role\": \"tool\",\n \"content\": \"\",\n \"name\": \"\"\n },\n {\n \"role\": \"system\",\n \"content\": \"\",\n \"name\": \"\"\n }\n ],\n \"temperature\": \"\",\n \"top_p\": \"\",\n \"stop\": \"\",\n \"seed\": \"\",\n \"user\": \"\",\n \"max_tokens\": \"\",\n \"stream\": \"\",\n \"stream_options\": {\n \"include_usage\": \"\"\n },\n \"tool_choice\": \"\",\n \"response_format\": {},\n \"presence_penalty\": \"\",\n \"frequency_penalty\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/chat/completions", "host": [ "{{baseUrl}}" ], "path": [ "chat", "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:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-504b26cf-4eb9-4b45-bd25-c8144887c2da" }, { "id": "f1997c93-3869-4c17-9b32-03aba95dc097", "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 \"messages\": [\n {\n \"role\": \"tool\",\n \"content\": \"\",\n \"name\": \"\"\n },\n {\n \"role\": \"system\",\n \"content\": \"\",\n \"name\": \"\"\n }\n ],\n \"temperature\": \"\",\n \"top_p\": \"\",\n \"stop\": \"\",\n \"seed\": \"\",\n \"user\": \"\",\n \"max_tokens\": \"\",\n \"stream\": \"\",\n \"stream_options\": {\n \"include_usage\": \"\"\n },\n \"tool_choice\": \"\",\n \"response_format\": {},\n \"presence_penalty\": \"\",\n \"frequency_penalty\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/chat/completions", "host": [ "{{baseUrl}}" ], "path": [ "chat", "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:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-f1997c93-3869-4c17-9b32-03aba95dc097" } ], "createdAt": "2026-07-28T01:40:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-119d68c5-65d7-4c2b-974c-e412ec14990d" } ], "id": "aa2ca3f5-ef1f-456b-b129-a7b4522d59fb", "createdAt": "2026-07-28T01:40:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-aa2ca3f5-ef1f-456b-b129-a7b4522d59fb" } ], "id": "7e5a13b6-a50a-4919-a034-f113ca6bb820", "createdAt": "2026-07-28T01:40:08.000Z", "updatedAt": "2026-07-28T01:40:08.000Z", "uid": "35240-7e5a13b6-a50a-4919-a034-f113ca6bb820" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://tokens.flex.ai/v1" } ] }