{ "info": { "_postman_id": "e802e44c-9239-4992-aec5-66e19338054a", "name": "FlexAI Token Factory Audio Images 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:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "lastUpdatedBy": "35240", "uid": "35240-e802e44c-9239-4992-aec5-66e19338054a" }, "item": [ { "name": "images", "item": [ { "name": "generations", "item": [ { "name": "Generate images", "id": "7834733e-3671-4535-8e7a-796f8f8b5f87", "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 \"n\": \"\",\n \"size\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/images/generations", "host": [ "{{baseUrl}}" ], "path": [ "images", "generations" ] }, "description": "Generate one or more images from a text prompt using an open image model (e.g. FLUX.1). Billed per image." }, "response": [ { "id": "975dbb9f-8b33-4f22-b815-1d8de5a6e2de", "name": "The generated image(s)", "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 \"n\": \"\",\n \"size\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/images/generations", "host": [ "{{baseUrl}}" ], "path": [ "images", "generations" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T01:40:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-975dbb9f-8b33-4f22-b815-1d8de5a6e2de" }, { "id": "8ed90ebe-4e28-479d-b1af-cc7052c4fd8a", "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 \"n\": \"\",\n \"size\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/images/generations", "host": [ "{{baseUrl}}" ], "path": [ "images", "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:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-8ed90ebe-4e28-479d-b1af-cc7052c4fd8a" }, { "id": "53c1083d-78a1-4550-bd64-70bc16dd5282", "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 \"n\": \"\",\n \"size\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/images/generations", "host": [ "{{baseUrl}}" ], "path": [ "images", "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:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-53c1083d-78a1-4550-bd64-70bc16dd5282" }, { "id": "5e108343-73f6-415a-9676-f650973127b0", "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 \"n\": \"\",\n \"size\": \"\"\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/images/generations", "host": [ "{{baseUrl}}" ], "path": [ "images", "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:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-5e108343-73f6-415a-9676-f650973127b0" } ], "createdAt": "2026-07-28T01:40:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-7834733e-3671-4535-8e7a-796f8f8b5f87" } ], "id": "de8a1d15-be4a-450a-8ade-c1d74de1fcda", "createdAt": "2026-07-28T01:40:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-de8a1d15-be4a-450a-8ade-c1d74de1fcda" } ], "id": "73dffdc5-80c9-49e4-bc5b-6a0935446c01", "createdAt": "2026-07-28T01:40:10.000Z", "updatedAt": "2026-07-28T01:40:10.000Z", "uid": "35240-73dffdc5-80c9-49e4-bc5b-6a0935446c01" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{bearerToken}}", "type": "string" } ] }, "variable": [ { "key": "baseUrl", "value": "https://tokens.flex.ai/v1" } ] }