{ "info": { "_postman_id": "5fb452fa-fc6c-4788-b6e4-558c1a01e2e8", "name": "FlexAI Token Factory Audio Video 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:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "lastUpdatedBy": "35240", "uid": "35240-5fb452fa-fc6c-4788-b6e4-558c1a01e2e8" }, "item": [ { "name": "videos", "item": [ { "name": "generations", "item": [ { "name": "Generate video (async)", "id": "ac3a7205-b96d-4333-b425-31f5178b96bb", "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}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/videos/generations", "host": [ "{{baseUrl}}" ], "path": [ "videos", "generations" ] }, "description": "Generate video from a text prompt using an open text-to-video model (Wan2.2). Asynchronous; available on demand on dedicated GPUs. Billed per generated video." }, "response": [ { "id": "52c8920e-e36d-4144-b354-ad6bd0bdb2c4", "name": "The video generation job", "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}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/videos/generations", "host": [ "{{baseUrl}}" ], "path": [ "videos", "generations" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:40:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-52c8920e-e36d-4144-b354-ad6bd0bdb2c4" }, { "id": "8230b47b-e15d-4688-abbb-a269889400bc", "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}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/videos/generations", "host": [ "{{baseUrl}}" ], "path": [ "videos", "generations" ] } }, "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:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-8230b47b-e15d-4688-abbb-a269889400bc" }, { "id": "e7ab8c50-636e-4682-a88a-8f6708726d89", "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}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/videos/generations", "host": [ "{{baseUrl}}" ], "path": [ "videos", "generations" ] } }, "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:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-e7ab8c50-636e-4682-a88a-8f6708726d89" }, { "id": "581dc610-56a5-49da-8c96-3c72c4d724e2", "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}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/videos/generations", "host": [ "{{baseUrl}}" ], "path": [ "videos", "generations" ] } }, "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:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-581dc610-56a5-49da-8c96-3c72c4d724e2" } ], "createdAt": "2026-07-28T01:40:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-ac3a7205-b96d-4333-b425-31f5178b96bb" } ], "id": "93bfceca-9dd1-4edf-a77e-d196871dfabd", "createdAt": "2026-07-28T01:40:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-93bfceca-9dd1-4edf-a77e-d196871dfabd" } ], "id": "529e5774-dd1d-499f-aaac-355db3e7e6b3", "createdAt": "2026-07-28T01:40:12.000Z", "updatedAt": "2026-07-28T01:40:12.000Z", "uid": "35240-529e5774-dd1d-499f-aaac-355db3e7e6b3" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://tokens.flex.ai/v1" } ] }